"use strict";require("./conversions.js");const o=require("../../../../../_virtual/conversions.js");var u=o.conversions.exports;function p(){for(var n={},r=Object.keys(u),t=r.length,e=0;e<t;e++)n[r[e]]={distance:-1,parent:null};return n}function f(n){var r=p(),t=[n];for(r[n].distance=0;t.length;)for(var e=t.pop(),a=Object.keys(u[e]),v=a.length,s=0;s<v;s++){var i=a[s],c=r[i];c.distance===-1&&(c.distance=r[e].distance+1,c.parent=e,t.unshift(i))}return r}function l(n,r){return function(t){return r(n(t))}}function h(n,r){for(var t=[r[n].parent,n],e=u[r[n].parent][n],a=r[n].parent;r[a].parent;)t.unshift(r[a].parent),e=l(u[r[a].parent][a],e),a=r[a].parent;return e.conversion=t,e}var b=function(n){for(var r=f(n),t={},e=Object.keys(r),a=e.length,v=0;v<a;v++){var s=e[v],i=r[s];i.parent!==null&&(t[s]=h(s,r))}return t};module.exports=b;
//# sourceMappingURL=route.js.map
