/*! * ------------------------------------------------------- * Project: SkySphere * Version: 0.1.4 * * Author: Sonia Zorba * Site: http://zonia3000.github.io/SkySphere * Contact: zonia3000@gmail.com * * Copyright (c) 2020 Sonia Zorba * License: https://github.com/zonia3000/SkySphere/blob/master/LICENSE * * Stars data credits: https://edu.kde.org/kstars, http://www.astronexus.com/hyg * ------------------------------------------------------- */ !function(a){"function"==typeof define&&define.amd?define([],a):window.SkySphere=a()}(function(){var a,b;return a={s:[[.036597196,2.0785203],[.17159957,2.109423],[.30426168,2.1924925],[.54061157,2.3095894],[.16092284,2.1593099],[.24763213,2.2427366],[.4275721,2.4195187],[2.86547,.92262006],[2.7364662,1.0285614],[2.5490606,1.0861276],[2.4838016,.9433272],[3.8740292,.19120511],[4.277571,.19729644],[4.334772,.19378132],[4.3767953,.21786189],[5.635489,1.473561],[5.6625104,1.4337146],[5.53965,1.3723229],[5.444013,1.4050639],[5.444281,1.4830464],[5.784824,1.5652139],[5.869879,1.5948366],[5.8853893,1.5704478],[5.8540797,1.5465829],[5.8330383,1.4349525],[5.787674,1.3287247],[5.913858,1.5687456],[5.989161,1.4385074],[6.08388,1.4652213],[6.0907254,1.4121854],[6.121614,1.2199751],[6.0626044,1.2012681],[5.998043,1.294671],[5.975971,1.3335601],[4.981521,1.4706299],[5.001455,1.4855797],[5.085446,1.6251595],[4.9977946,1.8127598],[5.1760345,1.7560327],[5.1957726,1.7255778],[5.2155375,1.6826155],[5.2853146,1.5564591],[5.203144,1.5883484],[4.9725423,1.8337879],[4.589525,.7002934],[4.741323,.69653517],[4.5609813,.601617],[4.5613933,.58681935],[4.586285,.5116634],[4.4060206,.54032993],[4.44457,.593584],[.49536896,1.9075377],[.5002117,1.9339652],[.5548982,1.9802929],[.74169415,2.046582],[1.3818165,2.3736126],[1.317588,2.3356574],[1.3374232,2.2904737],[1.3198096,2.287705],[1.2958792,2.149654],[1.423717,2.0700905],[1.5695792,2.2202785],[1.568741,2.355277],[3.641999,1.8918972],[3.733529,1.9055927],[3.8040762,2.100878],[3.8051589,2.2394016],[3.9354827,2.275745],[3.9946337,2.15225],[3.8614845,2.0433307],[3.8447387,1.8104004],[1.2241843,.84013605],[1.2307098,.92250603],[.91223526,2.6169527],[1.005127,2.8157794],[1.2830359,2.7286947],[1.3239118,2.6257126],[1.2971584,2.5089476],[2.349593,1.7777524],[2.2893703,1.8876488],[2.2832654,1.9454924],[2.2981493,2.0727513],[2.166457,1.7311144],[3.385974,2.2395177],[3.2888317,2.2926207],[1.6698426,1.2574065],[1.7677954,1.2790451],[1.8457928,1.154827],[1.8692102,1.1101481],[1.840097,1.0832416],[1.8265997,1.0651381],[1.9377303,1.0593606],[2.004083,1.6619897],[1.9510632,1.7154722],[5.3147645,1.3518473],[5.3276668,1.3128129],[5.361915,1.2598888],[5.437118,1.129736],[5.4621015,1.1009688],[5.528888,1.134362],[5.614145,1.1796448],[5.623116,1.1901892],[5.6595817,1.2310504],[5.703041,1.289322],[5.6727166,1.2799842],[5.5948563,1.2769783],[5.5237365,1.2700261],[1.6753054,.6510836],[2.08034,.6460797],[2.1926315,.5321599],[2.430765,.5362484],[2.7577276,.49418417],[2.8054287,.4469012],[2.6779358,.34840435],[2.4138012,.3540015],[.49914253,2.6820493],[.37442967,2.6221006],[.24743785,2.6305034],[.17674495,2.5575588],[.040025722,2.603155],[3.6943548,.9360209],[3.6193972,.84320855],[3.8201208,.8350035],[3.9233322,.8359395],[3.5388482,.8830091],[3.4932668,.9300459],[3.6198854,.8294899],[3.6457312,.7454585],[3.5774353,.6376318],[3.3227503,.7162851],[3.2639396,.69410634],[3.178064,.68552303],[3.192435,.65679425],[5.578848,2.6631207],[5.806948,2.5866],[5.9763618,2.7262115],[6.1930795,2.9257352],[5.622839,2.8023133],[.48633847,1.3904159],[.36662126,1.4279716],[.29927966,1.3930823],[.08477038,1.4167899],[.19019465,1.256871],[.45408556,1.292635],[.6080139,1.5188266],[.6958744,1.57653],[.71253365,1.627272],[.68013096,1.668417],[.6464657,1.7184521],[.71969676,1.7473214],[.78415465,1.7262592],[.7953444,1.6421758],[2.1752136,.22829391],[2.7727606,.19883162],[3.2216542,.1865366],[2.8177698,.1651048],[3.8506744,.4367663],[4.0034146,.54452163],[1.6672863,.987221],[1.6430192,.9574786],[1.5600487,.954987],[1.5313507,.9465216],[1.4819984,.976091],[1.4451874,.951719],[1.567073,.82353127],[3.4469736,1.8767427],[3.455203,2.0573623],[3.2591317,2.0641735],[4.968618,.9231508],[5.002194,.9239173],[5.0155187,.9092385],[5.0179496,.88416994],[5.0106196,.86399555],[4.9877777,.83609813],[4.070674,2.1181164],[4.048418,2.0787866],[4.0783443,2.0370557],[4.113492,2.029742],[4.1433864,2.0257757],[4.178264,2.0399039],[4.195086,2.0917957],[3.1783037,1.1391962],[3.1857703,1.176007],[3.2105606,1.2646319],[3.2719004,1.2825477],[3.2916355,1.1624459],[3.1242092,1.2714578],[3.0751085,1.2505167],[2.9883623,1.2621523],[2.9306614,1.1724101],[2.8788102,1.2514224],[2.9641836,1.3128622],[3.0398483,1.399715],[2.987174,1.3812654],[3.277579,.5739828],[3.2576933,.46950328],[3.3498173,.5290309],[3.207678,.5454341],[5.1083894,2.0588827],[5.219871,2.1831174],[5.332978,2.273408],[5.416769,2.3610873],[5.554233,2.0983555],[5.43762,2.1636894],[5.170427,2.3584776],[5.103805,2.4736514],[5.3809066,1.7680756],[5.399826,1.8255286],[5.4089417,1.8485144],[5.439527,1.8522155],[5.4256134,1.8338976],[1.1171235,.6721848],[1.1955326,.6100803],[1.4557148,.48014313],[1.5043577,.42349496],[4.6841497,2.5634115],[4.697581,2.4694471],[4.583378,2.4836278],[4.59098,2.533943],[5.0289636,2.751713],[5.1843743,2.797203],[5.0420547,2.851091],[4.8042116,2.840224],[4.6335816,2.8300312],[4.4889297,2.717734],[4.2934737,2.644422],[4.1970453,2.5929527],[4.035767,2.5999484],[3.6843462,2.694367],[3.287692,2.788831],[3.016821,2.780852],[5.566832,1.6623886],[5.5429115,1.7476257],[5.560969,1.7454512],[5.597679,1.6896732],[1.3489057,1.4180088],[1.3432479,1.4820211],[1.2779934,1.4756289],[1.2457398,1.513992],[1.2056693,1.5122849],[1.0989712,1.4514581],[1.0385993,1.3350283],[.9867316,1.3595837],[.9741047,1.4003929],[.9290862,1.4057186],[.76981014,1.4154943],[.7161195,1.3289165],[.7203973,1.246644],[.7958343,1.1584715],[.8705558,1.1910499],[.9328258,1.1932313],[.9898122,1.1650121],[1.0197598,1.141232],[1.046869,1.1516343],[1.1934098,1.051273],[1.2023169,1.037383],[1.1520778,.97709036],[1.1252757,.98090386],[1.0011829,.93898284],[.99744844,.9141938],[.9472541,.86787295],[.8723009,.8190869],[.7778569,.8673511],[.70104146,.8751889],[.6972571,.82219553],[.64134437,.73820734],[.595634,.67173946],[.5059441,.6700512],[.42635497,.5718265],[.838085,1.064867],[.73779494,1.0052067],[.54319286,1.0594704],[1.6357125,1.9636141],[1.6709799,1.9637326],[1.7624865,2.0094173],[1.8812011,2.098674],[1.9596195,2.1255414],[1.9836087,2.1273909],[2.02158,2.0749087],[2.0303268,2.0599458],[2.026535,1.9966217],[1.9203988,1.9544603],[1.8505241,1.9298159],[1.7353448,1.8570174],[1.7684089,1.7958668],[1.9115413,1.8594805],[6.0252285,.650063],[5.971445,.67514807],[5.9457564,.7525061],[5.887299,.8116556],[5.889427,.8072283],[5.7862678,.88063467],[5.7330947,.91865665],[6.0514016,.81122273],[6.066583,.7810922],[5.795508,.7511727],[4.2844353,1.9050815],[4.32065,1.9458607],[4.368938,2.1223679],[4.3759594,2.250118],[4.516246,2.2132373],[4.4518533,2.110564],[4.5161786,2.0043223],[4.653306,2.0546134],[4.7026353,2.081268],[4.7452993,2.0727963],[4.553924,2.2191155],[4.6960397,2.2209408],[4.6227875,2.3737586],[4.337593,2.3114626],[4.2749257,2.3791173],[4.2270555,2.3550584],[4.1568255,2.3117151],[1.108292,.8326203],[.7092839,.684164],[.68681103,.6537465],[.70101136,.61872077],[.80116874,.5281755],[.7801462,.45254153],[3.6929924,1.1051012],[3.485953,1.1663773],[3.1106513,.978988],[3.023793,1.014776],[2.8345225,1.2881639],[2.7318354,1.2769477],[2.664193,1.3551769],[2.640354,1.3427756],[2.5808108,1.3116742],[2.4765675,1.4196752],[2.5300992,1.5508506],[2.4188707,1.611188],[2.3360963,1.674566],[2.282998,1.6301142],[2.2635057,1.6291155],[2.2587008,1.670346],[2.2984905,1.6828257],[.11202815,.22245532],[.9915116,.27508205],[.6963338,.37931335],[.61850053,.3724635],[.51821905,.49619958],[5.3999047,.7454039],[5.5844684,.63792783],[5.7505,.6109948],[5.475141,.55057883],[5.8623886,2.4823651],[5.8961186,2.4483914],[5.8665605,2.4343224],[5.8884373,2.4034386],[5.8513284,2.3830125],[5.8926144,2.3234415],[5.829267,2.2296362],[2.9419277,1.8400931],[3.093857,1.8251268],[2.9413521,1.9290029],[2.6545234,1.7796636],[2.649988,1.86336],[2.70514,1.9170958],[2.6908188,1.9795055],[2.5864205,2.0247033],[2.5562584,1.9857354],[2.6504104,2.1859322],[2.7396593,2.2114582],[2.8506095,2.1679585],[1.3654221,1.2879575],[1.4518095,1.2597388],[1.532929,1.2063875],[1.5030051,1.1789982],[1.4322406,1.2084757],[1.3328255,1.1803482],[4.0956607,1.0510765],[4.0885396,1.0797466],[3.944751,1.1295428],[3.8871915,1.2908145],[4.001198,1.4070336],[4.0820036,1.3126704],[4.2175555,.92847526],[4.189323,.9006474],[4.080322,.85230094],[4.0259566,.7908153],[3.979184,.7200585],[3.9805968,.66149294],[3.8481429,.74371624],[3.9205866,.8179667],[4.020244,.8613633],[4.022139,.937916],[4.149341,.98389155],[2.4480665,2.1710598],[2.4384177,2.2131228],[2.194033,2.3245714],[1.9491585,2.4296997],[1.8207132,2.590466],[1.6564184,2.6007318],[4.799053,2.2002413],[4.8735633,2.2476995],[4.9078803,2.2269464],[4.950211,2.2147987],[4.9695797,2.141337],[4.930904,2.1530848],[4.9060316,2.2621686],[1.6154677,.2661096],[1.4480958,.23839514],[1.2879915,.26290154],[1.320851,.326127],[5.5883718,.85853684],[5.576056,1.0092796],[5.5034204,1.0077921],[5.4540143,.98122895],[2.1318944,1.5187194],[2.0125709,1.4040977],[1.8843638,1.562196],[1.7796284,1.6128964],[1.6745043,1.6509571],[1.7143661,1.6987807],[1.6965379,1.4480462],[1.6356158,1.461281],[3.078798,.40615976],[3.0902882,.40465614],[3.2182782,.38465768],[3.30384,.3641531],[3.3435307,.38208547],[3.469931,.38581216],[3.4132774,.3220332],[3.2832613,.31183818],[4.307403,.7408088],[4.275364,.69541764],[4.2028174,.7115761],[3.7826874,.110516265],[6.248764,.13929784],[5.960568,.1504192],[4.569947,1.0495182],[4.5466247,1.134472],[4.565652,1.1488576],[4.5422463,1.2023062],[4.4958725,1.2963449],[4.350927,1.3863658],[4.268733,1.4888965],[4.251385,1.5063183],[4.3236766,1.6054225],[4.440416,1.7344215],[4.60302,1.7900105],[4.6402745,1.6505108],[4.6595607,1.6180472],[4.7081413,1.4002142],[1.549729,1.7000741],[1.4623152,1.7441801],[1.4186519,1.6816196],[1.4486526,1.5655762],[1.3724304,1.4276508],[1.5173739,1.40203],[1.4868407,1.536892],[1.5811955,1.7391732],[1.6228942,1.8187861],[1.6038357,1.8285547],[1.5878996,1.9222786],[1.635583,1.9051394],[1.2646662,1.6922934],[1.2867242,1.7479618],[1.2680343,1.7261337],[1.2706261,1.6686238],[1.2839147,1.6133941],[1.3026631,1.6007117],[5.6131635,.429941],[5.4321575,.41533238],[5.27399,.41570133],[4.6501384,.44115174],[4.9001675,.32414052],[5.2385654,.2982679],[5.3478966,.58058226],[6.0378532,2.0609334],[.036597196,2.0785203],[.05775242,1.8358],[6.0421596,1.8361783],[5.9472194,2.0982566],[5.790177,2.013152],[5.69259,2.0183866],[5.9777665,2.000175],[5.9626174,1.9820946],[5.6920056,1.8736115],[5.594158,1.9164501],[5.963323,1.7832533],[5.9404984,1.7598392],[5.804092,1.6789696],[5.6905847,1.743148],[.45230424,2.4554818],[.74480486,2.5463567],[.8063269,2.50466],[.8915259,2.441038],[.82682997,2.3537083],[.82104164,2.2856073],[.80798364,2.248687],[.7443122,2.239583],[.9726937,2.4048464],[1.0378331,2.2691066],[1.0426816,2.1954677],[1.0215936,2.127271],[.97877574,2.1343327],[.39815786,.7143161],[.38556743,.8147506],[.2883477,.7554062],[.11468279,.8324177],[.041059572,.7723532],[6.174433,.82702297],[6.193588,.7568132],[6.2785134,.65020835],[.18916762,.56787676],[.29838377,.6065759],[1.7810721,.4897151],[1.5264086,.59050316],[1.5153155,.67951757],[.312678,2.0959597],[.34673837,2.046644],[.32179123,1.999863],[.39917207,1.8386315],[.4598674,1.730629],[.5325306,1.619033],[.44257867,1.6665733],[.27464274,1.7085053],[.21241696,1.7031811],[6.2801814,1.690584],[6.1957035,1.6689936],[6.143421,1.6821308],[6.1101494,1.6647179],[6.0962853,1.6280831],[6.138901,1.5927109],[6.2048497,1.601864],[6.223809,1.6316527],[6.0111337,1.0537908],[5.93698,1.0987961],[5.8220367,1.0861723],[5.706074,1.0315192],[5.693905,.99438775],[5.796166,.9950389],[5.8970547,1.0062509],[5.988773,.9970105],[6.0037074,1.0028727],[2.1273131,1.146606],[2.0476825,1.1369113],[2.0020287,1.1029811],[1.9869772,1.0756582],[1.9073948,.9233234],[1.7355605,.81688505],[1.788683,.68740565],[2.0651727,.73124176],[2.0474384,.7614313],[2.1100342,.87260973],[2.2693748,.9545493],[2.2846024,.9915846],[2.3148837,1.0871683],[.9782378,.43970257],[1.1101352,.48042184],[1.1191238,.5357785],[1.0528778,.50476974],[1.0417247,.49916098],[1.0511104,.4859122],[5.2305646,1.9109986],[5.1809564,1.8942807],[5.1491427,1.885198],[5.153299,1.8758109],[4.789304,.92918396],[4.8178596,.9706716],[4.7377324,1.0397958],[4.8039927,1.0501977],[4.8344345,1.127104],[4.7724433,1.2032503],[4.911603,1.0997185],[4.95353,1.111832],[5.0044703,1.0878563],[4.9855847,1.0492902],[5.1343536,1.1364952],[5.222667,1.0965922],[5.247585,1.0871683],[5.235358,.9652055],[5.2348375,.95510864],[5.2153125,.84005684],[5.0784116,.8619145],[5.072966,.794841],[4.175197,1.0609146],[4.1837807,1.1150192],[4.190245,1.175973],[4.2125382,1.2251886],[4.241131,1.2311429],[4.281243,1.1241177],[4.3171053,1.109471],[4.3453574,1.078334],[4.4076757,.97226655],[4.4151187,.9067443],[4.4269576,.83145195],[4.503618,.81613016],[4.613424,.8203428],[4.658217,.8704481],[4.635978,.8895946],[4.597235,.9232125],[.25571674,1.0584123],[6.2348647,1.0798306],[6.103521,1.0030054],[6.1652484,.91074306],[4.9182267,1.4879304],[4.8660088,1.4269103],[4.815624,1.4148619],[4.8397875,1.316575],[4.1434994,1.510928],[4.1487184,1.6489475],[4.120146,1.6829448],[4.0788455,1.7547343],[4.1285224,1.8399581],[4.1396575,1.8874264],[4.173313,1.8441432],[4.9578004,1.6441374],[4.8053718,1.5202023],[4.7081413,1.4002142],[4.6312947,1.34608],[4.614593,1.3020408],[4.5414677,1.346576],[2.5853007,1.429337],[2.65263,1.5643101],[2.7501647,1.5596782],[.8936663,1.7283798],[1.0501659,1.7887942],[1.1335622,1.8435501],[1.1472696,1.8769709],[1.172061,1.9055581],[.9925888,1.9915104],[1.2315263,1.9714704],[1.423717,2.0700905],[1.1722604,1.8477955],[1.203931,1.8589381],[1.4732533,1.9398034],[4.7613864,.7687404],[4.830084,.7684953],[4.838185,.714353],[.5652401,2.1814399],[.49341226,2.0870442],[.599147,2.1615415],[4.4011297,.36603537],[4.1676064,.46372133],[4.087212,.41334563],[4.009505,.37211218],[5.840318,.5190681],[6.0974383,.554391],[.08747817,.4385176],[.13769235,.47184],[6.2828174,.42625946],[3.61083,2.4314752],[3.507784,2.5294247],[3.3773355,2.5474796],[3.2088976,2.5662036],[3.1146715,2.5079467],[2.8878243,2.5548556],[2.8960655,2.6485553],[3.0807283,2.4047043],[2.9604232,2.148401],[2.9591494,2.1210775],[2.9219592,2.3474417],[2.7154238,2.2950995],[2.6925943,2.3197935],[2.5786893,2.6012166],[2.5835497,2.514397],[2.5081441,2.4792662],[2.499586,2.4727356],[2.3527462,2.4092844],[2.3720143,2.3938332],[2.4937577,2.6714334],[2.226455,2.6305285],[4.11923,2.9285665],[4.265181,2.8929765],[4.0174384,2.8245366],[3.8864396,2.865054],[4.3893704,3.0026166],[4.5911546,3.0820153],[.66228706,3.128749],[2.1357958,.7444557],[2.2894511,.6159473],[2.4526837,.61067903],[2.604304,.61840874],[2.8220634,.7082502],[2.780759,.72910047],[2.761756,.7504331],[2.682294,.83562976],[2.4901505,.864518],[2.3910842,.81275463],[2.2881234,.826426],[2.258648,.82049537],[3.0798924,1.6847554],[3.1009934,1.6015966],[3.2284489,1.5591584],[3.323372,1.5455],[3.4468067,1.4741224],[3.513317,1.3759946],[3.5547698,1.5603974],[3.384209,1.6300933],[3.4128895,1.7620697],[3.7350676,1.466067],[3.853078,1.4720422],[3.672376,1.5977535],[3.8669899,1.6038333],[2.36687,.4119663],[2.2066944,.41648993],[2.1289978,.37320265],[2.015071,.30358094],[1.8705825,.3403901],[1.9060326,.38472027],[5.051538,1.9726679],[5.0994406,2.00128],[5.1970167,1.9654161]],l:[[0,1],[1,2],[2,3],[0,4],[4,5],[5,6],[7,8],[8,9],[9,10],[11,12],[12,13],[13,14],[15,16],[16,17],[17,18],[18,19],[19,15],[15,20],[20,21],[21,22],[22,23],[23,20],[20,24],[24,25],[22,26],[26,27],[27,28],[28,29],[29,30],[30,31],[31,32],[32,33],[33,27],[34,35],[35,36],[36,37],[37,38],[38,39],[39,40],[40,41],[41,42],[42,36],[43,37],[44,45],[45,46],[46,47],[47,48],[48,49],[49,50],[50,44],[51,52],[52,53],[53,54],[55,56],[56,57],[57,58],[58,59],[59,60],[60,61],[61,62],[62,55],[63,64],[64,65],[65,66],[66,67],[67,68],[68,69],[69,64],[64,70],[71,72],[73,74],[74,75],[75,76],[76,77],[78,79],[79,80],[80,81],[79,82],[83,84],[85,86],[86,87],[87,88],[88,89],[89,90],[88,91],[92,93],[94,95],[95,96],[96,97],[97,98],[98,99],[99,100],[100,101],[101,102],[102,103],[103,104],[104,105],[105,106],[106,94],[107,108],[108,109],[109,110],[110,111],[111,112],[112,113],[113,114],[115,116],[116,117],[117,118],[118,119],[120,121],[121,122],[122,123],[121,124],[124,125],[121,126],[126,127],[127,128],[128,129],[129,121],[129,130],[130,131],[131,132],[133,134],[134,135],[135,136],[136,137],[137,133],[138,139],[139,140],[140,141],[141,142],[142,143],[143,138],[138,144],[144,145],[145,146],[146,147],[147,148],[148,149],[149,150],[150,151],[151,146],[152,153],[153,154],[154,155],[155,152],[156,157],[158,159],[159,160],[160,161],[161,162],[162,163],[161,164],[165,166],[166,167],[168,169],[169,170],[170,171],[171,172],[172,173],[174,175],[175,176],[176,177],[177,178],[178,179],[179,180],[181,182],[182,183],[183,184],[184,185],[185,182],[186,187],[187,188],[188,189],[189,190],[190,191],[191,188],[192,193],[193,191],[194,195],[196,197],[198,199],[199,200],[200,201],[202,203],[203,200],[200,204],[204,205],[206,207],[207,208],[208,209],[209,210],[210,207],[211,212],[212,213],[213,214],[215,216],[216,217],[217,218],[218,215],[215,219],[219,220],[220,221],[221,222],[222,223],[223,224],[224,225],[225,226],[226,227],[227,228],[228,229],[229,230],[231,232],[232,233],[233,234],[235,236],[236,237],[237,238],[238,239],[239,240],[240,241],[241,242],[242,243],[243,244],[244,245],[245,246],[246,247],[247,248],[248,249],[249,250],[250,251],[251,252],[252,253],[253,254],[254,255],[255,256],[256,257],[257,258],[258,259],[259,260],[260,261],[261,262],[262,263],[263,264],[264,265],[265,266],[266,267],[267,268],[269,270],[270,271],[272,273],[273,274],[274,275],[275,276],[276,277],[277,278],[278,279],[279,280],[280,281],[281,282],[282,283],[283,284],[281,285],[286,287],[287,288],[288,289],[289,290],[290,291],[291,292],[293,294],[294,288],[288,295],[296,297],[297,298],[298,299],[299,300],[300,301],[301,298],[301,302],[302,303],[303,304],[304,305],[300,306],[306,307],[300,308],[299,309],[309,310],[310,311],[311,312],[313,314],[314,315],[315,316],[316,317],[317,318],[319,320],[320,321],[321,322],[322,323],[323,324],[324,325],[325,326],[326,327],[327,328],[328,329],[329,330],[330,331],[331,332],[332,333],[333,334],[334,335],[335,331],[336,337],[337,338],[338,339],[339,340],[341,342],[342,343],[342,344],[345,346],[346,347],[347,348],[348,349],[349,350],[350,351],[352,353],[353,354],[354,352],[352,355],[355,356],[356,357],[357,358],[358,359],[359,360],[361,362],[362,363],[364,365],[365,366],[366,367],[367,368],[368,365],[368,369],[370,371],[371,372],[372,373],[373,374],[374,375],[375,372],[376,377],[377,378],[378,379],[379,380],[380,381],[381,382],[382,383],[383,384],[384,378],[384,385],[385,386],[387,388],[388,389],[389,390],[390,391],[391,392],[393,394],[394,395],[395,396],[396,397],[397,398],[398,395],[399,394],[400,401],[401,402],[402,403],[404,405],[405,406],[406,407],[408,409],[409,410],[410,411],[411,412],[412,413],[410,414],[414,415],[416,417],[417,418],[418,419],[419,420],[420,421],[421,422],[422,423],[423,419],[424,425],[425,426],[427,428],[428,429],[429,427],[430,431],[431,432],[432,433],[433,434],[434,435],[435,436],[436,437],[437,438],[438,439],[439,440],[440,441],[441,442],[442,434],[442,443],[444,445],[445,446],[446,447],[447,448],[448,449],[449,450],[450,444],[444,451],[451,452],[452,453],[453,454],[452,455],[446,456],[457,458],[458,456],[456,459],[459,460],[460,461],[462,463],[463,464],[464,465],[465,466],[466,467],[467,463],[463,468],[469,470],[470,471],[471,472],[472,469],[469,473],[473,474],[474,475],[469,476],[476,477],[477,478],[478,479],[472,480],[480,481],[481,482],[482,483],[484,485],[485,486],[486,487],[487,488],[488,489],[489,490],[490,491],[487,492],[492,493],[493,494],[494,495],[495,496],[497,498],[498,499],[499,500],[500,501],[501,502],[502,503],[503,504],[501,505],[499,506],[507,508],[508,509],[510,511],[511,512],[512,513],[513,514],[514,515],[515,516],[516,517],[517,518],[518,519],[519,520],[520,521],[521,522],[522,523],[523,524],[524,525],[525,526],[526,520],[527,528],[528,529],[529,530],[530,531],[531,532],[532,533],[533,534],[534,535],[535,527],[536,537],[537,538],[538,539],[539,540],[540,541],[541,542],[542,543],[543,544],[544,545],[545,536],[546,547],[547,548],[549,550],[550,551],[551,552],[552,553],[553,554],[554,549],[555,556],[556,557],[556,558],[559,560],[560,561],[561,562],[562,563],[563,564],[563,565],[565,566],[566,567],[567,568],[568,565],[568,560],[560,562],[567,569],[569,570],[570,571],[571,572],[572,573],[573,574],[574,575],[574,576],[577,578],[578,579],[579,580],[580,581],[579,582],[582,583],[583,584],[584,585],[585,586],[586,587],[587,588],[588,589],[589,590],[590,591],[591,592],[593,594],[594,595],[595,596],[597,598],[598,599],[598,600],[601,602],[602,603],[603,604],[604,605],[605,606],[606,607],[607,605],[608,609],[609,610],[610,611],[611,612],[612,613],[614,615],[615,616],[617,618],[618,619],[619,620],[620,621],[621,622],[621,623],[623,624],[619,625],[625,626],[626,627],[628,629],[629,630],[631,632],[632,633],[633,631],[634,635],[635,636],[636,637],[638,639],[639,640],[640,641],[640,642],[643,644],[644,645],[645,646],[646,647],[647,648],[648,649],[649,646],[647,650],[650,651],[651,652],[650,653],[653,654],[654,655],[648,656],[656,657],[657,658],[658,659],[659,660],[660,661],[649,662],[662,663],[663,656],[664,665],[665,666],[666,667],[667,664],[664,668],[668,669],[669,670],[671,672],[672,673],[673,674],[674,675],[675,676],[676,677],[677,678],[678,679],[679,680],[680,681],[681,682],[682,671],[683,684],[684,685],[685,686],[686,687],[687,688],[688,689],[689,690],[690,686],[690,691],[688,692],[692,693],[689,694],[694,695],[696,697],[697,698],[698,699],[700,699],[699,701],[702,703],[703,704]]},b=function(a){function b(a){return 2*(a+90)*Math.PI/360}function c(a){return 2*a*Math.PI/24}function d(){j=!1;for(var a=0;a0,i="onmousemove"in window||"onmousemove"in document.documentElement;h||i||(i=!0);var j,k=h?15:6,l=[],m=!1;return f.prototype.zoomFactor=1,f.prototype.starLines=[],f.prototype.starPoints=[],f.prototype.objectPoints=[],f.prototype.isMoving=!1,f.prototype.overObjectIndex=null,f.prototype.init=function(b){function c(a){a.preventDefault(),y=a.touches&&a.touches.length>0?a.touches[0]:a,j.isMoving=!0,u=s=y.clientX,v=t=y.clientY,r=j.canvas.getBoundingClientRect(),w=s-r.left,x=t-r.top,j.overObjectIndex=null,h&&(window.addEventListener("touchmove",d,!1),window.addEventListener("touchend",f,!1)),i&&(window.addEventListener("mousemove",d,!1),window.addEventListener("mouseup",f,!1)),e()}function d(a){y=a.touches&&a.touches.length>0?a.touches[0]:a,j.rotateXY((y.clientX-u)/j.radius,(y.clientY-v)/j.radius),u=y.clientX,v=y.clientY,e()}function f(){if(j.isMoving=!1,h&&(window.removeEventListener("touchmove",d,!1),window.removeEventListener("touchend",f,!1)),i&&(window.removeEventListener("mousemove",d,!1),window.removeEventListener("mouseup",f,!1)),u===s&&v===t&&j.options.customOnClick)for(var a=0;a=0)return void j.options.customOnClick(b.data)}}function g(a){var b=a.changedTouches&&a.changedTouches.length>0?a.changedTouches[0]:a;r=j.canvas.getBoundingClientRect();for(var c=b.clientX-r.left,d=b.clientY-r.top,e=0,f=null;e0&&Math.abs(c-skyPoint.x)<=k&&Math.abs(d-skyPoint.y)<=k&&(f=e),e++;j.overObjectIndex!==f&&(j.overObjectIndex=f,j.drawSky())}var j=this;this.canvas=document.getElementById(b),this.containerWidth=this.canvas.width=this.options.width||400,this.containerHeight=this.canvas.height=this.options.height||this.containerWidth,this.radius=this.initialRadius=this.options.initialRadius||.45*Math.min(this.containerWidth,this.containerHeight),this.context=this.canvas.getContext("2d"),this.context.lineWidth=1;var l,m=a.l,n=a.s;for(l=0;l0&&e.z>0&&(g.beginPath(),g.moveTo(Math.floor(d.x),Math.floor(d.y)),g.lineTo(Math.floor(e.x),Math.floor(e.y)),g.stroke());for(g.fillStyle="#fff",a=0;a=0&&(g.beginPath(),g.arc(Math.floor(c.x),Math.floor(c.y),2,0,2*Math.PI,!0),g.fill());for(a=0;a=0&&(g.fillStyle=c.data.color||"#ff0000",g.beginPath(),f=c.data.radius||2,g.arc(Math.floor(c.x),Math.floor(c.y),f,0,2*Math.PI,!0),g.fill());if(null!==this.overObjectIndex){var h=this.options.highlightSize||3;if(g.lineWidth=h,c=this.objectPoints[this.overObjectIndex],g.strokeStyle=g.fillStyle=this.options.highlightColor||"#ffff00",g.beginPath(),f=c.data.radius||2,g.arc(Math.floor(c.x),Math.floor(c.y),f+h,0,2*Math.PI,!0),g.stroke(),this.options.getObjectText){g.font=this.options.font||"15px serif";var i=this.options.getObjectText(c.data),j=c.x+f+h,k=c.y-f-h;g.strokeStyle="#000",g.strokeText(i,j,k),g.lineWidth=1,g.fillText(i,j,k)}g.lineWidth=1}},f.prototype.applyTransform=function(a){var b;for(b=0;b0&&0>g||0>h&&g>0?(d.rotateXY(h,0),d._currentAnimationTimeout=setTimeout(b,32)):c(),e()}function c(){var b=-a.y+g;0!==b&&i>0&&0>b||0>i&&b>0?(d.rotateXY(0,-i),d._currentAnimationTimeout=setTimeout(c,32),e()):d.isMoving=!1}var d=this;this.stopMoving();var f=this.containerWidth/2,g=this.containerHeight/2,h=a.xg?.05:-.05;this.isMoving=!0,b()},f.prototype.stopMoving=function(){this._currentAnimationTimeout&&(clearTimeout(this._currentAnimationTimeout),this.isMoving=!0)},f.prototype.rotateXYAnimation=function(a,b){function c(){d.rotateXY(a,b),d.drawSky(),e()}this.stopMoving(),this.isMoving=!0;var d=this;this._currentAnimationTimeout=setInterval(c,32)},f.prototype.zoom=function(a){var b=this;this.radius=this.radius*a;var c=this.containerWidth/2,d=this.containerHeight/2;this.applyTransform(function(e){b.zoomFactor=a,e.x=a*(e.x-c)+c,e.y=a*(e.y-d)+d,e.z=a*e.z}),this.drawSky()},f.prototype.absoluteZoom=function(a){this.zoom(this.initialRadius*a/this.radius)},f.prototype.setContainerSize=function(a,b,c,d){var e=(a-this.containerWidth)/2,f=(b-this.containerHeight)/2;this.canvas.width=this.containerWidth=a,this.canvas.height=this.containerHeight=b,this.applyTransform(function(a){a.x+=e,a.y+=f}),c&&this.zoom(Math.min(a,b)*(d||.9)/(2*this.radius))},f.prototype.addCustomObject=function(a,d,e){var f=this.generateSkyPoint(c(a),b(d),e);return this.objectPoints.push(f),f},f}(a)});