mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"dependencies":[{"name":"../constants","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":20,"index":187},"end":{"line":5,"column":43,"index":210}}],"key":"zmjjtqoQxi2W71eIMIIaEi1mOpU=","exportNames":["*"]}},{"name":"../fork/getPathFromState-forks","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":33,"index":245},"end":{"line":6,"column":74,"index":286}}],"key":"Pwl2s8MefiXMrO7elNt6TT2k9Bo=","exportNames":["*"]}}],"output":[{"data":{"code":"__d(function(g,r,i,a,m,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.defaultRouteInfo=void 0,e.getRouteInfoFromState=function(o){if(!o)return e.defaultRouteInfo;let c=o.routes[0];if(c.name!==t.INTERNAL_SLOT_NAME)throw new Error(`Expected the first route to be ${t.INTERNAL_SLOT_NAME}, but got ${c.name}`);o=c.state;const p=[];let l=Object.create(null);for(;o;){c=o.routes['index'in o&&o.index?o.index:0],Object.assign(l,c.params);let t=c.name;t.startsWith('/')&&(t=t.slice(1)),p.push(...t.split('/')),o=c.state}l=Object.fromEntries(Object.entries(l).map(([t,s])=>'string'==typeof s?[t,n(s)]:Array.isArray(s)?[t,s.map(t=>n(t))]:[t,s]));let f=c.params;for(;f&&'screen'in f;){if('string'==typeof f.screen){const t=f.screen.startsWith('/')?f.screen.slice(1):f.screen;p.push(...t.split('/'))}f='object'!=typeof f.params||Array.isArray(f.params)?void 0:f.params}if(c.params&&'screen'in c.params&&'string'===c.params.screen){const t=c.params.screen.startsWith('/')?c.params.screen.slice(1):c.params.screen;p.push(...t.split('/'))}'index'===p[p.length-1]&&p.pop();delete l.screen,delete l.params;const u=new Set,h='/'+p.filter(t=>!(t.startsWith('(')&&t.endsWith(')'))).flatMap(t=>{if('+not-found'===t){const t=l['not-found'];return u.add('not-found'),void 0===t?[]:Array.isArray(t)?t:[t]}if(t.startsWith('[...')&&t.endsWith(']')){let s=t.slice(4,-1);s.endsWith('?')&&(s=s.slice(0,-1));const n=l[s];return u.add(s),n||[]}if(t.startsWith('[')&&t.endsWith(']')){const s=t.slice(1,-1),n=l[s];return u.add(s),n?[n]:[]}return[t]}).join('/'),y=new URLSearchParams(Object.entries(l).flatMap(([t,s])=>u.has(t)?[]:Array.isArray(s)?s.map(s=>[t,s]):[[t,s]]));let b;y.has('#')&&(b=y.get('#')||void 0,y.delete('#'));const A=y.toString();let W=A?h+'?'+A:h;return W=b?W+'#'+b:W,{segments:p,pathname:h,params:l,unstable_globalHref:(0,s.appendBaseUrl)(W),searchParams:y,pathnameWithParams:W,isIndex:!1}};const t=r(d[0]),s=r(d[1]);function n(t){try{return'string'==typeof t?decodeURIComponent(t):t}catch{return t}}e.defaultRouteInfo={unstable_globalHref:'',searchParams:new URLSearchParams,pathname:'/',params:{},segments:[],pathnameWithParams:'/',isIndex:!1}});","lineCount":1,"map":[[1,28,1,0],[1,41,2,0,"Object"],[1,48,2,7,"defineProperty"],[1,63,2,22,"exports"],[1,65,2,31],[1,78,2,45],[1,79,2,47,"value"],[1,86,2,54],[1,90,3,0,"exports"],[1,92,3,8,"defaultRouteInfo"],[1,114,3,24,"undefined"],[1,116,4,0,"exports"],[1,118,4,8,"getRouteInfoFromState"],[1,140,17,0],[1,149,17,31,"state"],[1,152,18,4],[1,156,18,9,"state"],[1,158,19,8],[1,165,19,15,"exports"],[1,167,19,23,"defaultRouteInfo"],[1,184,20,4],[1,188,20,8,"route"],[1,190,20,16,"state"],[1,192,20,22,"routes"],[1,199,20,29],[1,202,21,4],[1,205,21,8,"route"],[1,207,21,14,"name"],[1,214,21,23,"constants_1"],[1,216,21,35,"INTERNAL_SLOT_NAME"],[1,235,22,8],[1,241,22,14],[1,245,22,18,"Error"],[1,251,22,24],[1,285,22,58,"constants_1"],[1,287,22,70,"INTERNAL_SLOT_NAME"],[1,318,22,101,"route"],[1,320,22,107,"name"],[1,328,24,4,"state"],[1,330,24,12,"route"],[1,332,24,18,"state"],[1,338,25,4],[1,344,25,10,"segments"],[1,346,25,21],[1,349,26,4],[1,353,26,8,"params"],[1,355,26,17,"Object"],[1,362,26,24,"create"],[1,369,26,31],[1,375,27,4],[1,380,27,11,"state"],[1,383,27,18],[1,384,28,8,"route"],[1,386,28,16,"state"],[1,388,28,22,"routes"],[1,395,28,29],[1,405,28,40,"state"],[1,408,28,49,"state"],[1,410,28,55,"index"],[1,416,28,63,"state"],[1,418,28,69,"index"],[1,424,28,77],[1,427,29,8,"Object"],[1,434,29,15,"assign"],[1,441,29,22,"params"],[1,443,29,30,"route"],[1,445,29,36,"params"],[1,453,30,8],[1,457,30,12,"routeName"],[1,459,30,24,"route"],[1,461,30,30,"name"],[1,466,31,12,"routeName"],[1,468,31,22,"startsWith"],[1,479,31,33],[1,486,32,12,"routeName"],[1,488,32,24,"routeName"],[1,490,32,34,"slice"],[1,496,32,40],[1,500,34,8,"segments"],[1,502,34,17,"push"],[1,510,34,25,"routeName"],[1,512,34,35,"split"],[1,518,34,41],[1,524,35,8,"state"],[1,526,35,16,"route"],[1,528,35,22,"state"],[1,533,36,4],[1,534,37,4,"params"],[1,536,37,13,"Object"],[1,543,37,20,"fromEntries"],[1,555,37,32,"Object"],[1,562,37,39,"entries"],[1,570,37,47,"params"],[1,573,37,55,"map"],[1,577,37,59],[1,579,37,61,"key"],[1,581,37,66,"value"],[1,586,38,29],[1,603,38,19,"value"],[1,605,39,19],[1,606,39,20,"key"],[1,608,39,25,"safeDecodeURIComponent"],[1,610,39,48,"value"],[1,614,41,17,"Array"],[1,620,41,23,"isArray"],[1,628,41,31,"value"],[1,631,42,19],[1,632,42,20,"key"],[1,634,42,25,"value"],[1,636,42,31,"map"],[1,640,42,36,"v"],[1,643,42,42,"safeDecodeURIComponent"],[1,645,42,65,"v"],[1,650,45,19],[1,651,45,20,"key"],[1,653,45,25,"value"],[1,658,52,4],[1,662,52,8,"routeParams"],[1,664,52,22,"route"],[1,666,52,28,"params"],[1,673,53,4],[1,678,53,11,"routeParams"],[1,681,53,26],[1,692,53,38,"routeParams"],[1,695,53,51],[1,696,54,8],[1,699,54,42],[1,716,54,19,"routeParams"],[1,718,54,31,"screen"],[1,725,54,52],[1,726,55,12],[1,732,55,18,"screen"],[1,734,55,27,"routeParams"],[1,736,55,39,"screen"],[1,743,55,46,"startsWith"],[1,754,55,57],[1,759,56,18,"routeParams"],[1,761,56,30,"screen"],[1,768,56,37,"slice"],[1,774,56,43],[1,777,57,18,"routeParams"],[1,779,57,30,"screen"],[1,786,58,12,"segments"],[1,788,58,21,"push"],[1,796,58,29,"screen"],[1,798,58,36,"split"],[1,804,58,42],[1,809,59,8],[1,810,64,12,"routeParams"],[1,812,60,42],[1,829,60,19,"routeParams"],[1,831,60,31,"params"],[1,839,60,55,"Array"],[1,845,60,61,"isArray"],[1,853,60,69,"routeParams"],[1,855,60,81,"params"],[1,868,64,26,"undefined"],[1,870,61,26,"routeParams"],[1,872,61,38,"params"],[1,878,66,4],[1,879,67,4],[1,882,67,8,"route"],[1,884,67,14,"params"],[1,892,67,24],[1,903,67,36,"route"],[1,905,67,42,"params"],[1,913,67,76],[1,924,67,52,"route"],[1,926,67,58,"params"],[1,933,67,65,"screen"],[1,940,67,86],[1,941,68,8],[1,947,68,14,"screen"],[1,949,68,23,"route"],[1,951,68,29,"params"],[1,958,68,36,"screen"],[1,965,68,43,"startsWith"],[1,976,68,54],[1,981,69,14,"route"],[1,983,69,20,"params"],[1,990,69,27,"screen"],[1,997,69,34,"slice"],[1,1003,69,40],[1,1006,70,14,"route"],[1,1008,70,20,"params"],[1,1015,70,27,"screen"],[1,1022,71,8,"segments"],[1,1024,71,17,"push"],[1,1032,71,25,"screen"],[1,1034,71,32,"split"],[1,1040,71,38],[1,1045,72,4],[1,1046,73,42],[1,1056,73,8,"segments"],[1,1058,73,17,"segments"],[1,1060,73,26,"length"],[1,1067,73,35],[1,1071,74,8,"segments"],[1,1073,74,17,"pop"],[1,1086,76,11,"params"],[1,1088,76,26],[1,1102,77,11,"params"],[1,1104,77,26],[1,1111,78,4],[1,1117,78,10,"pathParams"],[1,1119,78,23],[1,1123,78,27,"Set"],[1,1127,79,10,"pathname"],[1,1129,79,21],[1,1133,80,8,"segments"],[1,1135,81,13,"filter"],[1,1142,81,21,"segment"],[1,1147,82,21,"segment"],[1,1149,82,29,"startsWith"],[1,1160,82,40],[1,1166,82,48,"segment"],[1,1168,82,56,"endsWith"],[1,1177,82,65],[1,1184,84,13,"flatMap"],[1,1192,84,22,"segment"],[1,1196,85,12],[1,1199,85,28],[1,1214,85,16,"segment"],[1,1216,85,42],[1,1217,86,16],[1,1223,86,22,"notFoundPath"],[1,1225,86,37,"params"],[1,1227,86,44],[1,1240,88,16],[1,1247,87,16,"pathParams"],[1,1249,87,27,"add"],[1,1253,87,31],[1,1271,88,44],[1,1275,88,27,"notFoundPath"],[1,1277,90,27],[1,1280,92,25,"Array"],[1,1286,92,31,"isArray"],[1,1294,92,39,"notFoundPath"],[1,1297,93,27,"notFoundPath"],[1,1299,96,27],[1,1300,96,28,"notFoundPath"],[1,1302,98,12],[1,1303,99,17],[1,1306,99,21,"segment"],[1,1308,99,29,"startsWith"],[1,1319,99,40],[1,1328,99,51,"segment"],[1,1330,99,59,"endsWith"],[1,1339,99,68],[1,1344,99,74],[1,1345,100,16],[1,1349,100,20,"paramName"],[1,1351,100,32,"segment"],[1,1353,100,40,"slice"],[1,1359,100,46],[1,1362,100,47],[1,1365,102,20,"paramName"],[1,1367,102,30,"endsWith"],[1,1376,102,39],[1,1383,103,20,"paramName"],[1,1385,103,32,"paramName"],[1,1387,103,42,"slice"],[1,1393,103,48],[1,1396,103,49],[1,1400,105,16],[1,1406,105,22,"values"],[1,1408,105,31,"params"],[1,1410,105,38,"paramName"],[1,1413,108,16],[1,1420,106,16,"pathParams"],[1,1422,106,27,"add"],[1,1426,106,31,"paramName"],[1,1429,108,23,"values"],[1,1432,108,33],[1,1434,109,12],[1,1435,110,17],[1,1438,110,21,"segment"],[1,1440,110,29,"startsWith"],[1,1451,110,40],[1,1457,110,48,"segment"],[1,1459,110,56,"endsWith"],[1,1468,110,65],[1,1473,110,71],[1,1474,111,16],[1,1480,111,22,"paramName"],[1,1482,111,34,"segment"],[1,1484,111,42,"slice"],[1,1490,111,48],[1,1493,111,49],[1,1496,112,22,"value"],[1,1498,112,30,"params"],[1,1500,112,37,"paramName"],[1,1503,115,16],[1,1510,113,16,"pathParams"],[1,1512,113,27,"add"],[1,1516,113,31,"paramName"],[1,1519,115,23,"value"],[1,1521,115,31],[1,1522,115,32,"value"],[1,1525,115,41],[1,1527,116,12],[1,1528,118,16],[1,1534,118,23],[1,1535,118,24,"segment"],[1,1540,121,13,"join"],[1,1545,121,18],[1,1550,122,10,"searchParams"],[1,1552,122,25],[1,1556,122,29,"URLSearchParams"],[1,1572,122,45,"Object"],[1,1579,122,52,"entries"],[1,1587,122,60,"params"],[1,1590,122,68,"flatMap"],[1,1598,122,76],[1,1600,122,78,"key"],[1,1602,122,83,"value"],[1,1607,124,12,"pathParams"],[1,1609,124,23,"has"],[1,1613,124,27,"key"],[1,1616,125,19],[1,1619,127,17,"Array"],[1,1625,127,23,"isArray"],[1,1633,127,31,"value"],[1,1636,128,19,"value"],[1,1638,128,25,"map"],[1,1642,128,30,"v"],[1,1645,128,36],[1,1646,128,37,"key"],[1,1648,128,42,"v"],[1,1652,130,15],[1,1653,130,16],[1,1654,130,17,"key"],[1,1656,130,22,"value"],[1,1662,132,4],[1,1666,132,8,"hash"],[1,1668,133,8,"searchParams"],[1,1670,133,21,"has"],[1,1674,133,25],[1,1681,134,8,"hash"],[1,1683,134,15,"searchParams"],[1,1685,134,28,"get"],[1,1689,134,32],[1,1700,134,40,"undefined"],[1,1702,135,8,"searchParams"],[1,1704,135,21,"delete"],[1,1711,135,28],[1,1717,138,4],[1,1723,138,10,"searchParamString"],[1,1725,138,30,"searchParams"],[1,1727,138,43,"toString"],[1,1738,139,4],[1,1742,139,8,"pathnameWithParams"],[1,1744,139,29,"searchParamString"],[1,1746,139,49,"pathname"],[1,1748,139,60],[1,1752,139,66,"searchParamString"],[1,1754,139,86,"pathname"],[1,1756,141,4],[1,1763,140,4,"pathnameWithParams"],[1,1765,140,25,"hash"],[1,1767,140,32,"pathnameWithParams"],[1,1769,140,53],[1,1773,140,59,"hash"],[1,1775,140,66,"pathnameWithParams"],[1,1777,141,11],[1,1778,142,8,"segments"],[1,1789,143,8,"pathname"],[1,1800,144,8,"params"],[1,1809,145,8,"unstable_globalHref"],[1,1830,145,29],[1,1832,145,33,"getPathFromState_forks_1"],[1,1834,145,58,"appendBaseUrl"],[1,1849,145,73,"pathnameWithParams"],[1,1852,146,8,"searchParams"],[1,1867,147,8,"pathnameWithParams"],[1,1888,149,8,"isIndex"],[1,1897,149,17],[1,1899,151,0],[1,1901,5,0],[1,1907,5,6,"constants_1"],[1,1909,5,20,"require"],[1,1911,5,27,"d"],[1,1913,5,27],[1,1917,6,6,"getPathFromState_forks_1"],[1,1919,6,33,"require"],[1,1921,6,40,"d"],[1,1923,6,40],[1,1927,152,0],[1,1936,152,9,"safeDecodeURIComponent"],[1,1938,152,32,"value"],[1,1941,153,4],[1,1945,154,8],[1,1951,154,32],[1,1968,154,22,"value"],[1,1970,154,43,"decodeURIComponent"],[1,1989,154,62,"value"],[1,1992,154,71,"value"],[1,1993,155,4],[1,1994,156,4],[1,2000,158,8],[1,2007,158,15,"value"],[1,2008,159,4],[1,2009,160,0],[1,2010,7,0,"exports"],[1,2012,7,8,"defaultRouteInfo"],[1,2029,7,27],[1,2030,8,4,"unstable_globalHref"],[1,2050,8,25],[1,2053,9,4,"searchParams"],[1,2066,9,18],[1,2070,9,22,"URLSearchParams"],[1,2086,10,4,"pathname"],[1,2095,10,14],[1,2099,11,4,"params"],[1,2106,11,12],[1,2107,11,13],[1,2109,12,4,"segments"],[1,2118,12,14],[1,2121,13,4,"pathnameWithParams"],[1,2140,13,24],[1,2144,15,4,"isIndex"],[1,2153,15,13],[1,2155,160,1],[1,2158]],"functionMap":{"names":["<global>","getRouteInfoFromState","Object.entries.map$argument_0","value.map$argument_0","segments.filter$argument_0","segments.filter.flatMap$argument_0","Object.entries.flatMap$argument_0","safeDecodeURIComponent"],"mappings":"AAA;ACgB;2DCoB;mCCK,gCD;KDK;oBGkC;SHE;qBIC;SJoC;4EKE;6BHM,eG;KLG;CDoB;AOC;CPQ"}},"type":"js/module"}]} |