mapsjs-service.js 86 KB
Newer Older
1
2
3
4
5
6
7

/**
 * The code below uses open source software. Please visit the URL below for an overview of the licenses:
 * http://js.api.here.com/v3/3.1.8.1/HERE_NOTICE
 */

H.util.eval("Q.prototype.v=ca(2,function(a){var b=this.getCache(),c=this;if(a!==z){C(a,Uj,Q.prototype.v,0);var d=a}else d=Ik;d!==b&&b.ha(function(a,b,g){return c.hd(a)?(d.add(a,b,g),!0):!1});this.P=d});function un(a,b){a.f=b;a.C!==gj.INIT&&pj(a)}function vn(a,b){Pa.apply(null,arguments);return a}\nvar wn={normal:[{minLevel:10,maxLevel:20,label:\"IGN Guatemala\",alt:\"Aprobado por el INSTITUTO GEOGRAFICO NACIONAL Resolucion del IGN No 186-2011\",boxes:[[16.5943,-91.4256,17.8168,-89.0225],[14.9642,-89.0225,16.1868,-88.2215],[14.1492,-90.6245,16.5943,-89.0225],[13.7417,-91.8261,14.1492,-89.8235],[14.1492,-92.2266,16.1868,-90.6245],[16.473,-90.6686,16.5943,-90.6245],[14.0259,-89.8235,14.1492,-89.6796]]},{minLevel:9,maxLevel:20,label:\"INEGI\",alt:\"Fuente: INEGI (Instituto Nacional de Estadistica y Geografia)\",\nboxes:[[32,-117.1817,32.7325,-113.1649],[28,-101,29.4004,-99.9666],[26,-99,26.4261,-97.5566],[15.5643,-97.9326,16,-95.2581],[14.4031,-94.2111,16,-91],[16,-91,16.9491,-90.3434],[17.406,-91,18,-88.7349],[28,-119,32,-103],[26,-117,28,-99],[28,-103,30,-101],[24,-113,26,-97],[22,-111,24,-97],[18,-107,22,-95],[20,-90.6669,22,-86.6669],[18,-95,20,-87],[16,-103,18,-91],[18,-115,20,-109]]},{minLevel:9,maxLevel:20,label:\"Swisstopo\",alt:\"Topografische Grundlage: copyright Bundesamt fur Landestopographie\",boxes:[[46.4166,\n7.3171,47.6087,9.5821],[45.8206,6.8641,47.41,7.3171],[46.218,5.9581,46.6153,6.4111],[46.4166,6.4111,47.0127,6.8641],[46.0193,7.3171,46.4166,8.2231],[46.218,8.2231,46.4166,9.1291],[46.6153,9.5821,47.0127,10.4882],[46.0193,8.6761,46.218,9.1291],[46.4166,9.5821,46.6153,10.0351],[47.6087,8.2231,47.8074,8.6761],[47.41,6.928,47.5272,7.3171],[47.0127,6.6305,47.1914,6.8641],[46.6153,6.1662,46.7577,6.4111],[46.1195,5.9453,46.218,6.3156],[46.1024,6.762,46.4166,6.8641],[45.8846,7.3171,46.0193,8.0455],[47.6087,\n8.6761,47.8074,9.4309],[47.2863,9.5821,47.5004,9.6893],[47.0127,9.5821,47.0721,9.9106],[46.0972,8.5106,46.218,8.6761],[45.7831,8.754,46.0193,9.1167],[46.118,9.1291,46.4166,9.3037],[46.5237,10.237,46.6153,10.4882],[46.2703,9.4435,46.4166,9.8658],[46.3513,9.8639,46.4166,10.0351],[46.414,10.0351,46.6153,10.174],[46.3367,10.0312,46.4166,10.1725],[46.2654,9.9778,46.3547,10.0368],[46.2473,10.0312,46.3547,10.182],[46.2131,10.0449,46.2643,10.182]]},{minLevel:11,maxLevel:20,label:\"IGN\",alt:\"copyright IGN 2009 - BD TOPO\",\nboxes:[[-21.474,55.1479,-20.7728,55.9393]]},{minLevel:9,maxLevel:20,label:\"2014 THTC\",alt:\"copyright 2014 Iran Maps provided by THTC\",boxes:[[26.1964,46.2203,38.4489,57.1922],[25.7783,47.3792,32.0891,56.2187],[25.7433,53.8979,37.602,61.7923],[24.9003,57.143,26.1964,61.8081],[37.3605,54.2859,38.2982,59.0624],[32.9552,45.2424,35.8416,47.3873],[38.1617,46.5449,39.195,48.012],[39.0244,46.9254,39.791,48.3969],[38.8972,47.5269,39.2823,48.3741],[35.3974,46.0286,38.8972,48.8454],[38.8953,48.012,39.0229,48.3415],\n[32.9515,46.0457,33.1362,46.2203],[35.8416,44.4164,38.8818,47.5346],[38.2632,44.2983,39.0496,46.5449],[38.4003,44.0023,39.8596,45.453],[35.7409,44.1806,38.2632,46.0286],[25.7433,60.8544,29.9265,61.9791],[26.4634,61.8391,28.6155,62.9147],[26.2013,61.8221,26.5448,62.3152],[25.7411,61.7923,26.2083,61.8881],[25.7411,61.8081,25.9431,61.9006],[26.5239,62.3114,26.5998,62.6364],[26.8134,62.8691,27.2641,63.296],[27.0181,63.1942,27.2641,63.3436],[26.6245,62.9016,26.8405,63.2208],[29.8177,60.4678,31.5665,60.9671],\n[29.9265,60.8423,31.5665,61.9599],[33.8976,59.0624,37.602,61.1473],[31.4968,59.9152,34.0374,60.8423],[31.5665,60.4947,34.0374,60.966],[34.1048,60.5115,36.6543,61.5751]]},{minLevel:6,maxLevel:20,label:\"Navteq\",alt:\"Navteq\",boxes:[[30.7754,78.5576,36.7754,79.5576],[40.7754,120.5576,42.7754,128.5576],[41.7754,128.5576,42.7754,131.5576],[39.7754,120.5576,40.7754,126.5576],[38.7754,120.5576,39.7754,124.5576],[36.7754,121.5576,37.7754,123.5576],[35.7754,120.5576,38.7754,121.5576],[21.7754,98.5576,22.7754,\n104.5576],[20.7754,99.5576,21.7754,102.5576],[23.7754,97.5576,28.7754,98.5576],[35.7754,75.5576,36.7754,78.5576],[40.7754,76.5576,41.7754,79.5576],[29.7754,120.5576,32.7754,122.5576],[29.7754,122.5576,31.7754,123.5576],[29.7754,79.5576,42.7754,120.5576],[22.7754,98.5576,29.7754,117.5576],[42.7754,79.5576,45.7754,94.5576],[42.7754,115.5576,49.7754,131.5576],[49.7754,119.5576,52.7754,127.5576],[42.7754,111.5576,45.7754,115.5576],[45.7754,82.5576,47.7754,91.5576],[42.7754,94.5576,44.7754,96.5576],[36.7754,\n73.5576,40.7754,79.5576],[28.7754,82.5576,29.7754,98.5576],[20.7754,106.5576,22.7754,113.5576],[18.7754,108.5576,20.7754,111.5576],[17.7754,108.5576,18.7754,110.5576],[26.7754,117.5576,27.7754,121.5576],[25.7754,117.5576,26.7754,120.5576],[24.7754,117.5576,25.7754,119.5576],[23.7754,117.5576,24.7754,118.5576],[21.7754,113.5576,22.7754,116.5576],[27.7754,117.5576,29.7754,122.5576],[27.7754,84.5576,28.7754,93.5576],[49.7754,127.5576,50.7754,128.5576],[27.6769,91.7865,27.7754,92.1101],[28.6334,93.5576,\n28.7754,94.0161],[28.2004,96.2409,28.7754,97.5576],[27.2614,88.7706,27.7754,89.2653],[32.2241,78.3965,32.6363,78.5576],[35.4169,77.1449,35.7754,78.5576],[41.7754,79.2585,41.8535,79.5576],[45.7754,82.363,46.2212,82.5576],[47.7754,85.4858,48.7754,90.1507],[48.7754,86.6922,49.2494,88.1056],[52.7754,119.9835,53.5719,126.1939],[24.5027,118.5576,24.7754,118.8161],[25.1912,119.5576,25.7754,119.912],[32.7754,120.5576,33.5701,120.8986],[42.7754,110.3934,44.782,111.5576],[47.9285,115.4373,48.223,115.5576],\n[49.7754,118.4027,50.9802,119.5576],[44.8404,131.5576,48.4334,134.8631]]},{minLevel:6,maxLevel:20,label:\"Navteq\",alt:\"Navteq\",boxes:[[29.0724,45.6538,34.0557,47.9928],[29.9029,47.193,31.4399,48.5938],[34.0557,40.2408,35.7256,46.4809],[35.7168,42.7138,37.3779,46.4809],[35.7168,41.2402,37.3779,42.7138],[29.0724,40.2408,34.0557,45.6538],[29.8076,38.7937,34.0739,43.8802]]},{minLevel:11,maxLevel:20,label:\"IGN\",alt:\"copyright IGN 2009 - BD TOPO\",boxes:[[15.6985,-61.9309,16.5953,-61.0013]]},{minLevel:10,\nmaxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[45.452,13.7142,46.8284,16.3044],[45.5557,14.5931,46.1463,15.7955],[45.3439,14.6924,45.7418,15.4262],[46.3859,15.9891,46.8915,16.6217],[45.4543,14.0533,45.7004,14.6924],[45.5366,13.3628,46.523,13.9372],[45.4125,13.657,45.6003,13.9833],[45.5239,14.6795,45.5557,14.7057],[45.4418,13.5675,45.5366,13.6734],[45.5318,13.5988,45.5394,13.638],[46.8276,15.9827,46.8786,16.2706]]},{minLevel:11,maxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",\nboxes:[[46.853,26.511,48.6163,29.3448],[46.4187,28.0753,47.9267,29.31],[45.4102,28.0701,46.4249,28.5878],[45.4154,28.0081,46.1325,28.4224],[45.7302,28.2568,47.4471,29.2353],[45.7302,28.5878,46.2901,29.0637],[46.3002,29.2029,46.5592,30.2333],[46.7892,29.2282,47.4471,29.9684],[46.5465,29.2256,46.8365,30.0376]]},{minLevel:9,maxLevel:20,label:\"Nepal\",alt:\"Copyright Survey Department, Government of Nepal\",boxes:[[26.2669,85.571,28.4465,88.2408],[26.4858,83.0964,29.4459,85.7994],[27.3853,81.0976,30.1502,\n83.8816],[28.2854,79.7937,30.6642,82.254],[30.1502,81.3961,30.4719,82.254],[27.4329,81.6782,27.9426,82.8798]]},{minLevel:9,maxLevel:20,label:\"IGN\",alt:\"copyright IGN 2009 - BD TOPO\",boxes:[[14.3135,-61.2546,14.968,-60.7258]]},{minLevel:9,maxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[54.9394,20.8924,56.5027,23.423],[53.8579,22.579,56.5027,24.9113],[53.8757,22.4807,55.1024,24.5276],[54.263,22.6378,54.6908,23.1253],[53.8579,24.5937,56.4848,26.8994],[54.0863,25.2612,54.5213,\n25.9464]]},{minLevel:10,maxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[42.1231,14.4853,44.8976,18.6541],[42.5705,15.6655,43.3251,17.0432],[44.1837,13.3057,45.5704,15.8226],[44.8976,13.8789,46.5835,18.1295],[44.9955,16.185,45.149,16.4761],[44.8126,16.5981,45.7845,19.5169],[45.4199,18.1216,45.9726,19.1392]]},{minLevel:9,maxLevel:20,label:\"IgeoE\",alt:\"IgeoE - Portugal\",boxes:[[30.1318,-15.883,30.1622,-15.8445],[32.2747,-17.3686,33.1907,-15.9142],[36.5482,-32.0392,40.4124,\n-23.6635],[36.9392,-9.0081,38.4418,-7.2449],[37.9667,-7.2522,38.3853,-6.8808],[38.4418,-8.926,39.5144,-6.7321],[38.1864,-9.5593,39.5271,-8.895],[39.4801,-9.1848,42.1722,-7.8729],[39.4153,-8.4431,41.9675,-7.2126],[41.7211,-7.2357,42.0048,-6.505],[41.2304,-7.31,41.7633,-6.5183],[40.9842,-7.3532,41.2705,-6.5519],[40.1168,-7.4841,40.9984,-6.7565],[39.654,-7.552,40.2572,-6.7565],[39.3941,-7.5899,39.6663,-6.985],[41.2304,-6.5519,41.7009,-6.1811]]},{minLevel:9,maxLevel:20,label:\"OGL\",alt:\"Open Government Licence v.1.0.\",\nboxes:[[53.8371,-8.1821,59.6771,-1.2194],[50.3331,-1.2194,55.0051,1.7646],[50.3331,-5.1981,53.8371,-1.2194],[49.1651,-7.9476,50.3331,-1.9796],[59.6771,-2.2141,60.8451,-.2247],[51.5011,-5.3731,52.6691,-5.1981]]},{minLevel:10,maxLevel:20,label:\"IGN\",alt:\"copyright IGN 2009 - BD TOPO\",boxes:[[3.993,-54.5201,5.2588,-54.299],[2.6665,-52.5112,3.5742,-52.0258],[2.1062,-54.6066,3.5684,-54.001],[3.5684,-54.299,5.7509,-51.6174],[2.1134,-54.001,3.5684,-52.5112]]},{minLevel:10,maxLevel:20,label:\"EuroGeographics\",\nalt:\"copyright EuroGeographics\",boxes:[[34.3756,32.2293,35.5938,33.7589],[34.8444,33.6276,35.276,34.1041],[35.1525,33.5454,35.734,34.6339]]},{minLevel:6,maxLevel:20,label:\"PSMA\",alt:\"Copyright. Based on data provided under license from PSMA Australia Limited. Product incorporates data which is 2014 Telstra Corporation Limited, GM Holden Limited, Intelematics Australia Pty Ltd, HERE International LLC, Sentinel Content Pty Limited and Continental Pty Ltd\",boxes:[[-13.1672,95.8626,-11.1672,97.8626],\n[-11.5539,104.6728,-9.5539,106.6728],[-32.5901,158.0863,-30.5901,160.0863],[-30.0761,167.0381,-28.0761,169.0381],[-32,113,-20,151],[-38,135,-32,151],[-20,123,-14,147],[-20,121,-16,123],[-14,129,-10,137],[-14,141,-8,145],[-36,115,-32,127],[-44,141,-38,149],[-34,127,-32,135],[-34,151,-24,155]]},{minLevel:9,maxLevel:20,label:\"Lantmateriet\",alt:\"Based upon electronic data National Land Survey Sweden.\",boxes:[[56.8124,17.7151,58.4792,19.8137],[62.5323,15.7813,69.3138,25.2754],[60.9048,13.083,68.0183,18.3797],\n[58.0209,11.5126,64.3169,17.4803],[58.0209,17.3803,62.5323,19.7075],[55.2659,10.7702,62.8658,17.3803],[55.2659,13.7838,58.0209,17.466],[55.1529,12.368,56.6521,13.7838]]},{minLevel:9,maxLevel:20,label:\"BEV\",alt:\"copyright Bundesamt fur Eich- und Vermessungswesen\",boxes:[[46.639,10.6752,46.9033,11.0567],[47.6962,13.3457,48.7534,17.1607],[46.9033,9.5307,47.6962,16.7792],[46.639,12.2012,46.9033,16.0162],[46.3748,13.3457,46.639,14.8717],[48.7534,14.8717,49.0177,16.0162],[47.6962,12.9642,48.2248,13.3457],\n[48.2248,12.9642,48.3571,13.3457],[47.8668,12.7411,48.2248,12.9642],[47.6962,12.8955,47.8109,12.9642],[48.7534,16.3752,48.8317,16.725],[46.8266,16.0162,46.9033,16.1893],[46.5375,12.6822,46.639,13.3457],[46.8219,9.9561,46.9033,10.2682],[46.8181,10.4415,46.9033,10.6752],[46.7953,11.0567,46.9033,11.1249]]},{minLevel:9,maxLevel:20,label:\"Sri Lanka\",alt:\"This product incorporates original source digital data obtained from the Survey Department of Sri Lanka. 2009 Survey Department of Sri Lanka The data has been used with the permission of the Survey Department of Sri Lanka\",\nboxes:[[5.8461,79.5067,9.9652,82.0121]]},{minLevel:9,maxLevel:20,label:\"CNIG\",alt:\"Informacion geografica propiedad del CNIG\",boxes:[[27.4138,-18.299,29.4228,-13.2707],[35.2569,-2.9815,35.3232,-2.9161],[39.3438,-7.6437,39.7836,-7.2643],[27.4138,-18.299,29.4228,-13.2707],[41.6479,-9.7829,43.8119,-6.3517],[38.415,-6.734,43.7683,3.4915],[37.312,-6.8623,39.398,.229],[35.6142,-7.022,37.9317,-1.2109],[36.8976,-7.5399,41.6961,-6.5372],[38.2202,3.0662,40.2854,5.1739],[35.8628,-5.387,35.9199,-5.2772]]},{minLevel:10,\nmaxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[57.9301,23.439,59.7909,27.465],[57.8968,21.7448,59.3645,23.458],[57.44,25.5161,58.0205,27.8981],[57.754,23.1887,57.8411,23.2957],[57.8526,24.295,57.9554,24.7904],[58.0107,27.4528,58.7552,27.6501],[58.7436,27.4413,59.4859,28.2525]]},{minLevel:10,maxLevel:20,label:\"Navteq\",alt:\"Navteq\",boxes:[[10.6629,-85.8099,12.9543,-83.3936],[11.0412,-87.1376,14.6525,-83.1509],[14.2095,-82.9224,14.5307,-82.6012],[12.3118,-87.842,14.2011,\n-84.9162],[13.6161,-85.8103,15.1814,-83.0464],[14.1788,-85.457,14.8768,-83.8745]]},{minLevel:10,maxLevel:20,label:\"SOI\",alt:\"Survey of Israel data source\",boxes:[[29.3724,34.2346,31.5477,35.4573],[30.9701,34.4766,33.1256,35.6655],[32.6825,35.0912,33.113,35.7566],[32.7247,35.3798,33.1257,35.9089],[32.9351,35.5239,33.3538,35.9089]]},{minLevel:9,maxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[49.0148,14.0753,55.0681,20.2333],[51.6271,18.2346,55.0681,24.1071],[49.1699,19.3708,\n52.6479,23.8452],[48.9384,21.8835,49.9277,22.9603],[49.5714,22.2773,51.4811,23.7502],[51.0366,23.1726,52.2145,23.736],[50.8016,23.3995,51.5813,24.1714],[50.3495,23.3995,51.0366,24.1571],[50.3804,23.794,50.6141,24.1242],[52.7337,14.0896,53.0647,14.3477]]},{minLevel:10,maxLevel:20,label:\"Jordan\",alt:\"Royal Jordanian Geographic Centre\",boxes:[[31.3679,36.8242,33.3996,39.3159],[29.2293,35.2899,31.3679,38.0203],[29.2293,34.9258,30.889,35.9751],[30.889,35.2899,32.3179,37.3047],[31.8515,35.4964,32.7823,\n36.8242]]},{minLevel:9,maxLevel:20,label:\"Statkart\",alt:\"Copyright 2000; Norwegian Mapping Authority\",boxes:[[56.444,2.9492,63.9455,12.064],[61.0315,6.1059,70.9952,18.0586],[59.2422,9.9664,63.2018,13.0634],[67.8075,16.8944,71.3965,25.1741],[68.4773,24.6595,71.3952,26.3932],[69.6571,25.9972,71.4071,28.8856],[68.8789,27.8446,71.4071,32.1402],[63.9575,13.0203,65.6822,14.7214],[66.1997,15.2505,67.3135,16.3893]]},{minLevel:6,maxLevel:20,label:\"Canada\",alt:\"This data includes information taken with permission from Canadian authorities, including Her Majesty, Queens Printer for Ontario, Canada Post, GeoBase, Department of Natural Resources Canada. All rights reserved\",\nboxes:[[70,-125.9042,78,-77],[78,-101,82,-69],[82,-91,84,-61],[80,-69,82,-61],[46.3831,-57.0167,49.9905,-50.981],[52,-135,56,-129],[78,-115,80,-101],[46,-87.5736,48.0357,-57],[44,-85.0026,46.0536,-59],[70,-77,74,-67],[56,-63,68,-61],[41.9986,-83,44.0238,-77.4271],[62,-141,70,-63],[56,-135,58,-87],[58,-141,62,-91],[56,-81,62,-63],[48,-129,56,-57],[50,-57,54,-55]]},{minLevel:11,maxLevel:20,label:\"IGN\",alt:\"copyright IGN France 2009 BD TOPO\",boxes:[[41.3454,8.4823,43.1241,9.6779],[46.512,-5.2986,48.9033,\n-2.1006],[42.5367,-2.1077,46.512,2.1618],[45.8812,-2.1077,48.9033,6.7118],[42.2486,.3773,46.1891,6.8232],[42.8343,4.3116,45.2796,7.678],[48.7889,-2.0366,51.1937,2.7484],[48.6676,2.4444,51.1937,8.2326],[47.2548,6.3526,48.6954,7.5496],[46.5513,6.1405,47.3535,7.0066],[45.8114,5.9584,46.5615,6.9032],[45.7944,6.8518,46.1046,7.1168],[43.9532,7.4449,44.1819,7.7612],[44.856,6.2593,45.8136,7.2498],[47.3484,7.1095,48.6757,7.891],[44.5968,6.6907,45.0132,7.1016]]},{minLevel:9,maxLevel:20,label:\"Deutschland\",\nalt:\"Die Grundlagendaten wurden mit Genehmigung der zustandigen Behorden entnommen\",boxes:[[54.2771,13.2064,55.0556,14.1232],[47.2702,7.705,55.0556,13.2064],[50.3844,13.2064,54.2771,15.0401],[48.8273,5.8712,51.9414,7.705],[51.9414,6.7881,53.8624,7.705],[48.0487,13.2064,49.6058,13.9895]]},{minLevel:9,maxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[55.3689,24.1704,58.1269,28.4487],[56.1948,23.095,57.2653,24.2779],[56.3085,21.6724,57.8204,23.3336],[55.9347,20.7407,57.7144,\n21.825]]},{minLevel:9,maxLevel:20,label:\"IGM\",alt:\"INSTITUTO GEOGRAFICO MILITAR DEL ECUADOR AUTORIZACION No IGM-2011-01- PCO-01 DEL 25 DE ENERO DE 2011\",boxes:[[-4.6863,-80.539,1.1441,-78.4796],[-2.095,-78.4796,.4963,-75.5964],[-2.7428,-81.3628,-.7994,-80.9509],[-2.7428,-80.9509,1.1441,-80.539],[-1.4472,-75.5964,.1724,-75.1846],[-5.0102,-79.7153,-4.6863,-78.8915],[1.1441,-79.3034,1.468,-78.4796],[.4963,-78.4796,.8202,-77.244],[.8202,-78.4796,1.1441,-78.0677],[-3.7146,-78.4796,-2.095,-78.0677],[-2.7428,\n-78.0677,-2.095,-76.4202],[-3.0667,-78.0677,-2.7428,-77.244],[-2.4189,-76.4202,-2.095,-76.0083]]},{minLevel:9,maxLevel:20,label:\"ITA\",alt:\"La Banca Dati Italiana e stata prodotta usando quale riferimento anche cartografia numerica ed al tratto prodotta e fornita dalla Regione Toscana\",boxes:[[38.1821,6.8824,47.2069,14.1446],[35.3758,11.8034,40.0397,19.4309],[39.2141,13.5406,43.0524,16.4857],[39.6269,16.0831,42.3234,18.8269],[36.6566,11.8869,36.8801,12.1816],[44.1083,6.613,45.2558,7.2468],[45.6248,\n6.8008,45.8575,6.9794],[46.7941,10.3931,47.0561,11.6257],[45.5627,12.8285,46.6783,13.986],[42.6396,13.3581,43.6743,14.0461]]},{minLevel:10,maxLevel:20,label:\"Navteq\",alt:\"Navteq\",boxes:[[-26.8359,30.8723,-25.6938,32.1739],[-27.0738,30.7201,-26.2624,31.5422],[-27.3832,30.9615,-26.5576,32.0286],[-27.3403,31.4364,-26.7719,32.0286],[-26.8455,32.0275,-26.7719,32.1475]]},{minLevel:10,maxLevel:20,label:\"Geomatics\",alt:\"Copyright Geomatics Ltd.\",boxes:[[34.8037,20.3974,41.0512,26.5331],[38.9687,19.3748,40.3571,\n20.3974],[36.1209,29.5552,36.1723,29.6034],[38.9765,26.5331,39.1817,26.6201],[41.0512,21.9014,41.174,22.4426],[38.1449,20.332,38.3325,20.3984],[35.1058,26.5331,37.9255,28.2956],[41.0512,22.4426,41.3788,22.8625],[41.0512,22.8393,41.637,24.4931],[41.0512,24.4883,41.8654,26.5489],[41.2829,26.538,41.6486,26.6501]]},{minLevel:9,maxLevel:20,label:\"Cenacarta\",alt:\"Certain Data for Mozambique provided by Cenacarta 2014 by Cenacarta\",boxes:[[-15.9653,33.6194,-10.3973,41.2432],[-16.3417,30.7148,-14.095,34.9419],\n[-18.8084,34.9389,-15.0611,41.2432],[-17.1457,38.6588,-15.8415,40.2757],[-22.989,31.1878,-18.8084,36.5975],[-26.8763,31.1878,-22.4084,35.7659],[-24.9908,34.2964,-23.3847,35.6707],[-18.8203,31.8425,-15.6508,36.5975],[-16.0985,30.1219,-13.9704,33.7148]]},{minLevel:9,maxLevel:20,label:\"EuroGeographics\",alt:\"copyright EuroGeographics\",boxes:[[47.7796,23.7808,52.3053,30.3909],[50.5207,23.4548,51.7557,24.437],[47.7796,23.6071,50.6001,25.5225],[47.9128,22.4364,50.5207,23.983],[47.706,24.7422,47.8394,25.2039],\n[48.3302,22.1323,49.0508,22.5012],[47.9209,22.1347,48.5886,23.2256],[47.9979,23.04,48.0552,23.1187],[47.9624,23.1767,48.133,23.5211],[44.9794,29.0356,47.908,30.3873],[44.9794,28.141,46.824,29.5592],[44.0324,29.5592,46.3547,37.3686],[45.855,30.3873,51.8685,37.3686],[51.7797,30.5067,52.4699,34.3366],[51.6941,34.3051,51.9267,34.4588],[46.3547,34.8806,50.8793,38.6386],[47.4754,38.4346,50.1112,40.3587],[50.7773,34.666,51.2858,35.5437]]}]};function T(a,b,c,d,e,f){if(a&&b)this.vi(a),this.li(b),this.ta(c),this.Rk(e),this.Hk(f),this.Sk(d);else throw Error('Parameters \"scheme\" and \"host\" must be specified');}u(\"H.service.Url\",T);\nfunction xn(a,b){var c=y.document,d,e=c&&c.createElement(\"a\"),f=\"\";if(c){if(b){var g=(d=c.getElementsByTagName(\"base\")[0])&&d.href;var h=c.head;var k=d||h.appendChild(c.createElement(\"base\"));k.href=b}e.href=a;f=e.href;b&&(d?d.href=g:h.removeChild(k))}else/[\\w]+:\\/\\//.test(a)&&(f=a);g=/(?:(\\w+):\\/\\/)?(?:([^:]+):([^@/]*)@)?([^/:]+)?(?:[:]{1}([0-9]+))?(\\/[^?#]*)?(\\?[^#]+)?(#.*)?/.exec(f);a=g[1];k=g[4];b=g[5];h=g[6];c=g[7];d=g[8];!g[2]&&k&&/@/.test(k)&&(k=k.split(\"@\")[1]);g=k;h=h&&0<h.length?h.substr(1):\n\"\";k={};if(c)for(e=/([?&]?([^=&+]+))(=([^&]+))?/g;f=e.exec(c);)k[decodeURIComponent(f[2])]=f[4]?decodeURIComponent(f[4]):void 0;return new T(a,g,h,k,isNaN(+b)?void 0:+b,d&&0<d.length?d.substr(1):\"\")}T.parse=xn;var yn=0;T.prototype.clone=function(){yn++;var a={},b;for(b in this.Da)a[b]=this.Da[b];return new T(this.o,this.c,this.b,a,this.f,this.a)};T.prototype.clone=T.prototype.clone;\nT.prototype.vi=function(a){if(!a||\"string\"!==typeof a)throw Error('The \"scheme\" parameter must be a non-empty string.');this.o=a;return this};T.prototype.setScheme=T.prototype.vi;T.prototype.Um=function(){return this.o};T.prototype.getScheme=T.prototype.Um;T.prototype.li=function(a){if(!a||\"string\"!==typeof a||\"-\"===a.charAt(0)||\".\"===a.charAt(0)||\".\"===a.charAt(a.length-1))throw Error('The \"host\" parameter is not a valid host name.');this.c=a;return this};T.prototype.setHost=T.prototype.li;\nT.prototype.pm=function(){return this.c};T.prototype.getHost=T.prototype.pm;T.prototype.ta=function(a){this.b=a||void 0;return this};T.prototype.setPath=T.prototype.ta;T.prototype.Hm=function(){return this.b};T.prototype.getPath=T.prototype.Hm;T.prototype.Sk=function(a){if(a)if(\"object\"==typeof a)this.Da=a;else throw Error('Parameter \"params\" must be an object.');else this.Da={};return this};T.prototype.setQuery=T.prototype.Sk;T.prototype.Ij=function(){return!zn(this)};T.prototype.hasQuery=T.prototype.Ij;\nT.prototype.Pm=function(){return this.Da};T.prototype.getQuery=T.prototype.Pm;T.prototype.Rk=function(a){if(a&&isNaN(parseInt(a,10)))throw Error('Parameter \"port\" must be a number or undefined');this.f=+a||void 0;return this};T.prototype.setPort=T.prototype.Rk;T.prototype.Lm=function(){return this.f};T.prototype.getPort=T.prototype.Lm;T.prototype.Hk=function(a){this.a=a||void 0;return this};T.prototype.setAnchor=T.prototype.Hk;T.prototype.ld=function(){return this.a};T.prototype.getAnchor=T.prototype.ld;\nT.prototype.K=function(a){if(\"object\"!==typeof a)throw Error('Parameter \"other\" must be an object.');var b=this.Da,c;for(c in a)a.hasOwnProperty(c)&&\"function\"!==typeof a[c]&&(b[c]=a[c]);return this};T.prototype.mergeQuery=T.prototype.K;T.prototype.ua=function(a){if(!a||\"string\"!==typeof a)throw Error('Parameter \"subDomain\" must be a non-empty string');\".\"===a.substr(a.length-1)&&(a=a.substr(0,a.length-1));return this.li(a+\".\"+this.c)};T.prototype.addSubDomain=T.prototype.ua;\nT.prototype.Y=function(a){if(!a||\"string\"!==typeof a)throw Error('Parameter \"subPath\" must be a non-empty string');return this.ta((this.b?this.b+\"/\":\"\")+a)};T.prototype.addSubPath=T.prototype.Y;T.prototype.toString=function(){return[this.o+\"://\",this.c,this.f?\":\"+this.f:\"\",this.b||!zn(this)||this.a?\"/\":\"\",this.b?encodeURI(this.b):\"\",An(this),this.a?\"#\"+encodeURIComponent(this.a):\"\"].join(\"\")};T.prototype.toString=T.prototype.toString;\nfunction An(a){var b=[],c,d=a.Da;for(c in d)if(d.hasOwnProperty(c)&&\"function\"!==typeof d[c]){var e=a.Da[c];b.push(encodeURIComponent(c)+(void 0===e?\"\":\"=\"+encodeURIComponent(e)))}return 0<b.length?\"?\"+b.join(\"&\"):\"\"}function zn(a){var b,c=0;for(b in a.Da)if(a.Da.hasOwnProperty(b)&&\"function\"!==typeof a.Da[b]&&(c++,0<c))break;return!c};function U(a){a=vn({},this.ra,a);var b=a.apikey,c=a.baseUrl;if(c=b?c?0:\"baseUrl\":\"apikey\")throw new D(U,0,'\"'+c+'\" must be specified');this.Kk(a.baseUrl);this.a=b;this.b.K({apikey:b});this.c=La(a.servicesConfig||{})}u(\"H.service.Platform\",U);U.prototype.ra={apikey:null,baseUrl:new T(\"https\",\"hereapi.com\")};U.prototype.Kk=function(a){this.b=a.clone();this.b.K({xnlp:\"CL_JSMv3.\"+sn().version});this.a=a=this.a;this.b.K({apikey:a})};U.prototype.setBaseUrl=U.prototype.Kk;U.prototype.Kd=function(){return this.b};\nU.prototype.getBaseUrl=U.prototype.Kd;U.prototype.ob=function(a,b){try{return a.rb=!0,new a(vn({platformBaseUrl:this.Kd()},this.c[a.CONFIG_KEY]||{},b||{}))}finally{delete a.rb}};U.prototype.createService=U.prototype.ob;var Bn=Function(\"return this\")();Jb(\"monospace serif\");function Cn(){}Cn.prototype.pop=function(a){this[a]||(this[a]=[]);return this[a].pop()||Bn.document.createElement(\"canvas\")};Cn.prototype.push=function(a,b){this[b]||(this[b]=[]);this[b].push(a)};var Dn=new Cn;u(\"H.service.util.eval\",function(a){return eval(a)});function En(a){var b=y.H.getScriptPath();return b=b?xn(b).Y(\"styles\"):a.clone().ua(\"js\").Y(\"v3/3.1.8.1/styles\")};function Fn(a,b,c){c=c||{};var d=+c.min,e=+c.max;c.tileSize=c.tileSize||512;c.min=d?ld(d,1,17):1;c.min+=Sj(c.tileSize,1);c.max=e?ld(e,1,17):17;Fn.l.constructor.call(this,c);C(a,Gn,Fn,0);C(b,fj,Fn,1);this.a=a;this.G=new Uj(256);un(b,\"OMV\");this.yd(b,!0);this.D=A(this.reload,this,!1);a.addEventListener(\"versionupdate\",this.D)}w(Fn,Q);u(\"H.service.omv.Provider\",Fn);Fn.prototype.Ob=function(){return this.G};Fn.prototype.getCache=Fn.prototype.Ob;\nFn.prototype.Pa=function(a,b,c,d,e){return this.a.ib(a,b,c,d,e)};Fn.prototype.requestInternal=Fn.prototype.Pa;Fn.prototype.fd=function(a){un(a,\"OMV\");this.yd(a)};Fn.prototype.setStyle=Fn.prototype.fd;Fn.prototype.Ia=function(){return Fn.l.Eb.apply(this)};Fn.prototype.getStyle=Fn.prototype.Ia;\nFn.prototype.Eb=function(){var a=Fn.l.Eb.apply(this),b;this.B&&(a.getState()===gj.READY?(b=a.Ef())&&b.global&&(this.o&&(b.global.ux_language=this.o),this.b&&(b.global.ux_language_fallback=this.b),a=new fj(b,a.Kd())):a.load());return a};function Hn(a,b,c){var d=a.Eb().getState()===gj.READY,e=ra(b),f=ra(c);e&&(a.o=b);f&&(a.b=c);if(e||f)a.B=!0,d&&a.f()}Fn.prototype.s=function(){Fn.l.s.call(this);this.a.removeEventListener(\"versionupdate\",this.D)};\nFn.prototype.la=function(a,b){return In(this.a.la(),\"normal\",b,a)};Fn.prototype.getCopyrights=Fn.prototype.la;function Gn(a){var b=vn({},this.ra,a||{}),c=b.mapVersion;G.call(this);if(!Gn.rb)throw new nc(Gn);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Gn,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.Zh=b.platformBaseUrl;this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();if(Ub(c)&&0<=c)this.Ne=c;else if(c!==B)throw new D(Gn,0,\"Invalid map version\");this.wa(b.baseUrl?a||{}:b)}w(Gn,G);u(\"H.service.omv.Service\",Gn);Gn.prototype.ra={};Gn.CONFIG_KEY=\"omv\";Gn.prototype.zm=function(){return this.Ne};\nGn.prototype.getMapVersion=Gn.prototype.zm;Gn.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path);Lb(this.Ne)||Jn(this)};function Jn(a){(new cf(\"application/json\",a.A.clone().ta(\"v2/vectortiles/info\").toString())).then(function(a){this.Ne=a.mapVersion;this.dispatchEvent(\"versionupdate\")}.bind(a),function(){})}Gn.prototype.Ja=function(){return this.A};Gn.prototype.te=function(a,b){return new Dk(new Fn(this,a,b),{max:22})};Gn.prototype.createLayer=Gn.prototype.te;\nGn.prototype.ib=function(a,b,c,d,e){a=this.A.clone().Y(c+\"/\"+a+\"/\"+b+\"/omv\");Lb(this.Ne)&&a.K({mv:this.Ne});a=new cf(\"arraybuffer\",a.toString(),rd);a.then(function(a){a.arrayBuffer().then(d,e)},e);return a};Gn.prototype.mh=function(a){return En(this.Zh).Y(\"omv/\"+a+\".yaml\")};U.prototype.zj=function(a){return this.ob(Gn,vn({subDomain:\"vector\",path:\"v2/vectortiles/base/mc\"},a||{}))};U.prototype.getOMVService=U.prototype.zj;Gn.prototype.ye=function(){this.Uc=new Kn;this.Ei(wn)};\nGn.prototype.Ei=function(a){Ln(this.Uc,a);this.dispatchEvent(\"copyrightupdate\")};Gn.prototype.la=function(){this.Uc||this.ye();return this.Uc};Gn.prototype.getCopyrights=Gn.prototype.la;function Kn(){this.a={}}function Ln(a,b){for(var c in b)if(b.hasOwnProperty(c)){var d,e=b[c],f=a.a[c]||(a.a[c]=[]),g=e.length;for(d=0;d<g;d++)f.push(new Mn(e[d]))}}function In(a,b,c,d){var e=(a=a.a[b])?a.length:0,f=[];for(b=0;b<e;b++)a[b].Vd(c,d)&&f.push(a[b]);return f}\nfunction Mn(a){var b,c=a.boxes;this.label=a.label;this.min=a.minLevel;this.max=a.maxLevel;this.b=[];if(c&&(b=c.length)){var d=c[0];var e=new J(d[0],d[1],d[2],d[3]);this.b.push(e);this.a=new J(d[0],d[1],d[2],d[3]);for(a=1;a<b;a++)d=c[a],e=new J(d[0],d[1],d[2],d[3]),this.b.push(e),this.a.jc(e,!1,this.a)}}Mn.prototype.Vd=function(a,b){if(a>=this.min&&a<=this.max)if((a=this.b.length)&&this.a){if(this.a.Vd(b))for(;a--;)if(this.b[a].Vd(b))return!0}else return!0;return!1};function Nn(a,b,c,d,e,f,g){var h=this;g=g||{};f=f?f:{};var k=a.Ja().clone().Y(b+\"/\"+a.zc()+\"/\"+c).K(f),l=a.jh();this.G=a;this.X=k;Kj.call(this,{tileSize:d,max:512===d?19:20,min:512===d?2:0,getURL:function(a,b,c){var f=h.X.clone();l&&f.ua(l[(c+b+a)%l.length]);f.Y(c+\"/\"+a+\"/\"+b+\"/\"+d+\"/\"+e);return f.toString()},crossOrigin:g.crossOrigin,uri:k.toString().replace(/_/g,\"\")+d});this.qc=b;this.o=c;this.Da=f;this.Ya=c.split(\".\")[0];this.b=A(this.b,this);this.getCopyrights=this.la;this.ca=zc();a.addEventListener(\"versionupdate\",\nthis.b)}w(Nn,Kj);Nn.prototype.MAX_STORE_TIME=2592E6;Nn.prototype.s=function(){Kj.prototype.s.call(this);this.G.removeEventListener(\"versionupdate\",this.b)};Nn.prototype.la=function(a,b){return In(this.G.la(),this.Ya,b,a)};Nn.prototype.b=function(){var a=this.G;this.X=a.Ja().clone().Y(this.qc+\"/\"+a.zc()+\"/\"+this.o).K(this.Da);this.reload(!1)};Nn.prototype.pe=function(){return this.ca};Nn.prototype.canStore=Nn.prototype.pe;Nn.prototype.Sd=function(){return this.pe()?yc():Q.prototype.Sd.call(this)};\nNn.prototype.getStorage=Nn.prototype.Sd;function On(a){var b=vn({},this.ra,a||{});if(!On.rb)throw new nc(On);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(On,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');G.call(this);this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b);this.Zb=b.shards;(this.Qa=b.ignoreTypes?null:b.type)&&this.A.ua(this.Qa);this.$b=b.version;this.Uc=new Kn;this.ci={};this.yf=0;\"newest\"===this.$b&&this.Vg()}w(On,G);u(\"H.service.MapTileService\",On);\nOn.prototype.ra={subDomain:\"maps.ls\",path:\"maptile/2.1\",type:\"base\",version:\"newest\",shards:[\"1\",\"2\",\"3\",\"4\"]};On.CONFIG_KEY=\"maptile\";n=On.prototype;n.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};n.ia=function(a,b,c){return(new cf(\"application/json\",a,rd)).then(b,function(b){c(Error(\"[\"+b.statusText+\"] \"+a+\" request failed\"))})};function Pn(a,b){for(var c={},d=a[b+\"s\"][b],e=d.length;e--;)c[d[e].id]=d[e];a[b+\"s\"]=c}n.Ja=function(){return this.A};n.jh=function(){return this.Zb};\nn.Cj=function(){return this.Qa};On.prototype.getType=On.prototype.Cj;On.prototype.zc=function(){return this.$b};On.prototype.getVersion=On.prototype.zc;On.prototype.xi=function(a){this.$b=a};On.prototype.la=function(){this.yf||(this.$b&&\"newest\"!==this.$b||\"traffic\"===this.Qa)&&this.ye();return this.Uc};On.prototype.getCopyrights=On.prototype.la;n=On.prototype;\nn.Fi=function(a){a=a.response;var b;Pn(a,\"map\");Pn(a,\"scheme\");Pn(a,\"tiletype\");Pn(a,\"format\");Pn(a,\"resolution\");Pn(a,\"language\");if(\"newest\"===this.$b&&\"traffic\"!==this.Qa)for(b in a.maps)a.maps[b].hash&&a.maps[b].newest&&(this.xi(a.maps[b].hash),this.dispatchEvent(\"versionupdate\"));this.sh=a;this.dispatchEvent(\"infoupdate\")};n.Ei=function(a){Ln(this.Uc,a);this.dispatchEvent(\"copyrightupdate\")};\nn.Vg=function(){var a=this;var b=this.A.clone().Y(\"info\").K({output:\"json\"});this.Zb&&b.ua(this.Zb[0]);this.ia(b,function(b){a.Fi(b)},function(a){throw a;})};n.ye=function(){var a=this;var b=this.A.clone().Y(\"copyright\").Y(a.zc()).K({output:\"json\"});this.Zb&&b.ua(this.Zb[0]);this.yf=1;this.ia(b,function(b){a.yf=2;a.Ei(b)},function(b){a.yf=-1;throw b;})};n.eh=function(){return this.sh};On.prototype.getInfo=On.prototype.eh;\nOn.prototype.ve=function(a,b,c,d,e,f){var g=this.Ja().clone().Y(a+\"/\"+this.zc()+\"/\"+b+\"/\"+c+\"/\"+d).K(e?e:{}).toString();var h=0,k,l=g.length;if(0!==l)for(k=0;k<l;k++){var m=g.charCodeAt(k);h=(h<<5)-h+m;h|=0}g=h;h=this.ci[g];h||(h=new Nn(this,a,b,c,d,e,f),this.ci[g]=h);return h};On.prototype.createTileProvider=On.prototype.ve;On.prototype.sc=function(a,b,c,d,e,f,g,h){a=this.ve(a,b,c,d,e,h);return new Dk(a,{opacity:f,dark:!!g})};On.prototype.createTileLayer=On.prototype.sc;\nU.prototype.hh=function(a){return this.ob(On,a)};U.prototype.getMapTileService=U.prototype.hh;U.prototype.Mg=function(a,b,c,d,e,f){var g=this.hh(),h=this.hh({type:\"aerial\"}),k=this.Bj(),l=this.zj(),m={},p={crossOrigin:\"anonymous\"};wa(a)&&(f=a,\"crossOrigin\"in f&&(p.crossOrigin=f.crossOrigin),a=f.tileSize,b=f.ppi,c=f.lg,d=f.lg2,e=f.style,f=f.pois);var q=a||512;if(0>[72,250,320,500].indexOf(+b)){if(b!==B)throw new D(this.Mg,1,b);}else m.ppi=+b;c&&(m.lg=c);d&&(m.lg2=d);e&&(m.style=e);f&&(m.pois=f);a=function(a,b,c,d,e){return a.sc(b,c,q,d,m,1,e,p)};l=l.te(new fj(l.mh(\"normal.day\").toString()));\nHn(l.za(),m.lg,m.lg2);b=k.dj();k=k.ej(m.lg?{lg:m.lg,i18n:!0}:void 0);return{vector:{normal:{map:l,traffic:b,trafficincidents:k}},raster:{normal:{xbase:a(g,\"xbasetile\",\"normal.day\",\"png8\",!1),xbasenight:a(g,\"xbasetile\",\"normal.night\",\"png8\",!0),base:a(g,\"basetile\",\"normal.day\",\"png8\",!1),basenight:a(g,\"basetile\",\"normal.night\",\"png8\",!0),map:a(g,\"maptile\",\"normal.day\",\"png8\",!1),mapnight:a(g,\"maptile\",\"normal.night\",\"png8\",!0),trafficincidents:k,transit:a(g,\"maptile\",\"normal.day.transit\",\"png8\",!1),\nlabels:a(g,\"labeltile\",\"normal.day\",\"png\",!1)},satellite:{xbase:a(h,\"xbasetile\",\"hybrid.day\",\"jpg\",!0),base:a(h,\"basetile\",\"hybrid.day\",\"jpg\",!0),map:a(h,\"maptile\",\"hybrid.day\",\"jpg\",!0),labels:a(h,\"labeltile\",\"hybrid.day\",\"png\",!0)},terrain:{xbase:a(h,\"xbasetile\",\"terrain.day\",\"jpg\",!1),base:a(h,\"basetile\",\"terrain.day\",\"jpg\",!1),map:a(h,\"maptile\",\"terrain.day\",\"jpg\",!1),labels:a(h,\"labeltile\",\"terrain.day\",\"png\",!1)}}}};U.prototype.createDefaultLayers=U.prototype.Mg;function Qn(a){var b=vn({},this.ra,a||{});if(!Qn.rb)throw new nc(Qn);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Qn,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b)}u(\"H.service.RoutingService\",Qn);Qn.prototype.ra={subDomain:\"route.ls\",path:\"routing/7.2\"};Qn.CONFIG_KEY=\"routing\";Qn.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};Qn.prototype.Ja=function(){return this.A};\nQn.prototype.ia=function(a,b,c){return(new cf(\"application/json\",a,rd)).then(b,function(b){b.json().then(function(b){c(Error(\"[\"+b.details+\"] \"+a+\" request failed\"))},function(){c(Error(\"[\"+b.statusText+\"] \"+a+\" request failed\"))})})};Qn.prototype.rf=function(a,b,c){a=this.A.clone().Y(\"calculateroute.json\").K(a);this.ia(a,b,c)};Qn.prototype.calculateRoute=Qn.prototype.rf;Qn.prototype.Al=function(a,b,c){a=this.A.clone().ua(\"isoline\").Y(\"calculateisoline.json\").K(a);this.ia(a,b,c)};\nQn.prototype.calculateIsoline=Qn.prototype.Al;U.prototype.Sm=function(a){return this.ob(Qn,a)};U.prototype.getRoutingService=U.prototype.Sm;function Rn(a){var b=vn({},this.ra,a||{});if(!Rn.rb)throw new nc(Rn);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Rn,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b);this.Fk=b.reverseSubDomain}u(\"H.service.GeocodingService\",Rn);Rn.prototype.ra={subDomain:\"geocoder.ls\",reverseSubDomain:\"reverse\",path:\"6.2\"};Rn.CONFIG_KEY=\"geocoding\";\nRn.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};Rn.prototype.Ja=function(){return this.A};Rn.prototype.ia=function(a,b,c){return(new cf(\"application/json\",a,rd)).then(b,function(b){b.json().then(function(b){c(Error(\"[\"+b.Details+\"] \"+a+\" request failed\"))},function(){c(Error(\"[\"+b.statusText+\"] \"+a+\" request failed\"))})})};Rn.prototype.Ql=function(a,b,c){a=this.A.clone().Y(\"geocode.json\").K(a);return this.ia(a,b,c)};Rn.prototype.geocode=Rn.prototype.Ql;\nRn.prototype.Yn=function(a,b,c){a=this.A.clone().Y(\"reversegeocode.json\").K(a);this.Fk&&a.ua(this.Fk);return this.ia(a,b,c)};Rn.prototype.reverseGeocode=Rn.prototype.Yn;Rn.prototype.search=function(a,b,c){a=this.A.clone().Y(\"search.json\").K(a);return this.ia(a,b,c)};Rn.prototype.search=Rn.prototype.search;U.prototype.lm=function(a){return this.ob(Rn,a)};U.prototype.getGeocodingService=U.prototype.lm;function Sn(a){var b=vn({},this.ra,a||{});if(!Sn.rb)throw new nc(Sn);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Sn,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b)}u(\"H.service.PlacesService\",Sn);Sn.prototype.ra={subDomain:\"places.ls\",path:\"places/v1\"};Sn.CONFIG_KEY=\"places\";Sn.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};Sn.prototype.Ja=function(){return this.A};\nSn.EntryPoint={SEARCH:\"discover/search\",SUGGEST:\"suggest\",EXPLORE:\"discover/explore\",AROUND:\"discover/around\",HERE:\"discover/here\",CATEGORIES:\"categories/places\"};Sn.prototype.ia=function(a,b,c){return(new cf(\"application/json\",a,rd)).then(b,function(b){b.json().then(function(b){c(Error(\"[\"+b.message+\"] \"+a+\" request failed\"))},function(){c(Error(\"[\"+b.statusText+\"] \"+a+\" request failed\"))})})};Sn.prototype.request=function(a,b,c,d){a=this.A.clone().Y(a).K(b||{});return this.ia(a,c,d)};\nSn.prototype.request=Sn.prototype.request;Sn.prototype.search=function(a,b,c){return this.request(\"discover/search\",a,b,c)};Sn.prototype.search=Sn.prototype.search;Sn.prototype.jo=function(a,b,c){return this.request(\"suggest\",a,b,c)};Sn.prototype.suggest=Sn.prototype.jo;Sn.prototype.Ll=function(a,b,c){return this.request(\"discover/explore\",a,b,c)};Sn.prototype.explore=Sn.prototype.Ll;Sn.prototype.yl=function(a,b,c){return this.request(\"discover/around\",a,b,c)};Sn.prototype.around=Sn.prototype.yl;\nSn.prototype.gn=function(a,b,c){return this.request(\"discover/here\",a,b,c)};Sn.prototype.here=Sn.prototype.gn;Sn.prototype.Dl=function(a,b,c){return this.request(\"categories/places\",a,b,c)};Sn.prototype.categories=Sn.prototype.Dl;Sn.prototype.Nl=function(a,b,c,d){a=xn(a).K(d||{});return this.ia(a,b,c)};Sn.prototype.follow=Sn.prototype.Nl;U.prototype.Im=function(a){return this.ob(Sn,a)};U.prototype.getPlacesService=U.prototype.Im;function Tn(){this.a={}}Tn.prototype.Ab=function(a,b){var c=a+b,d;if(d=this.a[c])return d;a=Un.MARKER.replace(\"{{icon}}\",Vn[a]||Vn.OTHER);a=a.replace(\"{{color}}\",Wn[b]||Wn.BLOCKING);b={size:{w:26,h:33},anchor:{x:13,y:30},hitArea:new vh(wh.POLYGON,Xn.MARKER)};return this.a[c]=d=new Si(a,b)};\nvar Un={MARKER:'<svg width=\"26\" height=\"33\" enable-background=\"new 0 0 26 33\" viewBox=\"0 0 26 33\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m26 33h-26v-33h26z\" fill=\"#8c8c8c\" opacity=\"0\"/><path d=\"m17 29.566c0 1.116-1.791 2.022-4 2.022s-4-.906-4-2.022c0-1.118 1.791-2.026 4-2.026s4 .908 4 2.026\" fill=\"#878787\" opacity=\".6\"/><path d=\"m1.795 17.971c-1.562-1.555-1.574-3.828-.028-5.655l8.343-10.021c.769-.895 1.795-1.384 2.894-1.384 1.117 0 2.197.521 2.889 1.394l8.338 10.014c1.588 1.854 1.578 4.022-.029 5.65l-11.202 11.202z\" fill=\"{{color}}\"/>{{icon}}</svg>'},Vn=\n{CONGESTION:'<path style=\"fill:#FFFFFF;\" d=\"M12.966,1.177c0.965,0,1.894,0.442,2.496,1.204l8.378,10.258c1.362,1.592,1.482,3.477,0,4.979L12.994,28.464L2.143,17.618c-1.381-1.375-1.38-3.348,0-4.979l8.314-10.258C11.174,1.547,12.085,1.177,12.966,1.177 M12.967,0.177L12.967,0.177c-1.247,0-2.408,0.551-3.269,1.552l-8.332,10.28c-1.711,2.022-1.688,4.567,0.07,6.317l10.85,10.845l0.707,0.707l0.707-0.707l10.847-10.846c1.784-1.807,1.803-4.292,0.053-6.337L16.237,1.748C15.462,0.769,14.236,0.177,12.967,0.177L12.967,0.177z M16.645,10.405l-2.025-2.22c-0.48-0.51-1.15-0.8-1.84-0.8H9.53c-0.69,0-1.36,0.29-1.84,0.8l-1.94,2.22c-0.39,0.63-0.59,1.35-0.59,2.09v1.64c0,0.69,0.56,1.25,1.25,1.25h1.44l0.255-0.539c0.204-0.431,0.456-0.837,0.753-1.21l0.962-1.211l0.83-0.9c0.32-0.35,0.72-0.63,1.15-0.82H8.23c-0.28,0-0.55-0.07-0.79-0.22l-0.28-0.17l1.27-1.45c0.28-0.31,0.68-0.48,1.1-0.48h3.25c0.42,0,0.82,0.17,1.1,0.48l1.354,1.54H16.645z M18.31,12.205c-0.35-0.37-0.81-0.63-1.3-0.74c-0.18-0.04-0.36-0.06-0.54-0.06h-3.24c-0.7,0-1.37,0.29-1.84,0.8l-1.13,1.22l-0.82,1c-0.38,0.63-0.59,1.35-0.59,2.09v1.64c0,0.69,0.56,1.25,1.25,1.25h1.75v-1h5.99v1h1.75c0.69,0,1.25-0.56,1.25-1.25v-1.64c0-0.74-0.2-1.46-0.59-2.09L18.31,12.205z M12.1,17.105h-1c-0.138,0-0.25-0.112-0.25-0.25v-1c0-0.138,0.112-0.25,0.25-0.25h1c0.138,0,0.25,0.112,0.25,0.25v1C12.35,16.993,12.238,17.105,12.1,17.105z M18.59,17.105h-1c-0.138,0-0.25-0.112-0.25-0.25v-1c0-0.138,0.112-0.25,0.25-0.25h1c0.138,0,0.25,0.112,0.25,0.25v1C18.84,16.993,18.728,17.105,18.59,17.105z M18.56,14.505c-0.24,0.15-0.51,0.22-0.79,0.22h-5.85c-0.28,0-0.55-0.07-0.78-0.22l-0.29-0.17l1.27-1.45c0.15-0.16,0.33-0.28,0.53-0.37c0.18-0.07,0.38-0.11,0.58-0.11h3.24c0.24,0,0.48,0.06,0.68,0.16c0.16,0.08,0.3,0.19,0.42,0.32l1.27,1.45L18.56,14.505z M8.42,13.03h-1c-0.138,0-0.25-0.112-0.25-0.25v-1c0-0.138,0.112-0.25,0.25-0.25h1c0.138,0,0.25,0.112,0.25,0.25v1C8.67,12.918,8.559,13.03,8.42,13.03z\"/>',\nROADWORKS:'<path d=\"m13.004 1.411c.964 0 1.894.441 2.496 1.204l8.346 10.023c1.363 1.592 1.482 3.477 0 4.979l-10.846 10.847-10.852-10.846c-1.381-1.375-1.379-3.348 0-4.979l8.346-10.023c.717-.835 1.628-1.205 2.51-1.205m0-1c-1.248 0-2.408.551-3.268 1.552l-8.356 10.035c-1.718 2.033-1.695 4.578.064 6.328l10.85 10.845.706.707.707-.707 10.846-10.846c1.784-1.808 1.803-4.293.053-6.337l-8.337-10.012c-.769-.973-1.996-1.565-3.265-1.565zm-.575 15.264c.018-.332-.13-.651-.394-.851l-2.945-2.235-.21.36c-.22.39-.41.78-.58 1.19l-.677 2.129-1.364 3.051h1.314l2.109-4.672 1.317 1.212.138 3.46h1.092zm6.16-1.327c-.401-.54-1.209-.539-1.609.001l-1.17 1.58-2.29-1.74-.139-4.054c-.011-.276-.134-.535-.342-.716l-.7-.61c-.185-.161-.422-.25-.667-.25h-1.885c-.335 0-.648.168-.833.447l-1.144 1.723 7.58 5.76-1.86 2.51c-.098.132-.004.32.161.32h6.648l1.142-1.077zm-8.79-2.989-.876-.665.841-1.018.965.043zm1.63 1.24.969-1.781.118 2.61zm2.76-5.79c-.64 0-1.16.52-1.16 1.16 0 .65.52 1.17 1.16 1.17s1.16-.52 1.16-1.17c0-.64-.52-1.16-1.16-1.16z\" fill=\"#fff\"/>',\nACCIDENT:'<path style=\"fill:#FFFFFF;\" d=\"M12.998,1.091c0.964,0,1.894,0.442,2.496,1.204l8.346,10.344c1.363,1.592,1.482,3.477,0,4.979L12.994,28.465L2.143,17.618c-1.381-1.375-1.379-3.348,0-4.979l8.346-10.344C11.205,1.462,12.115,1.091,12.998,1.091 M12.998,0.091L12.998,0.091c-1.248,0-2.408,0.551-3.269,1.552L1.364,12.011c-1.708,2.021-1.685,4.566,0.073,6.316l10.85,10.845l0.707,0.707l0.707-0.707l10.846-10.846c1.784-1.808,1.803-4.293,0.053-6.337l-8.327-10.32C15.494,0.684,14.268,0.091,12.998,0.091L12.998,0.091z M7.83,18.982l-3.309-1.855l0.945,1.855H7.83z M16.111,19h3.942l1.596-2L16.111,19z M10.512,20.064l1.021-1.021l1.632,0.076c0.329,0.018,0.651-0.022,0.963-0.123c0.626-0.206,1.122-0.76,1.288-1.44l0.264-1.089l2.066-0.93c0.373-0.17,0.673-0.42,0.861-0.731c0.275-0.449,0.405-0.97,0.369-1.498L18.9,11.676l1.021-1.021l-0.724-0.724l-0.427,0.427l-0.121-0.364c-0.201-0.603-0.54-1.151-0.989-1.6l-1.159-1.159c-0.5-0.5-1.31-0.5-1.809,0l-1.267,1.267l0.724,0.724l-5.066,5.066l-0.724-0.724l-1.267,1.267c-0.5,0.5-0.5,1.31,0,1.809l1.159,1.159c0.449,0.449,0.997,0.788,1.6,0.989l0.364,0.121l-0.427,0.427L10.512,20.064z M14.901,10.349l0.732-0.732c0.098-0.098,0.256-0.098,0.354,0l0.732,0.732c0.098,0.098,0.098,0.256,0,0.354l-0.732,0.732c-0.098,0.098-0.256,0.098-0.354,0l-0.732-0.732C14.803,10.604,14.803,10.446,14.901,10.349z M9.472,15.777l0.732-0.732c0.098-0.098,0.256-0.098,0.354,0l0.732,0.732c0.098,0.098,0.098,0.256,0,0.354l-0.732,0.732c-0.098,0.098-0.256,0.098-0.354,0L9.472,16.13C9.375,16.033,9.375,15.874,9.472,15.777z M11.391,17.615c0.069-0.271,0.206-0.518,0.405-0.717l4.961-4.961c0.195-0.195,0.445-0.337,0.717-0.405l0.344-0.083l0.137,1.925c0.022,0.318-0.058,0.63-0.221,0.901c-0.101,0.166-0.279,0.271-0.409,0.329L14.8,15.74l-0.38,1.574c-0.083,0.344-0.318,0.615-0.612,0.713c-0.188,0.058-0.38,0.083-0.579,0.072l-1.925-0.138L11.391,17.615z\"/>',\nOTHER:'<path style=\"fill:#FFFFFF;\" d=\"M13.004,1.411c0.964,0,1.894,0.441,2.496,1.204l8.346,10.023c1.363,1.592,1.482,3.477,0,4.979L13,28.465L2.148,17.618c-1.381-1.375-1.379-3.348,0-4.979l8.346-10.023C11.211,1.781,12.122,1.411,13.004,1.411 M13.004,0.411L13.004,0.411c-1.248,0-2.408,0.551-3.268,1.552L1.38,11.998c-1.718,2.033-1.694,4.579,0.064,6.328l10.85,10.845L13,29.878l0.707-0.707l10.846-10.846c1.784-1.808,1.803-4.293,0.053-6.337L16.269,1.976C15.5,1.003,14.273,0.411,13.004,0.411L13.004,0.411z M14.716,20.139c0,0.947-0.758,1.724-1.724,1.724c-0.947,0-1.704-0.777-1.704-1.724c0-0.928,0.757-1.704,1.704-1.704C13.958,18.435,14.716,19.211,14.716,20.139z M14.204,16.33H11.78l-0.537-8.533h3.5L14.204,16.33z\"/>'},\nWn={BLOCKING:\"#323232\",VERYHIGH:\"#d5232f\",HIGH:\"#ffa100\"},Xn={MARKER:[24.1,17.8,14.2,28.42,16.8,29.4,12.8,31.4,8.79,29.4,11.23,28.42,1.7,17.8,1.7,12.1,10,1.9,12.9,.498,15.8,1.9,24.1,12.1,24.1,17.8]};function Yn(a,b,c){c=c?c:{};c.criticality||(c.criticality=\"major,critical\");C(a,Zn,Yn,0);Rm.call(this,{max:20,min:8,requestData:A(this.$,this)});this.b=new Tn;this.D=a;this.Da=c;this.reload=A(this.reload,this);this.o=setInterval(this.reload,b||18E4)}w(Yn,Rm);u(\"H.service.traffic.incidents.Provider\",Yn);Yn.prototype.a={minor:\"HIGH\",\"low impact\":\"HIGH\",major:\"VERYHIGH\",critical:\"BLOCKING\"};\nYn.prototype.$=function(a,b,c,d,e){var f=this,g=this.a,h=this.b;return this.D.requestIncidentsByTile(a,b,c,function(a){var b=[];a=a.TRAFFIC_ITEMS;var c;if(a)for(a=a.TRAFFIC_ITEM,c=a.length;c--;){var e=a[c];var k=e.TRAFFIC_ITEM_TYPE_DESC;switch(k){case \"ACCIDENT\":case \"CONGESTION\":var t=k;break;case \"CONSTRUCTION\":t=\"ROADWORKS\";break;default:t=\"OTHER\"}t=h.Ab(t,g[e.CRITICALITY.DESCRIPTION]);k=e.LOCATION.GEOLOC.ORIGIN;k=new Om({lat:k.LATITUDE,lng:k.LONGITUDE},{provider:f,icon:t});k.setData(e);b.push(k)}d(b)},\ne,this.Da)};Yn.prototype.F=function(){Rm.prototype.F.call(this);clearInterval(this.o)};function $n(a){function b(b){d.contains(e)&&d.removeChild(e);l&&clearTimeout(l);delete $n.a[f];b&&a.pj&&a.pj.call(k,b)}if(!a.url||!a.Ig)throw Error('Parameter \"options\" must specify at least a URL and a callback.');if(\"function\"!==typeof a.Ig)throw Error(\"Parameters options.callback must be a function\");var c=a.Do||document;var d=c.getElementsByTagName(\"head\")[0];var e=c.createElement(\"script\");c=a.url instanceof T?a.url:xn(a.url,a.Co);var f=$n.b++;var g=a.Bl||\"callback\";var h=a.Ig;var k={};var l=\nnull;k.id=f;k.cancel=function(){b(\"cancelled\")};0!==a.timeout&&(l=y.setTimeout(function(){b(\"timeout\")},a.timeout||3E4));$n.a[f]=function(a){b();h.call(k,a)};e.type=\"text/javascript\";e.src=c.toString()+(c.Ij()?\"&\":\"?\")+g+\"=\"+(a.Eo?\"H.service.jsonp.handleResponse(\"+f+\")\":encodeURI(\"H.service.jsonp.handleResponse(\"+f+\")\"));d.appendChild(e);return k}u(\"H.service.jsonp\",$n);$n.en=function(a){return(a=$n.a[a])?a:function(){}};$n.handleResponse=$n.en;$n.b=0;$n.a={};function Zn(a){var b=vn({},this.ra,a||{});if(!Zn.rb)throw new nc(Zn);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Zn,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.Zh=b.platformBaseUrl;this.wa(b.baseUrl?a||{}:b);this.Cl=b.callbackKey}u(\"H.service.traffic.Service\",Zn);Zn.prototype.ra={subDomain:\"traffic.ls\",path:\"traffic/6.1\",callbackKey:\"jsoncallback\"};Zn.CONFIG_KEY=\"traffic\";\nZn.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};Zn.prototype.Ja=function(){return this.A};Zn.prototype.dj=function(a){return new Dk(new ao(this,void 0,a),{max:22})};Zn.prototype.createFlowLayer=Zn.prototype.dj;Zn.prototype.ej=function(a){return new Sm(new Yn(this,void 0,a))};Zn.prototype.createIncidentsLayer=Zn.prototype.ej;function bo(a,b,c,d){return $n({url:b,Ig:c,pj:function(a){d(Error(\"[\"+a+\"] \"+b+\" request failed\"))},Bl:a.Cl})}\nZn.prototype.Wn=function(a,b,c){a=this.A.clone().Y(\"incidents.json\").K(a);return bo(this,a,b,c)};Zn.prototype.requestIncidents=Zn.prototype.Wn;Zn.prototype.Vn=function(a,b,c,d,e,f){a=this.A.clone().Y([\"flow/json\",c,a,b].join(\"/\")).K(f||{});return bo(this,a,d,e)};Zn.prototype.requestFlowByTile=Zn.prototype.Vn;Zn.prototype.Xn=function(a,b,c,d,e,f){a=this.A.clone().Y([\"incidents/json\",c,a,b].join(\"/\")).K(f||{});return bo(this,a,d,e)};Zn.prototype.requestIncidentsByTile=Zn.prototype.Xn;\nZn.prototype.mh=function(){return En(this.Zh).Y(\"traffic/flow.yaml\")};U.prototype.Bj=function(a){return this.ob(Zn,a)};U.prototype.getTrafficService=U.prototype.Bj;var co=\"A21 A22 F01 F02 F08 F04 F05 F07 F03 F06 A2F F13 A25 A2C F12 D1B F1B A27 E12 A3A A24 A3D A3F F1F F25 F2C E32 A33 F29 D26 D36 F26 D0F F0F F2B E0C D3A A45 D23 D11 F2E F19 F14 F39 A4A A4B A5C D38 F2A F1A D0A F1C A48 D25 D1D F32 A46 A3E D24 E1C E32 A5F D2E D22 D0A\".split(\" \");function eo(a,b){var c={};this.a=a;Pa(c,b||c);zj.call(this,c);this.bg={};a=this.Pb(yg.SPATIAL);a.update(a.a+1,vg.ADD)}w(eo,zj);u(\"H.service.remote.ObjectProvider\",eo);eo.prototype.F=function(){zj.prototype.F.call(this)};var fo=[];eo.prototype.Ic=function(){return fo};eo.prototype.requestMarkers=eo.prototype.Ic;eo.prototype.Hc=function(){return fo};eo.prototype.requestDomMarkers=eo.prototype.Hc;eo.prototype.ud=function(){return fo};eo.prototype.requestOverlays=eo.prototype.ud;\neo.prototype.Ub=Re;eo.prototype.providesMarkers=eo.prototype.Ub;eo.prototype.Tb=Re;eo.prototype.providesDomMarkers=eo.prototype.Tb;eo.prototype.Gc=Re;eo.prototype.providesSpatials=eo.prototype.Gc;eo.prototype.eg=function(){return fo};eo.prototype.requestSpatials=eo.prototype.eg;function go(a){return a.Ac(!0)}eo.prototype.fg=function(a,b){a=ho(this,a,io);b&&(a=a.filter(go));return a};eo.prototype.requestSpatialsByTile=eo.prototype.fg;\nfunction ho(a,b,c){var d=b.j&&b.j[c],e;!d&&(e=b.m)&&(delete b.m,(b.j=a=a.a.parse(a,b,e))&&(d=a[c]));return d||fo}eo.prototype.T=function(a){var b=a.eb();if(this.bg[b])throw new nc(this.T,\"Remote object \"+b+\" already added\");return this.bg[b]=a};eo.prototype.La=function(a){delete this.bg[a.eb()]};var io=\"spatials\";function ao(a,b,c){ao.l.constructor.call(this,{min:jo,max:ko});C(a,Zn,ao,0);this.b=a;this.Da=c||lo;this.Da.responseattributes=\"sh,fc\";this.a=setInterval(A(this.reload,this),b||18E4);this.yd(new fj(a.mh().toString()),!0)}w(ao,Q);u(\"H.service.traffic.flow.Provider\",ao);ao.prototype.Ia=function(){return this.Eb()};ao.prototype.getStyle=ao.prototype.Ia;ao.prototype.fd=function(a){un(a,\"GeoJSONTileSource\");this.yd(a)};ao.prototype.setStyle=ao.prototype.fd;var lo={locationreferences:\"tmc,shp\"};\nao.prototype.s=function(){ao.l.s.call(this);clearInterval(this.a)};ao.prototype.Pa=function(a,b,c,d,e){return this.b.requestFlowByTile(a,b,c,function(a){a.type&&-1!==a.type.indexOf(\"Error\")?e(a.Details):d(a)},e,this.Da)};ao.prototype.requestInternal=ao.prototype.Pa;\nao.prototype.jd=function(a,b,c,d,e){var f,g,h,k,l={type:\"FeatureCollection\",features:[]},m;var p=d.RWS.length;for(f=0;f<p;f++){var q=d.RWS[f];var t=q.RW;var v=t.length;var x=-1!==co.indexOf(q.EXTENDED_COUNTRY_CODE+q.EBU_COUNTRY_CODE);for(q=0;q<v;q++){var E=t[q].FIS;var O=E.length;for(E=0;E<O;E++){var Y=t[q].FIS[E].FI;var Ga=Y.length;for(g=0;g<Ga;g++){var pa=Y[g];var Ma=[];var ja=pa.CF[0];var Wb=!!ja.SSS;var ob={type:\"Feature\",properties:ja,geometry:{type:\"MultiLineString\",coordinates:Ma}};ob.properties.LHT=\nx;pa.SHP.length&&(ob.properties.FC=pa.SHP[0].FC);Wb&&(m=[]);for(ja=0;ja<pa.SHP.length;ja++){var Uc=pa.SHP[ja].value;var ci=Uc.length;for(h=0;h<ci;h++){var ye=Wb?m:void 0,Eb=new rn(Uc[h].trim()),di=mo,ei=no,Kf=[],Ed={};for(Eb.f();-1!==(k=Eb.a());)k===di?(Ed.lat=+String.fromCharCode.apply(ao,Eb.b()),Eb.next(),Eb.f()):k===ei?(Ed.lng=+String.fromCharCode.apply(ao,Eb.b()),Kf.push([Ed.lng,Ed.lat]),ye&&ye.push(Jf(Ed)),Ed=[],Eb.next(),Eb.f()):Eb.next();Ed.lng=+String.fromCharCode.apply(ao,Eb.b());Kf.push([Ed.lng,\nEd.lat]);ye&&ye.push(Jf(Ed));k=Kf;Ma.push(k)}}l.features.push(ob)}}}}return ao.l.jd.call(this,a,b,c,l,e)};ao.prototype.createTileInternal=ao.prototype.jd;var ko=21,jo=10,no=32,mo=44;function oo(){}u(\"H.service.extension.dataView.ITable\",oo);oo.prototype.Pd=function(){};oo.prototype.getMeta=oo.prototype.Pd;oo.prototype.Rd=function(){};oo.prototype.getRowCount=oo.prototype.Rd;oo.prototype.yc=function(){};oo.prototype.getRow=oo.prototype.yc;oo.prototype.Ta=function(){};oo.prototype.getColumnNames=oo.prototype.Ta;oo.prototype.Ce=function(){};oo.prototype.getColumn=oo.prototype.Ce;oo.prototype.va=function(){};oo.prototype.getCell=oo.prototype.va;oo.prototype.concat=function(){};\noo.prototype.concat=oo.prototype.concat;function po(){}u(\"H.service.extension.dataView.IRow\",po);po.prototype.Ta=function(){};po.prototype.getColumnNames=po.prototype.Ta;po.prototype.va=function(){};po.prototype.getCell=po.prototype.va;po.prototype.nd=function(){};po.prototype.getTable=po.prototype.nd;function qo(a,b){this.a=a;this.b=b}u(\"H.service.extension.dataView.ObjRow\",qo);qo.prototype.Ta=function(){return this.a.Ta()};qo.prototype.getColumnNames=qo.prototype.Ta;qo.prototype.va=function(a){return this.a.va(this.b,a)};qo.prototype.getCell=qo.prototype.va;qo.prototype.nd=function(){return this.a};qo.prototype.getTable=qo.prototype.nd;function ro(){}u(\"H.service.extension.dataView.IColumn\",ro);ro.prototype.va=function(){};ro.prototype.getCell=ro.prototype.va;function so(a,b){this.b=a;this.a=b}u(\"H.service.extension.dataView.ObjColumn\",so);so.prototype.va=function(a){return this.b.va(a,this.a)};so.prototype.getCell=so.prototype.va;function to(a,b,c){var d;b=b||(a&&a.length?Object.keys(a[0]):B);this.Hb=a;if(b)for(this.Fd=b,this.Jg=a=Fb(),d=b.length;d--;)a[b[d]]=!0;c!==B&&(this.Ph=c)}u(\"H.service.extension.dataView.ObjTable\",to);n=to.prototype;n.Ph=B;n.Hb=B;n.Fd=B;n.Jg=B;n.Pd=function(){return this.Ph};to.prototype.getMeta=to.prototype.Pd;to.prototype.Rd=function(){return this.Hb?this.Hb.length:0};to.prototype.getRowCount=to.prototype.Rd;to.prototype.yc=function(a){var b=this.Hb;return b&&b[a]?new qo(this,a):B};\nto.prototype.getRow=to.prototype.yc;to.prototype.Ta=function(){return this.Fd||Te};to.prototype.getColumnNames=to.prototype.Ta;to.prototype.Ce=function(a){return this.Jg[a]?new so(this,a):B};to.prototype.getColumn=to.prototype.Ce;to.prototype.va=function(a,b){var c=this.Hb;return(a=c&&this.Jg[b]&&c[a])&&a[b]};to.prototype.getCell=to.prototype.va;\nto.prototype.concat=function(){var a=arguments.length,b,c=this.Fd,d=\"\"+this.Fd,e=(this.Hb||[]).slice();for(b=0;b<a;b++){var f=arguments[b];if(!(f instanceof to))throw new D(this.concat,b);if(f.Hb){if(c&&\"\"+f.Fd!==d)throw new D(this.concat,b,\"Incompatible columns!\");e=e.concat(f.Hb)}}return new to(e,this.Fd,this.Ph)};to.prototype.concat=to.prototype.concat;function uo(a,b){a.Hb?a.Hb.push(b):a.Hb=[b];return a.Hb.length-1};function vo(a){var b=wo;if(!a||!ra(Me(a.layerId,a.layer))||!Tb(a.level)||Lb(a.rowFilter)&&!r(a.rowFilter)||Lb(a.rowFilterContext)&&!wa(a.rowFilterContext))throw new D(b,1,Lb(\"invalid layer config\")?\"invalid layer config\":a);};function xo(a,b,c,d){d=d||yo;this.Xe={};d.provider=a;this.invalidate=vc;xo.l.constructor.call(this,b,d);delete this.invalidate;c&&(this.b=c);this.Aa(vg.ADD)}w(xo,Kg);u(\"H.service.remote.Spatial\",xo);var yo={};xo.prototype.eb=function(){return this.b||Kg.prototype.eb.call(this)};xo.prototype.getId=xo.prototype.eb;xo.prototype.hg=Function();xo.prototype.retain=xo.prototype.hg;xo.prototype.release=Function();xo.prototype.release=xo.prototype.release;function zo(a,b){this.a=a;b&&(this.b=b)}\nvar Ao=new zo([]);xo.prototype.Nd=function(a){return(this.Xe[a.key]||Ao).a};xo.prototype.getGeometriesForTile=xo.prototype.Nd;xo.prototype.gh=function(a){return(this.Xe[a.key]||Ao).b};xo.prototype.getLabels=xo.prototype.gh;function Bo(a,b,c){a.Xe[b.key]=new zo(c,void 0)};function Co(a,b,c,d,e,f){Do(Co,1,b,c);Do(Co,2,d,e);(this.f=a.length)?(this.o=a,this.W=b,this.j=c,this.b=0,this.c=A(this.c,this),this.u=d,this.m=e,this.a=Fb(),Pa(this.a,Eo,f||{}),this.g={},y.setTimeout(this.c,0)):b(Te,!0)}var Eo={duration:100,Sl:\"geometry\",Rl:\"WKT\",Zn:\"searchAttributes\",hj:B};\nCo.prototype.c=function(){var a=[];var b=!1;for(var c=Oj(),d;this.b<this.f;){var e=this.o[this.b];b=e.attributes;d=e.layerId||this.a.hj;e.distance&&(b[this.a.Zn]={nearest:new I(e.nearestLat,e.nearestLon),distance:e.distance});if(e=e[this.a.Sl]){try{var f=Wm(new rn(e))}catch(g){this.j(new y.Error(g.message));b=!0;break}b[this.a.Rl]=f}(e=this.g[d])||(e=this.g[d]=this.u({layerId:d,columnNames:Object.keys(b)}));b=this.m(e,b);a.push(b);this.b++;if((b=this.b===this.f)||Oj()-c>=this.a.duration){this.W(a,\nb);break}}b?this.g=z:this.i=y.setTimeout(this.c,0)};Co.prototype.cancel=function(){y.clearTimeout(this.i);this.b<this.f&&this.j(new y.Error(\"parsing canceled\"))};Co.prototype.cancel=Co.prototype.cancel;function Do(a,b,c,d){if(!r(c))throw new D(a,b,\"has invalid type\");if(!r(d))throw new D(a,b+1,\"has invalid type\");};function Fo(a,b,c){var d=8===a;this.b=b;this.c=c||vc;(this.a=4===a||d)?this.j=d:this.g=1===a;this.f=this.a?\"$HProjGeometry\":\"geometry\"}\nFo.prototype.parse=function(a,b,c){var d,e,f={},g=[],h,k;var l=0;for(h=c.length;l<h;l++){var m=c[l];var p=m.Rows;if(m=p.length){var q=Object.keys(p[0]).filter(function(a){return\"geometry\"!==a&&\"$HProjGeometry\"!==a});q=new to(p,q);for(k=0;k<m;k++){var t=p[k];if(e=t[this.f]){if(delete t[this.f],t=q.yc(k))try{this.a?d=Go(this,a,b,t,e):d=Ho(this,a,t,e.path),d.ba(a),g.push(d)}catch(v){this.c(v.message)}}else this.c(\"Layer must contain geometries\")}}}f[this.a?\"spatials\":this.g?\"markers\":\"domMarkers\"]=\ng;return f};function Go(a,b,c,d,e){var f=[],g=e.paths,h=g.length,k=0,l=a.b&&a.b(d);for(a=new xo(b,a.j,B,{style:l||a.i,data:d});k!==h;)f.push(Io(g[k++]));Bo(a,c,[new $g(f,e.interiorsIndex,e.outlinesIndex)]);return a}function Ho(a,b,c,d){d=new I(d[0],d[1]);var e=a.b&&a.b(c);a.g?(a={icon:e,data:c,provider:b},a=new Om(d,a)):(a={icon:e,data:c,provider:b},a=new Ah(d,a));return a}function Io(a){for(var b=0,c=a.length,d=[];b<c;)d.push(new H(a[b++],a[b++]));return d};function Jo(a){a=a||{};var b=a.tileCacheSize||1024,c=a.resultType,d=a.styleCallback;Lb(a.min)||(a.min=12);Jo.l.constructor.call(this,a);if(-1===Ko.indexOf(c))throw new D(Jo,2,\"invalid resultType\");this.a=c;if(d&&!r(d))throw new D(Jo,2,\"invalid style callback\");this.jb=d;this.ca=a.pixelRatio||Fe();this.b=A(this.b,this);this.v(new Uj(b,A(this.cc,this)));this.createTileInternal=4===c||8===c?A(this.X,this):A(this.$,this)}w(Jo,Q);u(\"H.service.extension.TileProvider\",Jo);Jo.prototype.o=!1;\nJo.prototype.m=function(){return Jo.l.m.call(this)|64};Jo.prototype.ib=function(a,b,c,d){return this.o?Jo.l.ib.call(this,a,b,c,d):B};Jo.prototype.requestTile=Jo.prototype.ib;Jo.prototype.b=function(a){this.dispatchEvent(new Gc(\"error\",ra(a)?a:a+\"\",this))};Jo.prototype.Ub=function(){return 1===this.a};Jo.prototype.providesMarkers=Jo.prototype.Ub;Jo.prototype.Tb=function(){return 2===this.a};Jo.prototype.providesDomMarkers=Jo.prototype.Tb;Jo.prototype.Gc=function(){return 4===this.a||8===this.a};\nJo.prototype.providesSpatials=Jo.prototype.Gc;function Lo(a){var b=a.Ya;b||(a.B||(a.B=a.D(a.a,a.jb,a.b)),b=a.Ya=new eo(a.B),b.ba(a),b.addEventListener(a.i.Fa,A(a.qc,a)),b.jb=!0);return b}Jo.prototype.$=function(a,b,c,d){var e=this.getTileKey(a,b,c);e=this.Ob().get(e);var f=2==this.a,g=[],h=Lo(this);e?e.valid=!0:(a=e=new kk(a,b,c,z),delete a.j,a.m=d);d=f?ho(h,e,\"domMarkers\"):ho(h,e,\"markers\");for(b=d.length;b--;)a=d[b],a.Gi=e,(f||1===a.Ab().getState())&&g.push(a);e.data=g;return e};\nJo.prototype.qc=function(a){if(a=a.target.Gi)a.valid=!1};Jo.prototype.co=function(a){this.G=!!a};Jo.prototype.setTileCanvasRendering=Jo.prototype.co;Jo.prototype.G=!0;Jo.prototype.X=function(a,b,c,d){var e=Lo(this),f=this.getTileKey(a,b,c),g=this.tileSize,h=this.Ob().get(f);h||(a=h=new ok(f,a,b,c,g,this.ca,c,e),delete a.j,a.m=d);this.G?(d=Dn.pop(g),h.V(d)||Dn.push(d,g)):uk(h);return h};\nJo.prototype.cc=function(a,b){var c;if(4===this.a||8===this.a){a=b.Cb();for(c=a.length;c--;)delete a[c].Xe[b.key];b.data&&(Dn.push(b.$f(),this.tileSize),b.ag())}else for(a=b.data,c=a.length;c--;)delete a[c].Gi};Jo.prototype.s=function(){Jo.l.s.call(this);Lo(this).F()};var Mo={MARKER:1,DOM_MARKER:2,POLYLINE:4,POLYGON:8};Jo.ResultType=Mo;var Ko=[1,2,4,8];function wo(a,b,c){var d=this,e=b&&b.rowFilter,f=c.resultType;wo.l.constructor.call(this,c);C(a,No,wo,0);vo(b);e?(c=La(b),c.rowFilter=e.toString()):c=La(b);delete c.layer;c.layerId=Me(b.layerId,b.layer);(new yf).a(\"pde\",\"H.service.extension.worker.processor\");a=a.Ja().clone().Y(Oo+\".\"+Po).K({meta:1});(new Bf(\"pde\",{message:[this.uid,0,{tileSize:this.tileSize,projected:!0,onlyOutline:4===f,serverUrl:a.toString(),layerConfigs:[c]}]})).then(function(){d.o=!0;sj(d)},this.b)}w(wo,Jo);\nu(\"H.service.extension.platformData.TileProvider\",wo);wo.prototype.D=function(a,b,c){a=new Fo(a,b,c);a.i=Qo;return a};var Qo=new Cg({strokeColor:\"transparent\",fillColor:\"transparent\",lineWidth:0,lineJoin:\"round\",lineCap:\"round\"});\nwo.prototype.Pa=function(a,b,c,d,e){var f=this,g=this.getTileKey(a,b,c),h;g=this.Ob().get(g);var k={cancel:vc},l=!0,m=this.a;g&&(4===m||8===m?g.Xd()||(d(Dn.pop(this.tileSize),null),l=!1):(d(z),l=!1));if(l){var p=Bn.setTimeout(function(){h=new Bf(\"pde\",{message:[f.uid,1,[a,b,c]]});h.then(d,e)},500);k.cancel=function(){h?h.cancel():Bn.clearTimeout(p)}}return k};wo.prototype.requestInternal=wo.prototype.Pa;wo.prototype.s=function(){wo.l.s.call(this);new Bf(\"pde\",{message:[this.uid,3]})};\nwo.ResultType=Mo;function Ro(a){this.a=a}Ro.prototype.cancel=function(){for(var a=this.a,b=a.length;b--;)a[b].cancel();a.length=0};function No(a){var b=vn({},this.ra,a||{});if(!No.rb)throw new nc(No);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(No,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b)}u(\"H.service.extension.platformData.Service\",No);No.prototype.ra={subDomain:\"s.fleet.ls\",path:\"1\"};No.CONFIG_KEY=\"platformData\";No.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};\nNo.prototype.Ja=function(){return this.A};No.prototype.request=function(a,b,c,d,e){var f=\"text/plain\";if(!a)throw new D(this.request,0,a);if(!b)throw new D(this.request,1,b);if(!d)throw new D(this.request,3,d);if(!e)throw new D(this.request,4,e);var g=this.A.clone().Y(a+\".\"+b).K(c);b===So.JSON&&(f=\"application/json\");a=new cf(f,g,rd);a.then(d,function(a){a.json().then(function(a){e(Error(\"[\"+a.message+\"] \"+g+\" request failed\"))},function(){e(Error(\"[\"+a.statusText+\"] \"+g+\" request failed\"))})});return a};\nNo.prototype.request=No.prototype.request;var Oo=\"tiles\";No.EntryPoint={DOC_ATTRIBUTES:\"doc/attributes\",DOC_LAYER:\"doc/layer\",DOC_LAYERS:\"doc/layers\",DOC_MAPS:\"doc/maps\",DOC_INDEXES:\"doc/indexes\",SEARCH_BBOX:\"search/bbox\",SEARCH_CORRIDOR:\"search/corridor\",SEARCH_PROXIMITY:\"search/proximity\",SEARCH_QUADKEY:\"search/quadkey\",SERVICE_CONFIGURATION:\"serviceconfiguration\",STATIC:\"static\",TILE:\"tile\",TILES:Oo,FILE:\"file\",INDEX:\"index\"};var Po=\"json\",So={TXT:\"txt\",JSON:Po,HTML:\"html\",BIN:\"bin\"};\nNo.EntryPointType=So;No.prototype.sc=function(a,b){var c=b&&b.resultType;a=new wo(this,a,b);var d;1==c||2===c?d=new Sm(a):d=new Dk(a);return d};No.prototype.createTileLayer=No.prototype.sc;No.prototype.wd=function(a,b,c,d){var e=[],f,g=b.layer_id||b.layer_ids;a=this.request(a,Po,b,function(a){f=new Co(a.geometries,c,d,function(a){return new to([],a.columnNames,a)},function(a,b){return a.yc(uo(a,b))},{hj:g});e.push(f)},function(a){d(new y.Error(a))});e.push(a);return new Ro(e)};\nfunction To(a,b,c){if(!Qb(a))throw new D(c,0,\"has invalid type\");if(!Qb(b))throw new D(c,1,\"has invalid type\");if(a.length!==b.length||!a.length)throw new D(c,1,\"specify one key attribute for each given layer id in the same order\");}\nNo.prototype.Jc=function(a,b,c,d,e,f){function g(a,b){b&&h--;d(a,!h)}var h,k=[];To(a,b,this.Jc);Do(this.Jc,3,d,e);C(c,J,this.Jc,2);c={bbox:c.oa+\",\"+c.aa+\";\"+c.ka+\",\"+c.ea};f&&Pa(c,f);a=c.layer_id?[c.layer_id]:a;f=0;for(h=a.length;f<h;f++)c.layer_id=a[f],c.key_attribute=b[f],k.push(this.wd(\"search/bbox\",c,g,e));return new Ro(k)};No.prototype.searchByBoundingBox=No.prototype.Jc;\nNo.prototype.Wb=function(a,b,c,d,e,f,g){To(a,b,this.Wb);C(c,I,this.Wb,2,\"has invalid type\");if(!Tb(d))throw new D(this.Wb,3,\"has invalid type\");Do(this.Wb,4,e,f);a={layer_ids:a.join(\",\"),key_attributes:b.join(\",\"),proximity:c.lat+\",\"+c.lng+\",\"+d};g&&Pa(a,g);return this.wd(\"search/proximity\",a,e,f)};No.prototype.searchByProximity=No.prototype.Wb;\nNo.prototype.Vb=function(a,b,c,d,e,f,g){var h=\"\";To(a,b,this.Vb);if(!ra(c)&&!C(c,K))throw new D(this.Vb,1,\"has invalid type\");if(!Tb(d))throw new D(this.Vb,2,\"has invalid type\");Do(this.Vb,4,e,f);a={layer_ids:a.join(\",\"),key_attributes:b.join(\",\"),radius:d};if(ra(c))a.route_id=c;else{d=c.qa;c=0;for(b=d.length;c<b;c+=3)h+=d[c]+\",\"+d[c+1],c<b-3&&(h+=\";\");a.corridor=h}g&&Pa(a,g);return this.wd(\"search/corridor\",a,e,f)};No.prototype.searchByCorridor=No.prototype.Vb;\nU.prototype.Jm=function(a){return this.ob(No,a)};U.prototype.getPlatformDataService=U.prototype.Jm;function Uo(a){var b=vn({},this.ra,a||{});if(!Uo.rb)throw new nc(Uo);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Uo,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b)}u(\"H.service.extension.geofencing.Service\",Uo);Uo.prototype.ra={subDomain:\"gfe\",path:\"2\"};Uo.CONFIG_KEY=\"geofencing\";Uo.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};Uo.prototype.Ja=function(){return this.A};\nUo.prototype.request=function(a,b,c,d){if(!a)throw new D(this.request,0,a);if(!r(c))throw new TypeError(\"onResult must be a function\");if(!r(d))throw new TypeError(\"onError must be a function\");var e=this.A.clone().Y(a+\".json\").K(b);a=new cf(\"application/json\",e,rd);a.then(c,function(a){a.json().then(function(a){d(Error(\"[\"+(a.message||a.response_code)+\"] \"+e+\" request failed\"))},function(){d(Error(\"[\"+a.statusText+\"] \"+e+\" request failed\"))})});return a};Uo.prototype.request=Uo.prototype.request;\nUo.EntryPoint={SEARCH_PROXIMITY:\"search/proximity\"};U.prototype.mm=function(a){return this.ob(Uo,a)};U.prototype.getGeofencingService=U.prototype.mm;u(\"H.service.extension.customLocation.Permission\",{READ:\"read\",WRITE:\"write\",EXPORT:\"export\"});u(\"H.service.extension.customLocation.Storage\",{READONLY:\"readonly\",UPDATABLE:\"updatable\"});function Vo(a){var b=Wo;if(!a||!ra(a.layerId)||Lb(a.rowFilter)&&!r(a.rowFilter)||Lb(a.rowFilterContext)&&!wa(a.rowFilterContext))throw new D(b,1,Lb(\"invalid layer config\")?\"invalid layer config\":a);}function Xo(a){return ra(a)&&/^[A-Z][A-Z0-9_]*$/.test(a)}function Yo(a){for(var b=a&&a.length,c=2<=b&&\"WKT\"===a[--b]&&\"GEOMETRY_ID\"===a[--b];c&&b--;)c=Xo(a[b]);return c}\nfunction Zo(a,b){var c=\"\",d,e,f=[];if(!b){var g={};f=[];if(a.geometries)for(e=0;e<a.geometries.length;e++)b=a.geometries[e],g[b.layerId]||(g[b.layerId]=[]),g[b.layerId].push(b);for(d in g)f.push({layerId:d,geometries:g[d]});for(d=0;d<f.length;d++)c+=Zo(f[d],f[d].layerId)}else if(a.geometries&&a.geometries.length)for(e=Object.keys(a.geometries[0].attributes),c=c+(\"Meta:\\t\"+b+\"\\n\")+e.join(\"\\t\"),c+=\"\\tWKT\\n\",d=0;d<a.geometries.length;d++){var h=a.geometries[d].attributes;g=a.geometries[d].geometry;for(b=\n0;b<e.length;b++)f.push(h[e[b]]);c+=f.join(\"\\t\");c+=\"\\t\"+g+\"\\n\";f=[]}return c};function Wo(a,b,c){var d=this,e=b&&b.rowFilter,f;Wo.l.constructor.call(this,c);C(a,V,Wo,0);var g=c.resultType;Vo(b);if(e){var h=La(b);h.rowFilter=e.toString()}else h=b;(new yf).a(\"cle\",\"H.service.extension.worker.processor\");var k=b.layerId;a.request($o,ap,{detail_level:\"all\",layer_id:k},function(b){b=b.layers;var c;for(c=0;c<b.length;c++)if(b[c].layerId===k){h.level=b[c].level;break}f=a.Ja().clone().Y(bp+\".\"+ap).K({meta:1});(new Bf(\"cle\",{message:[d.uid,0,{tileSize:d.tileSize,projected:!0,onlyOutline:4===\ng,serverUrl:f.toString(),layerConfigs:[h],batchTiles:!1}]})).then(function(){d.o=!0;sj(d)},d.b)},function(a){d.b(a.message)})}w(Wo,Jo);u(\"H.service.extension.customLocation.TileProvider\",Wo);Wo.prototype.D=function(a,b,c){return new Fo(a,b,c)};\nWo.prototype.Pa=function(a,b,c,d,e){var f=this,g=this.getTileKey(a,b,c),h;g=this.Ob().get(g);var k={cancel:vc},l=!0,m=this.a;g&&(4===m||8===m?g.Xd()||(d(Dn.pop(this.tileSize),null),l=!1):(d(z),l=!1));if(l){var p=Bn.setTimeout(function(){h=new Bf(\"cle\",{message:[f.uid,1,[a,b,c]]});h.then(d,e)},500);k.cancel=function(){h?h.cancel():Bn.clearTimeout(p)}}return k};Wo.prototype.requestInternal=Wo.prototype.Pa;Wo.prototype.s=function(){Wo.l.s.call(this);new Bf(\"cle\",{message:[this.uid,3]})};function cp(){if(dp)throw new nc(cp);}u(\"H.service.extension.customLocation.Table\",cp);var dp=!0;function ep(a,b){var c;dp=!1;var d=new cp;dp=!0;d.c=Ib(y.JSON.parse(y.JSON.stringify(a)));a=a.columnNames;var e=Fb();for(c=a.length;c--;)e[a[c]]=c;d.f=e;d.b=a.length;if(b){if(b.length%a.length)throw new D(ep,1,\"Invalid number of cells\");}else b=[];d.a=b;return d}cp.prototype.Pd=function(){return this.c};cp.prototype.getMeta=cp.prototype.Pd;cp.prototype.Rd=function(){return this.a.length/this.b};\ncp.prototype.getRowCount=cp.prototype.Rd;cp.prototype.yc=function(a){return a<this.a.length/this.b?new fp(this,a):B};cp.prototype.getRow=cp.prototype.yc;cp.prototype.Tm=function(){var a=this.a.length/this.b,b,c=new y.Array(a);for(b=0;b<a;b++)c[b]=new fp(this,b);return c};cp.prototype.getRows=cp.prototype.Tm;cp.prototype.Cg=function(a){var b=this.b,c=this.a,d=c.length/this.b;if(!a||a.length%b)throw new D(this.Cg,0,\"Invalid number of cells\");this.a=c.concat(a);return d};cp.prototype.addCells=cp.prototype.Cg;\ncp.prototype.vl=function(){for(var a=this.b,b=this.a,c=this.a.length/this.b;a--;)b.push(z);return this.yc(c)};cp.prototype.addRow=cp.prototype.vl;cp.prototype.Ta=function(){return this.c.columnNames};cp.prototype.getColumnNames=cp.prototype.Ta;cp.prototype.Ce=function(a){return this.f[a]===B?B:new gp(this,a)};cp.prototype.getColumn=cp.prototype.Ce;cp.prototype.va=function(a,b){return this.a[a*this.b+this.f[b]]};cp.prototype.getCell=cp.prototype.va;\ncp.prototype.Kc=function(a,b,c){b=this.f[b];if(a>=this.a.length/this.b)throw new D(this.Kc,0,\"Row index out of bounds\");if(b===B)throw new D(this.Kc,0,\"Column unknown\");this.a[a*this.b+b]=c};cp.prototype.setCell=cp.prototype.Kc;\ncp.prototype.concat=function(a){var b=arguments.length,c,d=\"\"+this.Ta(),e=this.a?this.a.slice():[];for(c=0;c<b;c++){var f=arguments[c];if(!(f instanceof cp))throw new D(this.concat,c);if(\"\"+f.Ta()!==d)throw new D(this.concat,c,\"Incompatible columns!\");f.a&&(e=e.concat(f.a))}return ep(this.c,e)};cp.prototype.concat=cp.prototype.concat;var hp=/(\\n|\\t|\\r|\")/;\ncp.prototype.Ci=function(a,b){var c,d=this.b,e=this.Ta(),f=[],g=[],h=this.a,k=-1;for(c=0;c<d;c++)if(!a||a.test(e[c]))\"WKT\"===e[c]&&(k=f.length),f.push(c);if(!(a=f.length))throw new D(this.Ci,1,\"No columns filtered\");ip(this,g,e,0,d,f,a,k);if(b){var l=b.length;for(c=0;c<l;c++)g.push(\"\\n\"),e=b[c],ip(this,g,h,e,d,f,a,k)}else for(l=this.Rd(),e=0;e<l;e++)g.push(\"\\n\"),ip(this,g,h,e,d,f,a,k);return g.join(\"\")};\nfunction ip(a,b,c,d,e,f,g,h){var k;for(k=0;k<g;k++){k&&b.push(\"\\t\");var l=c[d*e+f[k]];if(k!==h){if(l!==z){l=String(l);if(hp.test(l))throw new D(a.Ci,0,'Invalid character (\\\\n, \\\\r, \\\\t, or \") in row '+d+\" column \"+a.c.columnNames[f[k]]);b.push(l)}}else b.push(l)}}function gp(a,b){this.b=a;this.a=b}cp.Column=gp;gp.prototype.va=function(a){return this.b.va(a,this.a)};gp.prototype.getCell=gp.prototype.va;gp.prototype.Kc=function(a,b){this.b.Kc(a,this.a,b)};gp.prototype.setCell=gp.prototype.Kc;\nfunction fp(a,b){this.a=a;this.Mh=b}cp.Row=fp;fp.prototype.Ta=function(){return this.a.Ta()};fp.prototype.getColumnNames=fp.prototype.Ta;fp.prototype.va=function(a){return this.a.va(this.Mh,a)};fp.prototype.getCell=fp.prototype.va;fp.prototype.Kc=function(a,b){this.a.Kc(this.Mh,a,b)};fp.prototype.setCell=fp.prototype.Kc;fp.prototype.nd=function(){return this.a};fp.prototype.getTable=fp.prototype.nd;function jp(a){if(a===B)a=\"\\t\";else if(!/^[^\"\\r\\n]$/.test(a))throw new D(jp,0);this.b=String(a).charCodeAt(0);this.Nh=A(this.Nh,this);this.C=kp}var kp=0;n=jp.prototype;n.getState=function(){return this.C};function lp(a,b,c){var d=a.C;if(d!==b)throw 1===d&&(a.C=kp),new nc(c,\"Requires state: \"+[\"READY\",\"PARSE\",\"PAUSE\"][b]+\" but found \"+[\"READY\",\"PARSE\",\"PAUSE\"][d]);}n.abort=function(){lp(this,2,jp.prototype.abort);this.C=kp};\nn.Nh=function(a){this.C=kp;throw new D(jp.prototype.parse,0,\"Malformed DSV at row \"+this.a.o+\" column \"+this.a.g+\": \"+a);};function mp(a,b){var c=[];a.parse(b,function(a,b,f){1>a&&(c[b]=f);return 0<a});a.C=kp;return c}n.parse=function(a,b,c){lp(this,kp,jp.prototype.parse);a=a.trim();this.a=new np(a,this.b,this.Nh);this.c=b;this.ik=c||Se;this.C=2;this.resume()};n.ik=Se;\nn.resume=function(){var a=this.a,b=[];lp(this,2,jp.prototype.resume);this.C=1;do{if(!a.u){this.C=kp;break}if(e>a.g){if(void 0!==c&&c!==e){this.a.c(\"The number of columns must be the same for all rows\");return}var c=e}var d=a.o;var e=a.g;var f=a.j;var g=this.ik(d,e,a);if(a.j>f)for(;-1!==a.next(););else{for(;-1!==(f=a.next());)b.push(f);g=String.fromCharCode.apply(z,b);b.length=0}op(a);this.c(d,e,g)&&(this.C=a.u?2:kp)}while(1===this.C);2!=this.C&&void 0!==c&&0<e&&c!==e&&this.a.c(\"The number of columns must be the same for all rows\")};\nfunction np(a,b,c){this.i=new rn(a);this.Xa=b;this.u=!0;this.j=this.o=this.g=0;op(this);this.c=c;this.m=[];this.W=!1}np.prototype.j=0;var pp={wg:10,Li:13,yg:34,je:-1};function op(a){var b=a.i.a();a.v=!1;(a.D=34===b)&&a.i.next()}function qp(a,b){var c=a.i;a.v=!0;switch(b){case a.Xa:a.g++;break;case pp.Li:c.next(),c.a()!==pp.wg&&a.c(\"CR without LF\");case pp.wg:a.g=0;a.o++;break;case pp.je:a.u=!1;break;default:a.c(\"End of field expected\")}c.next();return pp.je}\nnp.prototype.a=function(){if(this.v)var a=pp.je;else{var b=this.i;a=b.a();if(this.D)switch(a){case pp.yg:b.next();a=b.a();a!==pp.yg&&(a=qp(this,a));break;case pp.je:this.c(\"Closing quotation mark expected\")}else switch(a){case pp.yg:this.c(\"Unexpected quotation mark\");case this.Xa:case pp.Li:case pp.wg:case pp.je:a=qp(this,a)}}return a};np.prototype.f=function(){this.W=!0;this.m=[]};np.prototype.b=function(){var a=this.m.slice();this.W=!1;this.m=[];return a};\nnp.prototype.next=function(){var a=this.a();-1!==a&&this.i.next();this.W&&this.m.push(a);this.j++;return a};function rp(a,b,c,d){d=d||{};if(!b)throw new D(rp,1,\"has to be a function\");if(!c)throw new D(rp,2,\"has to be a function\");this.c=b;this.g=c;this.a=[];this.i=d.duration||sp;this.b=A(this.b,this);this.f={};a=a.split(\"Meta:\\t\").slice(1);for(b=0;b<a.length;b++){d=a[b].split(\"\\n\");c=d[0].split(\"\\t\")[0];d=d.slice(1).join(\"\\n\");this.Id[c]=new jp;this.rh[c]=mp(this.Id[c],d);var e={layerId:c,columnNames:this.rh[c]};this.Ah.push(c);this.f[c]=ep(e);this.Nc[c]=Oj();tp(this,d,c);this.b(c)}}var sp=100;n=rp.prototype;\nn.rh={};n.Ah=[];n.Id={};n.Nc={};n.Bi={};function tp(a,b,c){var d=[],e=a.rh[c].length-1,f=a.f[c];try{a.Id[c].parse(b,function(b,h,k){var g=!1;0<b&&(d[h]=k,h===e&&(a.a.push(f.yc(f.Cg(d))),Oj()-a.Nc[c]>a.i&&(g=!0)));return g},function(a,b,c){if(0<a&&b===e)return Wm(c)})}catch(g){a.g(g)}}n.cancel=function(){for(var a in this.Bi)y.clearTimeout(this.Bi[a])};rp.prototype.cancel=rp.prototype.cancel;\nrp.prototype.b=function(a){var b=this,c,d;this.Bi[a]=y.setTimeout(function(){if(2===b.Id[a].getState())b.Nc[a]=Oj(),b.c(b.a,!1),b.a=[],b.Id[a].resume(),b.b(a);else{c=!0;for(d=0;d<b.Ah.length;d++)if(b.Id[b.Ah[d]].getState()!==kp){c=!1;break}c&&(0<b.a.length&&b.c(b.a,!0),b.a=[])}},0)};function V(a){var b=vn({},this.ra,a||{});if(!V.rb)throw new nc(V);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(V,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b)}u(\"H.service.extension.customLocation.Service\",V);V.prototype.ra={subDomain:\"fleet.ls\",path:\"2\"};V.CONFIG_KEY=\"customLocation\";V.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};V.prototype.Ja=function(){return this.A};\nV.prototype.sc=function(a,b){var c=b&&b.resultType;a=new Wo(this,a,b);var d;1===c||2===c?d=new Sm(a):d=new Dk(a);return d};V.prototype.createTileLayer=V.prototype.sc;\nfunction up(a,b,c,d){var e;a=a===vp?\"changes\":\"file\";var f=b[a],g=ra(f),h=!g&&C(f,Blob);if(!g&&!h)throw new D(d,0,\"Invalid \"+a+\" parameter\");if(wp)h?e=f:e=$e(f,\"text/plain\"),d=new y.FormData,d.append(a,e,e.name||a+\".wkt\"),c.method=\"POST\",c.data=d,delete b[a];else if(h)throw new D(d,0,\"Sending Blob data is not supported by the browser\");}var wp=y.FormData&&!!y.FormData.prototype.append;\nV.prototype.request=function(a,b,c,d,e){var f=\"text/plain\",g=xp;g=a===g.LAYERS_UPLOAD||a===g.LAYERS_MODIFY||a===g.LAYERS_IMPORT;var h=c,k={data:B,method:\"GET\"};if(!a)throw new D(this.request,0,a);if(!b)throw new D(this.request,1,b);Do(this.request,3,d,e);g&&(C(c,Object,this.request,2,\"Invalid request parameters\"),h=La(c),up(a,h,k,this.request));var l=this.A.clone().Y(a+\".\"+b).K(h);b===yp.JSON&&(f=\"application/json\");a=new cf(f,l,rd,k);a.then(function(a){var b=a.issues;b&&a.error_id&&a.response_code?\ne(Error(b[0].message)):d(a)},function(a){\"error\"===a.type||404===a.status?e(Error(a.statusText||\"Unable to load data\")):a.json().then(function(a){e(Error(\"[\"+a.message+\"] \"+l+\" request failed\"))},function(){e(Error(\"[\"+a.statusText+\"] \"+l+\" request failed\"))})});return a};V.prototype.request=V.prototype.request;\nvar $o=\"layers/list\",vp=\"layers/modify\",bp=\"tiled/tile\",xp={LAYERS_DELETE:\"layers/delete\",LAYERS_GRANT:\"layers/access/grant\",LAYERS_LIST:$o,LAYERS_MODIFY:vp,LAYERS_UPLOAD:\"layers/upload\",LAYERS_IMPORT:\"layers/import\",SEARCH_ALL:\"search/all\",SEARCH_BBOX:\"search/bbox\",SEARCH_CORRIDOR:\"search/corridor\",SEARCH_PROXIMITY:\"search/proximity\",SEARCH_QUADKEY:\"search/quadkey\",SEARCH_TILE:bp};V.EntryPoint=xp;var ap=\"json\",yp={TXT:\"txt\",JSON:ap};V.EntryPointType=yp;\nV.prototype.Bb=function(a,b,c){var d=this;return this.request(\"search/all\",\"txt\",{filter:'WKT==\"\"',layer_id:a},function(e){var f=e.replace(/[\\r\\n]+$/g,\"\").split(\"\\t\");d.request($o,ap,{layer_id:a,detail_level:\"all\"},function(a){a=a.layers[0];a.columnNames=f;b(ep(a))},c)},c)};V.prototype.getLayer=V.prototype.Bb;\nV.prototype.Gj=function(a,b,c,d){function e(){return++g<f?h.request(\"layers/access/grant\",ap,{layer_id:a,granted_app_id:b[g].grantedAppId,permissions:b[g].permissions.join(\",\")},e,d):h.Bb(a,c,d)}var f=b&&b.length,g=-1,h=this;return e()};V.prototype.grantAccess=V.prototype.Gj;V.prototype.ij=function(a,b,c){return this.request(\"layers/delete\",ap,{layer_ids:a},b,c)};V.prototype.deleteLayer=V.prototype.ij;\nV.prototype.te=function(a,b,c){function d(){setTimeout(function(){k.Bb(g,function(a){setTimeout(e.bind(null,a),m)},function(){64E3>l?(l+=m,d()):c(y.Error(\"Timeout\"))})},m);m*=2}function e(d){var e=JSON.stringify(d.Ta()),f=a.grants;if(e!==JSON.stringify(h)){var l=\"Results into different column names on the backend: \"+e;setTimeout(function(){k.ij(g,function(){c(y.Error(l))},function(a){c(y.Error(l+\". \"+a.message))})},m)}else f&&f.length?k.Gj(g,f,b,c):b(d)}var f,g,h,k=this,l=0,m=1E3;var p=!a||!Xo(g=\na.layerId)&&(f=\"layerId\")||!Yo(h=a.columnNames)&&(f=\"columnNames\")?0:r(b)?r(c)?-1:2:1;if(0<=p)throw new D(k.te,p,f||arguments[p]);return k.Bb(g,function(){c(y.Error(\"Layer exists already\"))},function(){var b={layer_id:g,file:h.join(\"\\t\")},e=a.level,f=a.storage;e!==B&&(b.level=e);f!==B&&(b.storage=f);k.request(\"layers/upload\",ap,b,d,c)})};V.prototype.createLayer=V.prototype.te;\nV.prototype.wd=function(a,b,c,d){var e=[],f;a=this.request(a,ap,b,function(a){a.geometries.length?(a=Zo(a,b.layer_id),f=new rp(a,c,d),e.push(f)):c(Te,!0)},d);e.push(a);return new Ro(e)};V.prototype.Wb=function(a,b,c,d,e,f){if(!Qb(a))throw new D(this.Wb,0,\"has invalid type\");C(b,I,this.Wb,1,\"has invalid type\");if(!Tb(c))throw new D(this.Wb,2,\"has invalid type\");Do(this.Wb,3,d,e);a={layer_ids:a.join(\",\"),proximity:b.lat+\",\"+b.lng+\",\"+c};f&&Pa(a,f);return this.wd(\"search/proximity\",a,d,e)};\nV.prototype.searchByProximity=V.prototype.Wb;V.prototype.Vb=function(a,b,c,d,e,f){var g=\"\";if(!Qb(a))throw new D(this.Vb,0,\"has invalid type\");if(!ra(b)&&!C(b,K))throw new D(this.Vb,1,\"has invalid type\");if(!Tb(c))throw new D(this.Vb,2,\"has invalid type\");Do(this.Vb,3,d,e);a={layer_ids:a.join(\",\"),radius:c};if(ra(b))a.route_id=b;else{var h=b.qa;b=0;for(c=h.length;b<c;b+=3)g+=h[b]+\",\"+h[b+1],b<c-3&&(g+=\",\");a.corridor=g}f&&Pa(a,f);return this.wd(\"search/corridor\",a,d,e)};\nV.prototype.searchByCorridor=V.prototype.Vb;V.prototype.Jc=function(a,b,c,d,e){function f(a,b){b&&h--;c(a,!h)}var g=[],h;if(!Qb(a))throw new D(this.Jc,0,\"has invalid type\");C(b,J,this.Jc,1,\"has invalid type\");Do(this.Jc,2,c,d);b={bbox:b.oa+\",\"+b.aa+\";\"+b.ka+\",\"+b.ea};e&&Pa(b,e);a=b.layer_id?[b.layer_id]:a;e=0;for(h=a.length;e<h;e++)b.layer_id=a[e],g.push(this.wd(\"search/bbox\",b,f,d));return new Ro(g)};V.prototype.searchByBoundingBox=V.prototype.Jc;\nV.prototype.hi=function(a,b,c,d){var e,f=[];if(!ra(a))throw new D(this.hi,0,\"has invalid type\");Do(this.hi,1,b,c);var g={layer_id:a};d&&Pa(g,d);d=this.request(\"search/all\",ap,g,function(d){d.geometries.length?(d=Zo(d,a),e=new rp(d,b,c),f.push(e)):b(Te,!0)},c);f.push(d);return new Ro(f)};V.prototype.searchAll=V.prototype.hi;var zp={\"delete\":/^GEOMETRY_ID$/,append:/^(?!GEOMETRY_ID$)/};\nfunction Ap(a,b,c,d,e,f){function g(){v++;d(this,v===q)}function h(a){v++;e(a,this,v===q)}var k=\"append\"!==b,l,m={},p=Fb(),q=0,t=[],v=0;if(!Qb(c))throw new D(f,0,c);Do(f,1,d,e);for(l=c.length;l--;){var x=c[l];if(C(x,fp)){var E=x.nd().Pd().layerId;var O=x.va(\"GEOMETRY_ID\");if(k){if(O===z||\"\"===String(O))var Y='GEOMETRY_ID must not be null or \"\"';m[O=E+\"_\"+O]&&(Y=\"same GEOMETRY_ID for multiple rows\");m[O]=x}else O!==z&&\"\"!==String(O)&&(Y='GEOMETRY_ID must be null or \"\"')}else Y=\"Invalid type\";if(Y)throw new D(f,\n0,\"- Invalid row at index \"+l+\", \"+Y);O=p[E];O||(O=p[E]=[],q++);O.push(x)}for(E in p){O=p[E];c=[];for(l=O.length;l--;)c.push(O[l].Mh);t.push(a.request(vp,ap,{layer_id:E,action:b,changes:O[0].nd().Ci(zp[b]||null,c)},A(g,O),A(h,O)))}return new Ro(t)}V.prototype.$i=function(a,b,c){return Ap(this,\"append\",a,b,c,this.$i)};V.prototype.appendRows=V.prototype.$i;V.prototype.dl=function(a,b,c){return Ap(this,\"update\",a,b,c,this.dl)};V.prototype.updateRows=V.prototype.dl;\nV.prototype.jj=function(a,b,c){return Ap(this,\"delete\",a,b,c,this.jj)};V.prototype.deleteRows=V.prototype.jj;U.prototype.dm=function(a){return this.ob(V,a)};U.prototype.getCustomLocationService=U.prototype.dm;function Bp(a){var b=vn({},this.ra,a||{});if(!Bp.rb)throw new nc(Bp);if(!b.baseUrl&&!b.platformBaseUrl)throw new D(Bp,0,'either \"baseUrl\" or \"platformBaseUrl\" must be specified');this.A=(b.baseUrl?b.baseUrl:b.platformBaseUrl).clone();this.wa(b.baseUrl?a||{}:b)}u(\"H.service.extension.customRoute.Service\",Bp);Bp.prototype.ra={subDomain:\"cre\",path:\"2\"};Bp.CONFIG_KEY=\"customRoute\";Bp.prototype.wa=function(a){a.subDomain&&this.A.ua(a.subDomain);a.path&&this.A.ta(a.path)};Bp.prototype.Ja=function(){return this.A};\nBp.prototype.ia=function(a,b,c){return(new cf(\"application/json\",a,rd)).then(b,function(b){b.json().then(function(b){c(Error(\"[\"+b.details+\"] \"+a+\" request failed\"))},function(){c(Error(\"[\"+b.statusText+\"] \"+a+\" request failed\"))})})};Bp.prototype.rf=function(a,b,c){Do(this.rf,1,b,c);a=this.A.clone().Y(\"calculateroute.json\").K(a);this.ia(a,b,c)};Bp.prototype.calculateRoute=Bp.prototype.rf;U.prototype.em=function(a){return this.ob(Bp,a)};U.prototype.getCustomRoutingService=U.prototype.em;function Cp(a){if(!Cp.rb)throw new nc(Cp);if(!a.token)throw new D(Cp,0,'\"token\" must be specified');Cp.l.constructor.call(this);this.a=a.token;this.A=new T(\"https\",\"xyz.api.here.com\",B,{xnlp:a.platformBaseUrl.Da.xnlp});this.c={};this.b={}}w(Cp,G);u(\"H.service.xyz.Service\",Cp);Cp.prototype.ih=function(a,b,c){Ob(a,\"String\",this.ih,0,'\"projectId\" must be a string');Dp(this.ih,1,b,c);a=new cf(\"application/json\",this.A.clone().ta(\"project-api/projects/\"+a).toString());a.then(b,Ep.bind(this,c));return a};\nCp.prototype.getProject=Cp.prototype.ih;Cp.prototype.Aj=function(a,b,c){Dp(this.Aj,0,a,b);var d=this.A.clone().ta(\"hub/spaces\").K({access_token:this.a});c&&d.K(c);c=new cf(\"application/json\",d.toString());c.then(a,Ep.bind(this,b));return c};Cp.prototype.getSpaces=Cp.prototype.Aj;\nCp.prototype.If=function(a,b,c){Ob(a,\"String\",this.If,0,'\"spaceId\" must be a string');Dp(this.If,1,b,c);a=this.A.clone().ta(\"hub/spaces/\"+a).K({access_token:this.a});a=new cf(\"application/json\",a.toString());a.then(b,Ep.bind(this,c));return a};Cp.prototype.getSpace=Cp.prototype.If;\nCp.prototype.kh=function(a,b,c){Ob(a,\"String\",this.kh,0,'\"spaceId\" must be a string');Dp(this.kh,1,b,c);a=this.A.clone().ta(\"hub/spaces/\"+a+\"/statistics\").K({access_token:this.a});a=new cf(\"application/json\",a.toString());a.then(b,Ep.bind(this,c));return a};Cp.prototype.getStatistics=Cp.prototype.kh;\nfunction Fp(a,b,c,d,e,f,g,h){b=a.A.clone().ta(\"hub/spaces/\"+e+\"/tile/web/\"+d+\"_\"+b+\"_\"+c+\".mvtf\").K({access_token:a.a,clip:!0,clientId:\"viewer\"});h&&b.K(h);h=new cf(\"arraybuffer\",b.toString());h.then(function(a){return a.arrayBuffer()}).then(f,Ep.bind(a,g));return h}\nCp.prototype.search=function(a,b,c,d){Ob(a,\"String\",this.search,0,'\"spaceId\" must be a string');Dp(this.search,1,b,c);a=this.A.clone().ta(\"hub/spaces/\"+a+\"/search\").K({access_token:this.a});d&&a.K(d);d=new cf(\"application/json\",a.toString());d.then(b,Ep.bind(this,c));return d};Cp.prototype.search=Cp.prototype.search;\nCp.prototype.Ge=function(a,b,c,d){Ob(a,\"String\",this.Ge,0,'\"spaceId\" must be a string');if(!wa(b))throw new D(this.Ge,1,'\"params\" must be an object');Dp(this.Ge,2,c,d);a=this.A.clone().ta(\"hub/spaces/\"+a+\"/features\").K({access_token:this.a});a.K(b);b=new cf(\"application/json\",a.toString());b.then(c,Ep.bind(this,d));return b};Cp.prototype.getFeaturesById=Cp.prototype.Ge;\nCp.prototype.bh=function(a,b,c,d){Ob(a,\"String\",this.bh,0,'\"spaceId\" must be a string');if(!wa(b))throw new D(this.Ge,1,'\"params\" must be an object');Dp(this.bh,2,c,d);a=this.A.clone().ta(\"hub/spaces/\"+a+\"/bbox\").K({access_token:this.a});a.K(b);b=new cf(\"application/json\",a.toString());b.then(c,Ep.bind(this,d));return b};Cp.prototype.getFeaturesByBoundingBox=Cp.prototype.bh;Cp.prototype.la=function(a){var b=this.c[a];if(b)return b;this.b[a]||this.ye(a);return null};\nCp.prototype.ye=function(a){var b=this;this.b[a]=Gp;this.If(a,function(c){b.b[a]=Hp;b.c[a]=c.copyright;b.dispatchEvent(\"copyrightupdate\")}.bind(this),function(c){b.b[a]=Ip;throw c;}.bind(this))};Cp.CONFIG_KEY=\"xyz\";var Gp=1,Hp=2,Ip=-1;function Dp(a,b,c,d){if(!r(c))throw new D(a,b,'\"onResult\" must be a function');if(!r(d))throw new D(a,b+1,'\"onError\" must be a function');}function Ep(a,b){b.text().then(function(b){a(Error(b))})}U.prototype.cn=function(a){return this.ob(Cp,a)};\nU.prototype.getXYZService=U.prototype.cn;function Jp(a,b,c){Jp.l.constructor.call(this,c?{min:c.min,max:c.max}:void 0);C(a,Cp,Jp,0);if(!ra(b))throw new D(Jp,1,'\"spaceId\" must be a string');this.b=a;this.a=b;this.o={};c&&[\"limit\",\"simplificationLevel\",\"tags\"].forEach(function(a){a in c&&(this.o[a]=c[a])},this);this.yd(new fj({sources:{xyz:{type:\"MVT\"}},layers:{xyz:{data:{source:\"xyz\",layer:this.a},points:{filter:{$geometry:\"point\"},draw:{points:{collide:!1,order:200,color:\"#92CF48\",size:[[10,\"8px\"],[14,\"12px\"],[18,\"16px\"]]}}},polygons:{filter:{$geometry:\"polygon\"},\ndraw:{polygons:{order:201,color:\"#E39E3C\"},lines:{order:202,color:\"#755DA5\",width:\"1px\"}}},lines:{filter:{$geometry:\"line\"},draw:{lines:{order:203,color:\"#000000\",width:\"2px\",join:\"round\",cap:\"round\"}}}}}}))}w(Jp,Q);u(\"H.service.xyz.Provider\",Jp);Jp.prototype.Pa=function(a,b,c,d,e){return Fp(this.b,a,b,c,this.a,d,e,this.o)};Jp.prototype.requestInternal=Jp.prototype.Pa;Jp.prototype.la=function(){return this.b.la(this.a)};Jp.prototype.getCopyrights=Jp.prototype.la;Jp.prototype.Ia=function(){return this.Eb()};\nJp.prototype.getStyle=Jp.prototype.Ia;Jp.prototype.fd=function(a){un(a,\"MVT\");this.yd(a)};Jp.prototype.setStyle=Jp.prototype.fd;u(\"H.service.buildInfo\",function(){return qf(\"mapsjs-service\",\"1.8.1\",\"dc2b8a4\")});\n");