text: !function(){var e={7757:function(e,t,n){e.exports=n(5666)},512:function(e,t,n){"use strict";n(7042),n(1249);var r="#054169",i="#FFBE4B",o="#5FBEE6",a="#559B37",s="#FF821E",c="#871455",u="#8c8c96",l="#42464B",d=6.2898,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";return e.slice().sort((function(e,n){return n[t]-e[t]}))};function f(e,t){e.map((function(e){var n=document.getElementById(e);"hide"==t?"none"!==n.style.display&&(n.style.display="none"):"show"==t&&"block"!==n.style.display&&(n.style.display="block")}))}var h=JSON.parse('{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-6387993,7198472],[-6473568,7213947],[-6492641,7180239],[-6534901,7161437],[-6631682,7081343],[-6666905,7073268],[-6693827,7098909],[-6661501,7141169],[-6630068,7136089],[-6551783,7177915],[-6527304,7175167],[-6474803,7238193],[-6421620,7239395],[-6385689,7265612],[-6470590,7336721],[-6505076,7315319],[-6551059,7323902],[-6566659,7390658],[-6596617,7399815],[-6653292,7389290],[-6705784,7412172],[-6731372,7489412],[-6763157,7528579],[-6794094,7528734],[-6832569,7556525],[-6834313,7593434],[-6866863,7602575],[-6882126,7638897],[-6863372,7687260],[-6870853,7720452],[-6830803,7779309],[-6896572,7809823],[-6880304,7836299],[-6909938,7880469],[-6889086,7940282],[-6927055,7950677],[-6966345,8014640],[-7012294,8153594],[-7057145,8199874],[-7053354,8220646],[-7117887,8312127],[-7128144,8366900],[-7165092,8411310],[-7182865,8466791],[-7207443,8437377],[-7217981,8393133],[-7209104,8334694],[-7224441,8320413],[-7184954,8247788],[-7175688,8176392],[-7150018,8133771],[-7118910,8112666],[-7143619,8043723],[-7171394,8006635],[-7137436,7927748],[-7085480,7887925],[-7108397,7828756],[-7095668,7809489],[-7114217,7745319],[-7140624,7698997],[-7116773,7665414],[-7134521,7614338],[-7117017,7577780],[-7084007,7563100],[-7099246,7529813],[-7087200,7444408],[-7062359,7428929],[-7104468,7351772],[-7103673,7294384],[-7130490,7284793],[-7157234,7314128],[-7186439,7306491],[-7249843,7354393],[-7286476,7309367],[-7312590,7306079],[-7330371,7347752],[-7376061,7361902],[-7414189,7414246],[-7465408,7302497],[-7497283,7268683],[-7539390,7257263],[-7533582,7200281],[-7549875,7175026],[-7482759,7081705],[-7449995,7060817],[-7463038,6997082],[-7502081,7005384],[-7493675,6959992],[-7433074,6927003],[-7416758,6974541],[-7376160,6959786],[-7396059,6914756],[-7383834,6824742],[-7312195,6818907],[-7256479,6759653],[-7197200,6746338],[-7155426,6754397],[-7162484,6797576],[-7136607,6871692],[-7138276,6933587],[-7086606,6948158],[-7060929,6917696],[-7128673,6902215],[-7090002,6823635],[-7103086,6799736],[-6357207,6799853],[-6357293,6695105],[-6311546,6733773],[-6255175,6765456],[-6199147,6815646],[-6214674,6893287],[-6235542,6936461],[-6211173,6953251],[-6222798,6988420],[-6208162,7025300],[-6233008,7075311],[-6302005,7121451],[-6358194,7119352],[-6387993,7198472]]],[[[-6170599,6723684],[-6242257,6718099],[-6317229,6674727],[-6340935,6607672],[-6398050,6529212],[-6451295,6377514],[-6481131,6345874],[-6458439,6310328],[-6508822,6277713],[-6532992,6221734],[-6525945,6173169],[-6597802,6107383],[-6602070,6047859],[-6586877,6034961],[-6468528,6057028],[-6386962,6047089],[-6323460,6029850],[-6261668,6045840],[-6230768,6067822],[-6213012,6016717],[-6171688,6018453],[-6159653,5983266],[-6230984,5941503],[-6205993,5919004],[-6165306,5921571],[-6130339,5958647],[-6103412,6009098],[-6076618,5999237],[-6034350,6072840],[-6007853,6067748],[-6003598,5991880],[-5973377,5913150],[-5907993,5886494],[-5888094,5958646],[-5857566,6027900],[-5868635,6067025],[-5914067,6012376],[-5930467,6040379],[-5895575,6118154],[-5934047,6107669],[-5960177,6038302],[-5985850,6072450],[-5971703,6136043],[-5911507,6175348],[-5950939,6210277],[-5975187,6196491],[-5995296,6260936],[-5969504,6280698],[-5956253,6321481],[-6020038,6355970],[-6070910,6354070],[-6110704,6324354],[-6160167,6365306],[-6196236,6344438],[-6234412,6399071],[-6204147,6434002],[-6252615,6473355],[-6313595,6396068],[-6317923,6450402],[-6203799,6638044],[-6170599,6723684]]]]},"properties":{"PRUID":"10","PRNAME":"Newfoundland and Labrador / Terre-Neuve-et-Labrador","PRENAME":"Newfoundland and Labrador","PRFNAME":"Terre-Neuve-et-Labrador","PREABBR":"N.L.","PRFABBR":"T.-N.-L."}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-6899917,5854010],[-7009889,5846689],[-7082122,5870308],[-7117662,5847709],[-7078319,5813718],[-7026194,5811501],[-6994163,5774773],[-6958274,5776364],[-6939528,5835322],[-6899917,5854010]]]},"properties":{"PRUID":"11","PRNAME":"Prince Edward Island / Île-du-Prince-Édouard","PRENAME":"Prince Edward Island","PRFNAME":"Île-du-Prince-Édouard","PREABBR":"P.E.I.","PRFABBR":"Î.-P.-É."}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-7155060,5754988],[-7226190,5689547],[-7144108,5684901],[-7222984,5641811],[-7307522,5585085],[-7359182,5520446],[-7369819,5483697],[-7362653,5432668],[-7329509,5429521],[-7316760,5386929],[-7217621,5436541],[-7179105,5487418],[-7158950,5548657],[-7074687,5538058],[-7073387,5564888],[-6998126,5579175],[-6850832,5647750],[-6806522,5677945],[-6844829,5731259],[-6934547,5731379],[-6984394,5742135],[-7042725,5737646],[-7065278,5760866],[-7129190,5779285],[-7155060,5754988]]],[[[-6722450,5946273],[-6745159,5948983],[-6780117,5904518],[-6801907,5852374],[-6851245,5788034],[-6827337,5710860],[-6761596,5712353],[-6704830,5735481],[-6662097,5779278],[-6661827,5808866],[-6722492,5812755],[-6737315,5840500],[-6718119,5881474],[-6722450,5946273]]]]},"properties":{"PRUID":"12","PRNAME":"Nova Scotia / Nouvelle-Écosse","PRENAME":"Nova Scotia","PRFNAME":"Nouvelle-Écosse","PREABBR":"N.S.","PRFABBR":"N.-É."}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-7129190,5779285],[-7134106,5806317],[-7187859,5820978],[-7203316,5886872],[-7229660,5916158],[-7214022,5954625],[-7232969,5987383],[-7213711,6074307],[-7255966,6076867],[-7303692,6049469],[-7317362,6078684],[-7383368,6116969],[-7502987,6085163],[-7524983,6106845],[-7583372,6106813],[-7612287,6092911],[-7612422,6032825],[-7686690,5991202],[-7670220,5971422],[-7594630,5998522],[-7546352,5952882],[-7548145,5747571],[-7514074,5699137],[-7500789,5645505],[-7436136,5627976],[-7295358,5672576],[-7210230,5717686],[-7187690,5753888],[-7155060,5754988],[-7129190,5779285]]]},"properties":{"PRUID":"13","PRNAME":"New Brunswick / Nouveau-Brunswick","PRENAME":"New Brunswick","PRFNAME":"Nouveau-Brunswick","PREABBR":"N.B.","PRFABBR":"N.-B."}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-6527763,6656723],[-6503338,6675364],[-6457938,6674148],[-6431411,6695941],[-6372246,6710052],[-6357293,6695105],[-6357207,6799853],[-7103086,6799736],[-7090002,6823635],[-7128673,6902215],[-7060929,6917696],[-7086606,6948158],[-7138276,6933587],[-7136607,6871692],[-7162484,6797576],[-7155426,6754397],[-7197200,6746338],[-7256479,6759653],[-7312195,6818907],[-7383834,6824742],[-7396059,6914756],[-7376160,6959786],[-7416758,6974541],[-7433074,6927003],[-7493675,6959992],[-7502081,7005384],[-7463038,6997082],[-7449995,7060817],[-7482759,7081705],[-7549875,7175026],[-7533582,7200281],[-7539390,7257263],[-7497283,7268683],[-7465408,7302497],[-7414189,7414246],[-7376061,7361902],[-7330371,7347752],[-7312590,7306079],[-7286476,7309367],[-7249843,7354393],[-7186439,7306491],[-7157234,7314128],[-7130490,7284793],[-7103673,7294384],[-7104468,7351772],[-7062359,7428929],[-7087200,7444408],[-7099246,7529813],[-7084007,7563100],[-7117017,7577780],[-7134521,7614338],[-7116773,7665414],[-7140624,7698997],[-7114217,7745319],[-7095668,7809489],[-7108397,7828756],[-7085480,7887925],[-7137436,7927748],[-7171394,8006635],[-7143619,8043723],[-7118910,8112666],[-7150018,8133771],[-7175688,8176392],[-7184954,8247788],[-7224441,8320413],[-7209104,8334694],[-7217981,8393133],[-7207443,8437377],[-7182865,8466791],[-7229663,8460111],[-7255207,8378381],[-7294162,8342896],[-7278977,8285089],[-7321559,8176914],[-7365376,8125007],[-7388651,8148692],[-7422867,8069177],[-7503845,8024272],[-7540980,8031910],[-7537974,8062724],[-7600758,8081640],[-7613443,8141575],[-7640412,8160466],[-7730831,8155870],[-7740195,8211789],[-7706601,8233374],[-7754245,8281331],[-7746200,8449846],[-7771557,8515401],[-7753320,8597028],[-7797368,8589995],[-7809734,8647087],[-7871476,8643911],[-7927370,8662819],[-7982651,8695462],[-7989948,8752079],[-8040324,8830808],[-8079425,8847664],[-8082829,8886093],[-8132966,8902808],[-8148166,8934423],[-8200072,8972973],[-8284244,8916880],[-8405947,8923601],[-8548610,8984030],[-8628036,8996951],[-8693048,8945575],[-8703280,8893773],[-8682529,8788854],[-8638341,8754208],[-8653889,8728281],[-8663480,8638469],[-8704483,8593485],[-8651628,8574666],[-8663993,8548131],[-8657745,8490532],[-8615287,8412743],[-8618524,8352369],[-8662852,8327370],[-8670515,8290772],[-8652826,8263281],[-8703382,8213417],[-8723866,8160289],[-8726949,8092383],[-8677357,8038491],[-8647438,8025417],[-8593398,7972277],[-8554036,7896823],[-8527216,7807491],[-8519692,7723775],[-8521297,7618575],[-8585064,7491571],[-8658796,7414760],[-8717464,7370806],[-8858336,7307195],[-8844623,7235388],[-8806063,7201054],[-8793156,7065360],[-8791827,6985108],[-8762604,6941599],[-8768760,6918211],[-8739542,6883830],[-8747836,6818142],[-8851664,6703190],[-8851801,6029538],[-8843554,5958575],[-8793112,5868744],[-8758152,5831494],[-8634617,5805901],[-8592788,5758560],[-8547266,5746007],[-8527962,5705639],[-8424388,5694367],[-8342618,5723388],[-8280085,5711090],[-8275880,5653919],[-8202800,5731532],[-8178933,5734387],[-8145807,5793177],[-8079921,5828590],[-8039182,5868203],[-7997600,5891964],[-7935853,5901049],[-7899323,5943198],[-7872064,5959761],[-7842784,6011916],[-7818481,6022005],[-7781856,6068676],[-7762028,6125501],[-7728653,6156332],[-7686525,6236340],[-7640133,6258431],[-7636406,6282569],[-7590764,6291808],[-7583910,6321012],[-7501067,6328757],[-7475381,6410992],[-7423136,6466490],[-7347389,6492485],[-7274779,6498870],[-7231000,6492095],[-7171344,6501358],[-7039980,6484229],[-7009740,6494045],[-6890276,6484374],[-6862449,6463060],[-6819218,6480396],[-6745174,6481552],[-6669495,6492973],[-6603986,6567976],[-6567082,6583765],[-6563861,6621972],[-6527763,6656723]]],[[[-7383368,6116969],[-7342359,6139130],[-7285778,6107605],[-7210632,6141126],[-7199387,6164752],[-7149862,6190676],[-7177232,6283883],[-7227578,6309765],[-7297689,6318580],[-7373531,6308386],[-7429629,6290100],[-7589999,6213097],[-7675825,6155388],[-7738159,6097027],[-7753162,6062322],[-7853337,5940409],[-7902328,5915126],[-7975185,5883136],[-7997654,5887748],[-8064108,5841124],[-8101050,5803946],[-8142209,5787723],[-8174462,5734843],[-8185149,5684783],[-8243134,5655383],[-8254346,5620127],[-7959932,5623631],[-7935478,5668961],[-7862292,5688087],[-7864166,5717546],[-7824018,5759827],[-7824540,5811336],[-7798650,5847284],[-7792040,5892567],[-7705972,6017409],[-7686690,5991202],[-7612422,6032825],[-7612287,6092911],[-7583372,6106813],[-7524983,6106845],[-7502987,6085163],[-7383368,6116969]]],[[[-6979292,6386795],[-7055268,6416261],[-7141145,6437996],[-7155386,6404895],[-7105695,6383421],[-7076477,6341210],[-7020892,6312105],[-6929649,6284509],[-6881944,6284740],[-6883164,6328204],[-6946478,6356995],[-6979292,6386795]]]]},"properties":{"PRUID":"24","PRNAME":"Quebec / Québec","PRENAME":"Quebec","PRFNAME":"Québec","PREABBR":"Que.","PRFABBR":"Qc"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-8851664,6703190],[-8883102,6649210],[-8948355,6681539],[-8969485,6748193],[-9015664,6802193],[-9057195,6818712],[-9077325,6877734],[-9155956,6969236],[-9140976,7032006],[-9152452,7093075],[-9142261,7136105],[-9175610,7209992],[-9150347,7330189],[-9158679,7370745],[-9236415,7405441],[-9288161,7402579],[-9337850,7419243],[-9438510,7407880],[-9506937,7441261],[-9534796,7473337],[-9602419,7500342],[-9673875,7541376],[-9707682,7545409],[-9754517,7577131],[-9792306,7649930],[-9836809,7673345],[-9905931,7728920],[-10108060,7502954],[-10202186,7392686],[-10423692,7121979],[-10592400,6953563],[-10592432,6385081],[-10554165,6396154],[-10497197,6388843],[-10535879,6328016],[-10487516,6304674],[-10541823,6245416],[-10528621,6227102],[-10404654,6198284],[-10350826,6211278],[-10273497,6164012],[-10209659,6140167],[-10178195,6115093],[-10117395,6147978],[-10101068,6122632],[-10034746,6125668],[-10007460,6104865],[-9942439,6128175],[-9931740,6179109],[-9856308,6215019],[-9807859,6222408],[-9796821,6268856],[-9710351,6233496],[-9621190,6236583],[-9589587,6147365],[-9538181,6094161],[-9444170,6093690],[-9466515,6041738],[-9416461,5988494],[-9438098,5947805],[-9399632,5889247],[-9404747,5859151],[-9364390,5837619],[-9251511,5811885],[-9205703,5812303],[-9086708,5794007],[-8987353,5766264],[-8948572,5711157],[-8913840,5634444],[-8918889,5538523],[-8949204,5549031],[-9047752,5625148],[-9048176,5558601],[-9101184,5476678],[-9095892,5372771],[-9152458,5318265],[-9171031,5314139],[-9192940,5236839],[-9232344,5212415],[-9251473,5167995],[-9187778,5156280],[-9173684,5177726],[-9044391,5260965],[-8973741,5248206],[-8931150,5278266],[-8871997,5290758],[-8789003,5293782],[-8800579,5350403],[-8830043,5339788],[-8877760,5349772],[-8860885,5393885],[-8804348,5436459],[-8669339,5461817],[-8608965,5491474],[-8588003,5490531],[-8579437,5493750],[-8571921,5487344],[-8453252,5523787],[-8383214,5596942],[-8275880,5653919],[-8280085,5711090],[-8342618,5723388],[-8424388,5694367],[-8527962,5705639],[-8547266,5746007],[-8592788,5758560],[-8634617,5805901],[-8758152,5831494],[-8793112,5868744],[-8843554,5958575],[-8851801,6029538],[-8851664,6703190]]],[[[-9120989,5778289],[-9183866,5770741],[-9186234,5740439],[-9110833,5702958],[-9081329,5746021],[-9120989,5778289]]],[[[-8578983,5492099],[-8626890,5482020],[-8588899,5440526],[-8564713,5454583],[-8580939,5472572],[-8578983,5492099]]]]},"properties":{"PRUID":"35","PRNAME":"Ontario","PRENAME":"Ontario","PRFNAME":"Ontario","PREABBR":"Ont.","PRFABBR":"Ont."}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-9905931,7728920],[-10014666,7761685],[-10067162,7799667],[-10148250,7810880],[-10237970,7771378],[-10302109,7780500],[-10291803,7851347],[-10322483,7925351],[-10335829,7995815],[-10378420,8127897],[-10496188,8131381],[-10510877,8116669],[-10551519,8184953],[-10543535,8262947],[-10556763,8311379],[-10555634,8399738],[-11354588,8399738],[-11354588,7521239],[-11341630,7315813],[-11328789,7182367],[-11329018,7115455],[-11314270,6857878],[-11307562,6794439],[-11306772,6674869],[-11283620,6274875],[-10601147,6274865],[-10592434,6342777],[-10592348,6351795],[-10592321,6354982],[-10592483,6375310],[-10592368,6377778],[-10592405,6380081],[-10592432,6385081],[-10592400,6953563],[-10423692,7121979],[-10202186,7392686],[-10108060,7502954],[-9905931,7728920]]]},"properties":{"PRUID":"46","PRNAME":"Manitoba","PRENAME":"Manitoba","PRFNAME":"Manitoba","PREABBR":"Man.","PRFABBR":"Man."}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-11354588,8399738],[-12245144,8399738],[-12245776,7313058],[-12245703,6274810],[-11283620,6274875],[-11306772,6674869],[-11307562,6794439],[-11314270,6857878],[-11329018,7115455],[-11328789,7182367],[-11341630,7315813],[-11354588,7521239],[-11354588,8399738]]]},"properties":{"PRUID":"47","PRNAME":"Saskatchewan","PRENAME":"Saskatchewan","PRFNAME":"Saskatchewan","PREABBR":"Sask.","PRFABBR":"Sask."}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-12245703,6274810],[-12245776,7313058],[-12245144,8399738],[-13358339,8399738],[-13358337,7133545],[-13326436,7097498],[-13321481,7051328],[-13292225,7051377],[-13272925,7016691],[-13241169,7027317],[-13185602,6961807],[-13159386,6867367],[-13132003,6885505],[-13092426,6826251],[-13061565,6827046],[-13026547,6780506],[-12988989,6766230],[-12942896,6676658],[-12873969,6620855],[-12863064,6585475],[-12803266,6545732],[-12764602,6455103],[-12757039,6345157],[-12698029,6274666],[-12245703,6274810]]]},"properties":{"PRUID":"48","PRNAME":"Alberta","PRENAME":"Alberta","PRFNAME":"Alberta","PREABBR":"Alta.","PRFABBR":"Alb."}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-13780165,8399745],[-15479220,8399747],[-15440657,8378893],[-15429485,8345987],[-15317792,8232600],[-15300481,8160671],[-15231253,8215007],[-15204238,8216253],[-15161186,8319759],[-15081454,8355037],[-15031216,8303283],[-15023560,8241390],[-14970778,8209273],[-14945358,8149989],[-14899149,8122289],[-14847994,8058737],[-14824684,7999240],[-14756910,7864423],[-14699285,7769126],[-14707659,7732963],[-14592561,7639738],[-14558518,7632038],[-14483078,7582746],[-14471057,7538363],[-14486388,7511866],[-14465265,7417941],[-14510455,7302831],[-14525185,7240282],[-14480733,7191871],[-14479593,7149680],[-14397955,7054059],[-14373271,7116908],[-14343195,7032662],[-14316911,7013420],[-14297011,6948764],[-14264009,6929932],[-14277034,6874265],[-14237596,6840866],[-14159955,6879769],[-14154598,6857642],[-14205161,6822158],[-14236231,6779114],[-14218843,6714125],[-14225307,6656419],[-14182994,6608391],[-14139779,6589068],[-14116726,6613562],[-14079189,6588425],[-14040910,6530396],[-13944945,6526279],[-13874070,6497176],[-13896854,6455201],[-13847782,6405922],[-13818120,6408575],[-13792653,6356716],[-13752187,6340241],[-13703341,6280773],[-13665345,6275238],[-12698029,6274666],[-12757039,6345157],[-12764602,6455103],[-12803266,6545732],[-12863064,6585475],[-12873969,6620855],[-12942896,6676658],[-12988989,6766230],[-13026547,6780506],[-13061565,6827046],[-13092426,6826251],[-13132003,6885505],[-13159386,6867367],[-13185602,6961807],[-13241169,7027317],[-13272925,7016691],[-13292225,7051377],[-13321481,7051328],[-13326436,7097498],[-13358337,7133545],[-13358339,8399738],[-13780165,8399745]]],[[[-14296740,6583578],[-14282675,6552370],[-14212532,6472386],[-14153252,6421642],[-14099108,6421192],[-14089143,6343774],[-14034810,6349517],[-13998368,6286498],[-13883341,6206266],[-13764644,6159196],[-13732892,6192920],[-13759680,6233493],[-13783547,6297983],[-13891974,6354055],[-13899325,6394670],[-13935408,6431673],[-13979469,6510282],[-14091736,6529949],[-14151338,6548987],[-14233223,6595319],[-14296740,6583578]]],[[[-14814190,7204760],[-14819771,7131969],[-14793237,7069843],[-14755554,7014138],[-14694416,7028393],[-14678880,7133677],[-14661672,7165856],[-14729130,7191697],[-14757231,7180142],[-14814190,7204760]]],[[[-14757686,7000907],[-14699137,6924753],[-14649860,6894803],[-14699079,7014364],[-14757686,7000907]]],[[[-14369829,7037367],[-14382100,6973729],[-14367181,6934773],[-14315033,6914304],[-14307018,6972508],[-14319878,7012068],[-14369829,7037367]]],[[[-14496444,7152510],[-14494450,7117565],[-14425423,7022236],[-14408810,7061931],[-14452029,7115396],[-14496444,7152510]]]]},"properties":{"PRUID":"59","PRNAME":"British Columbia / Colombie-Britannique","PRENAME":"British Columbia","PRFNAME":"Colombie-Britannique","PREABBR":"B.C.","PRFABBR":"C.-B."}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-14720285,9744803],[-15696798,9744803],[-15696925,9632435],[-15695822,8468642],[-15642290,8448919],[-15581576,8440792],[-15549113,8474865],[-15479205,8478916],[-15493115,8418209],[-15479220,8399747],[-13780165,8399745],[-13817401,8445745],[-13870348,8554503],[-13863661,8611740],[-13888905,8616200],[-13944332,8572825],[-14007579,8598616],[-14097394,8564269],[-14116730,8570595],[-14149036,8731789],[-14189805,8738083],[-14254178,8795102],[-14287627,8862662],[-14374560,8882764],[-14390234,8920575],[-14383866,8979773],[-14409122,8997500],[-14443708,9071147],[-14442670,9115104],[-14486006,9165976],[-14447592,9210449],[-14482803,9287613],[-14557885,9343736],[-14577890,9378600],[-14590442,9442116],[-14633062,9449979],[-14678073,9487672],[-14698371,9528859],[-14759506,9564936],[-14731587,9624384],[-14780192,9656752],[-14724827,9729978],[-14720285,9744803]]]},"properties":{"PRUID":"60","PRNAME":"Yukon","PRENAME":"Yukon","PRFNAME":"Yukon","PREABBR":"Y.T.","PRFABBR":"Yn"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-12553626,9744803],[-14720285,9744803],[-14724827,9729978],[-14780192,9656752],[-14731587,9624384],[-14759506,9564936],[-14698371,9528859],[-14678073,9487672],[-14633062,9449979],[-14590442,9442116],[-14577890,9378600],[-14557885,9343736],[-14482803,9287613],[-14447592,9210449],[-14486006,9165976],[-14442670,9115104],[-14443708,9071147],[-14409122,8997500],[-14383866,8979773],[-14390234,8920575],[-14374560,8882764],[-14287627,8862662],[-14254178,8795102],[-14189805,8738083],[-14149036,8731789],[-14116730,8570595],[-14097394,8564269],[-14007579,8598616],[-13944332,8572825],[-13888905,8616200],[-13863661,8611740],[-13870348,8554503],[-13817401,8445745],[-13780165,8399745],[-13358339,8399738],[-12245144,8399738],[-11354588,8399738],[-11354588,9397935],[-11674632,9469094],[-11985183,9520432],[-12115779,9538164],[-12136595,9564114],[-12305080,9726795],[-12532726,9727128],[-12553626,9744803]]]},"properties":{"PRUID":"61","PRNAME":"Northwest Territories / Territoires du Nord-Ouest","PRENAME":"Northwest Territories","PRFNAME":"Territoires du Nord-Ouest","PREABBR":"N.W.T.","PRFABBR":"T.N.-O."}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[-10555634,8399738],[-10522692,8541190],[-10482895,8640782],[-10443498,8704133],[-10463311,8730062],[-10411320,8783466],[-10413996,8839938],[-10377732,8849942],[-10359193,8883009],[-10300998,8931081],[-10322433,8973079],[-10239262,8985890],[-10227488,9011639],[-10279487,9033699],[-10253771,9065967],[-10174262,9049903],[-10089661,9111076],[-10093790,9186402],[-10200337,9244303],[-10188990,9279255],[-10125044,9233791],[-10043259,9251397],[-9985511,9363810],[-9914793,9358474],[-9880636,9344902],[-9800922,9396613],[-9773977,9480193],[-9681480,9621440],[-9677731,9652595],[-9717306,9679684],[-9805494,9681926],[-9910960,9693712],[-9941370,9744803],[-12553626,9744803],[-12532726,9727128],[-12305080,9726795],[-12136595,9564114],[-12115779,9538164],[-11985183,9520432],[-11674632,9469094],[-11354588,9397935],[-11354588,8399738],[-10555634,8399738]]],[[[-9683236,9744803],[-9839360,9744803],[-9820128,9715091],[-9778775,9693756],[-9722886,9692921],[-9692966,9735982],[-9683236,9744803]]],[[[-8237642,9487406],[-8237642,9450166],[-8197897,9431368],[-8171273,9442761],[-8116144,9393200],[-8058284,9292042],[-8015003,9271265],[-7965490,9269359],[-7936105,9229915],[-7971421,9201407],[-8002187,9209210],[-7972769,9132704],[-7884917,9076431],[-7791576,9051412],[-7743257,9014944],[-7686181,8951188],[-7637191,8921240],[-7502553,8894851],[-7467178,8868974],[-7425058,8863112],[-7380496,8827874],[-7340752,8840329],[-7369798,8942527],[-7430287,9020440],[-7518569,9110420],[-7591265,9148627],[-7599416,9175818],[-7658361,9248424],[-7674385,9290378],[-7628777,9285566],[-7564636,9234538],[-7533787,9263359],[-7485709,9184780],[-7431591,9125828],[-7357695,9085812],[-7335552,9098074],[-7277013,9064845],[-7258607,9000300],[-7230336,9009258],[-7207779,9130070],[-7241744,9240864],[-7218608,9236280],[-7208503,9181238],[-7177361,9178206],[-7181535,9271097],[-7224033,9292224],[-7214664,9329647],[-7291087,9427778],[-7257321,9425670],[-7249732,9481765],[-7313307,9477635],[-7294832,9536419],[-7327216,9577767],[-7352827,9565239],[-7405009,9611903],[-7436819,9616310],[-7466563,9671778],[-7464562,9728567],[-7508676,9739453],[-7508237,9744803],[-8184686,9744803],[-8183492,9741392],[-8197210,9744803],[-8240275,9744803],[-8270683,9733858],[-8297986,9693935],[-8337455,9712034],[-8380564,9675120],[-8451242,9693855],[-8478023,9686782],[-8552407,9722009],[-8609504,9734506],[-8637463,9646716],[-8698335,9599031],[-8702113,9493849],[-8668238,9441895],[-8508062,9417894],[-8400483,9488802],[-8327814,9448898],[-8298007,9455950],[-8289604,9495458],[-8237642,9487406]]],[[[-7053769,9744803],[-7250532,9744803],[-7241719,9706494],[-7193093,9640726],[-7165593,9655025],[-7140142,9620906],[-7073405,9584434],[-7048767,9665194],[-7065818,9713469],[-7052686,9730388],[-7053769,9744803]]],[[[-8609738,17865473],[-8407509,17865473],[-8446613,17893872],[-8502301,17883960],[-8559253,17901972],[-8607123,17882742],[-8609738,17865473]]],[[[-8131153,17865473],[-7979321,17865473],[-7963324,17912429],[-8010698,17917909],[-8087686,17907340],[-8125535,17876923],[-8131153,17865473]]],[[[-7927366,17865473],[-7762630,17865473],[-7771967,17916389],[-7832699,17923187],[-7904261,17891784],[-7927366,17865473]]],[[[-9468347,9744803],[-9579841,9744803],[-9590938,9684328],[-9587699,9589140],[-9617445,9500247],[-9607244,9407580],[-9593731,9371603],[-9663607,9336190],[-9708092,9277811],[-9677956,9235442],[-9632188,9265275],[-9604967,9257652],[-9542116,9279533],[-9529743,9267811],[-9530747,9144532],[-9486211,9127276],[-9404807,9191338],[-9382834,9254561],[-9362536,9246828],[-9304653,9307232],[-9313506,9347899],[-9298481,9375705],[-9252789,9392848],[-9250370,9355359],[-9187853,9338706],[-9138823,9269833],[-9023251,9208358],[-8969573,9255374],[-8961293,9312710],[-8988279,9365192],[-9025461,9355269],[-9084066,9384720],[-9099627,9475239],[-9134153,9521463],[-9186683,9538344],[-9273285,9609735],[-9283397,9644887],[-9363860,9663185],[-9367868,9695478],[-9410999,9735736],[-9446650,9663101],[-9470189,9730951],[-9468347,9744803]]],[[[-9155825,9098370],[-9209007,9086349],[-9247418,9061886],[-9271115,9083566],[-9303157,9058373],[-9304269,9024104],[-9344005,8973070],[-9321247,8928175],[-9248017,8903422],[-9123488,9029986],[-9117521,9086778],[-9155825,9098370]]],[[[-8859485,8956772],[-8898590,8946840],[-8929032,8892018],[-8925617,8808253],[-8893301,8763889],[-8870254,8766906],[-8824261,8917866],[-8859485,8956772]]],[[[-9052667,7023286],[-9115945,7011019],[-9133629,6984649],[-8987654,6925511],[-8997380,6981748],[-9052667,7023286]]],[[[-8822881,7683877],[-8837989,7603242],[-8874051,7590052],[-8906868,7543224],[-8841307,7539687],[-8800410,7627429],[-8822881,7683877]]],[[[-8678001,9216814],[-8712090,9219437],[-8736093,9194555],[-8674542,9122456],[-8633409,9142928],[-8642923,9204256],[-8678001,9216814]]],[[[-7202903,8778639],[-7237216,8787172],[-7286379,8774828],[-7232278,8706913],[-7202777,8722957],[-7202903,8778639]]],[[[-7569091,8529494],[-7596212,8530777],[-7618232,8459185],[-7565115,8474165],[-7550207,8502067],[-7569091,8529494]]],[[[-7879432,9061545],[-7872576,8992342],[-7811066,8997197],[-7832487,9033630],[-7879432,9061545]]],[[[-8574649,9267777],[-8614087,9243528],[-8574541,9203498],[-8526738,9208847],[-8574649,9267777]]],[[[-7166084,8986110],[-7210997,8993582],[-7226195,8959335],[-7191780,8945332],[-7166084,8986110]]],[[[-8224080,17927436],[-8254637,17946470],[-8308838,17902363],[-8246526,17878976],[-8224080,17927436]]]]},"properties":{"PRUID":"62","PRNAME":"Nunavut","PRENAME":"Nunavut","PRFNAME":"Nunavut","PREABBR":"Nvt.","PRFABBR":"Nt"}}]}'),m=JSON.parse('{"$y":{"summary":{"Closed":14,"In Progress":26,"notOnMap":{"total":20,"status":{"Closed":4,"In Progress":16}},"updated":"Mar 19, 2021","companyName":"TransCanada Keystone Pipeline GP Ltd."},"projects":[{"Short Project Name":"Construction du pipeline Keystone XL","id":"Swift Current--Moose Jaw","Regdocs":609772,"Closed":2,"In Progress":20},{"Short Project Name":"Construction du pipeline Keystone XL","id":"Lethbridge--Medicine Hat","Regdocs":609772,"Closed":2,"In Progress":20},{"Short Project Name":"Construction du pipeline Keystone XL","id":"Camrose--Drumheller","Regdocs":609772,"Closed":2,"In Progress":20},{"Short Project Name":"Construction d’un terminal de réservoirs à Hardisty – partie III","id":"Camrose--Drumheller","Regdocs":819090,"Closed":1,"In Progress":6},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Yorkton--Melville","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Yorkton--Melville","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande d’exemption de certaines dispositions du RPT","id":"Yorkton--Melville","Regdocs":6608,"Closed":1,"In Progress":0},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Swift Current--Moose Jaw","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Swift Current--Moose Jaw","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Sud-ouest","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Sud-ouest","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande d’exemption de certaines dispositions du RPT","id":"Sud-ouest","Regdocs":6608,"Closed":1,"In Progress":0},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Regina--Moose Mountain","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Regina--Moose Mountain","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Lethbridge--Medicine Hat","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Centre sud","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Centre nord","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Centre nord","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande d’exemption de certaines dispositions du RPT","id":"Centre nord","Regdocs":6608,"Closed":1,"In Progress":0},{"Short Project Name":"Construction du raccordement du campus Est de Husky","id":"Camrose--Drumheller","Regdocs":2431103,"Closed":5,"In Progress":0},{"Short Project Name":"Demande de modification SO-T241-002-2012","id":"Camrose--Drumheller","Regdocs":6805,"Closed":3,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone","id":"Camrose--Drumheller","Regdocs":517783,"Closed":1,"In Progress":0},{"Short Project Name":"Demande d’autorisation de mise en service du pipeline Keystone XL","id":"Camrose--Drumheller","Regdocs":609772,"Closed":1,"In Progress":0}],"themes":[{"Theme(s)":"Protection de l’environnement","id":"Camrose--Drumheller","Closed":1,"In Progress":13},{"Theme(s)":"Protection de l’environnement","id":"Swift Current--Moose Jaw","Closed":1,"In Progress":12},{"Theme(s)":"Protection de l’environnement","id":"Lethbridge--Medicine Hat","Closed":1,"In Progress":12},{"Theme(s)":"Conditions normales","id":"Camrose--Drumheller","Closed":3,"In Progress":4},{"Theme(s)":"Socioéconomique","id":"Swift Current--Moose Jaw","Closed":0,"In Progress":3},{"Theme(s)":"Socioéconomique","id":"Lethbridge--Medicine Hat","Closed":0,"In Progress":3},{"Theme(s)":"Socioéconomique","id":"Camrose--Drumheller","Closed":0,"In Progress":3},{"Theme(s)":"Conditions normales","id":"Swift Current--Moose Jaw","Closed":1,"In Progress":2},{"Theme(s)":"Conditions normales","id":"Lethbridge--Medicine Hat","Closed":0,"In Progress":2},{"Theme(s)":"Conditions normales, Gestion de l’intégrité","id":"Camrose--Drumheller","Closed":1,"In Progress":2},{"Theme(s)":"Conditions normales, Protection de l’environnement","id":"Camrose--Drumheller","Closed":1,"In Progress":2},{"Theme(s)":"Disposition de temporisation","id":"Camrose--Drumheller","Closed":1,"In Progress":2},{"Theme(s)":"Conditions normales, Gestion de l’intégrité","id":"Swift Current--Moose Jaw","Closed":0,"In Progress":1},{"Theme(s)":"Conditions normales, Protection de l’environnement","id":"Swift Current--Moose Jaw","Closed":0,"In Progress":1},{"Theme(s)":"Disposition de temporisation","id":"Swift Current--Moose Jaw","Closed":0,"In Progress":1},{"Theme(s)":"Conditions normales, Gestion de l’intégrité","id":"Lethbridge--Medicine Hat","Closed":0,"In Progress":1},{"Theme(s)":"Conditions normales, Protection de l’environnement","id":"Lethbridge--Medicine Hat","Closed":0,"In Progress":1},{"Theme(s)":"Disposition de temporisation","id":"Lethbridge--Medicine Hat","Closed":0,"In Progress":1},{"Theme(s)":"Conditions normales","id":"Yorkton--Melville","Closed":1,"In Progress":0},{"Theme(s)":"Gestion de l’intégrité","id":"Yorkton--Melville","Closed":1,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Yorkton--Melville","Closed":3,"In Progress":0},{"Theme(s)":"Gestion de l’intégrité","id":"Swift Current--Moose Jaw","Closed":1,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Swift Current--Moose Jaw","Closed":3,"In Progress":0},{"Theme(s)":"Conditions normales","id":"Sud-ouest","Closed":1,"In Progress":0},{"Theme(s)":"Gestion de l’intégrité","id":"Sud-ouest","Closed":1,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Sud-ouest","Closed":3,"In Progress":0},{"Theme(s)":"Conditions normales","id":"Regina--Moose Mountain","Closed":1,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Regina--Moose Mountain","Closed":3,"In Progress":0},{"Theme(s)":"Gestion de l’intégrité","id":"Lethbridge--Medicine Hat","Closed":1,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Lethbridge--Medicine Hat","Closed":3,"In Progress":0},{"Theme(s)":"Conditions normales","id":"Centre sud","Closed":1,"In Progress":0},{"Theme(s)":"Conditions normales","id":"Centre nord","Closed":1,"In Progress":0},{"Theme(s)":"Gestion de l’intégrité","id":"Centre nord","Closed":1,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Centre nord","Closed":3,"In Progress":0},{"Theme(s)":"Gestion de la sécurité","id":"Camrose--Drumheller","Closed":1,"In Progress":0},{"Theme(s)":"Gestion de l’intégrité","id":"Camrose--Drumheller","Closed":2,"In Progress":0},{"Theme(s)":"Système de gestion, Administratif","id":"Camrose--Drumheller","Closed":3,"In Progress":0}]},"UA":"{\\"type\\": \\"FeatureCollection\\", \\"features\\": [{\\"id\\": \\"0\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 1.0, \\"ERNAME\\": \\"Centre sud\\", \\"Flat Province\\": \\"Manitoba\\", \\"In Progress\\": 0.0, \\"PRNAME\\": \\"Manitoba\\", \\"id\\": \\"Centre sud\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-10826282.0, 6365595.0], [-10879527.0, 6365685.0], [-10879520.0, 6380902.0], [-10955484.0, 6380906.0], [-10955454.0, 6365566.0], [-11031685.0, 6365815.0], [-11060745.0, 6365872.0], [-11060804.0, 6312656.0], [-11074312.0, 6274867.0], [-10826701.0, 6274863.0], [-10818919.0, 6320154.0], [-10826282.0, 6365595.0]]]}}, {\\"id\\": \\"1\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 5.0, \\"ERNAME\\": \\"Sud-ouest\\", \\"Flat Province\\": \\"Manitoba\\", \\"In Progress\\": 0.0, \\"PRNAME\\": \\"Manitoba\\", \\"id\\": \\"Sud-ouest\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-11066846.0, 6557721.0], [-11127477.0, 6558802.0], [-11140705.0, 6570570.0], [-11191109.0, 6573164.0], [-11191090.0, 6549869.0], [-11296178.0, 6549826.0], [-11293083.0, 6457375.0], [-11283620.0, 6274875.0], [-11074312.0, 6274867.0], [-11060804.0, 6312656.0], [-11060745.0, 6365872.0], [-11031685.0, 6365815.0], [-11032925.0, 6457284.0], [-11065237.0, 6488035.0], [-11066846.0, 6557721.0]]]}}, {\\"id\\": \\"2\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 5.0, \\"ERNAME\\": \\"Centre nord\\", \\"Flat Province\\": \\"Manitoba\\", \\"In Progress\\": 0.0, \\"PRNAME\\": \\"Manitoba\\", \\"id\\": \\"Centre nord\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-10980954.0, 6550138.0], [-11066846.0, 6557721.0], [-11065237.0, 6488035.0], [-11032925.0, 6457284.0], [-11031685.0, 6365815.0], [-10955454.0, 6365566.0], [-10955484.0, 6380906.0], [-10879520.0, 6380902.0], [-10879527.0, 6365685.0], [-10826282.0, 6365595.0], [-10822466.0, 6396830.0], [-10847427.0, 6432990.0], [-10879821.0, 6457333.0], [-10910427.0, 6458011.0], [-10910926.0, 6499608.0], [-10952318.0, 6478320.0], [-10974612.0, 6490249.0], [-10968592.0, 6520828.0], [-10980954.0, 6550138.0]]]}}, {\\"id\\": \\"3\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 4.0, \\"ERNAME\\": \\"Regina--Moose Mountain\\", \\"Flat Province\\": \\"Saskatchewan\\", \\"In Progress\\": 0.0, \\"PRNAME\\": \\"Saskatchewan\\", \\"id\\": \\"Regina--Moose Mountain\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-11666150.0, 6645962.0], [-11759352.0, 6638213.0], [-11756399.0, 6572841.0], [-11722573.0, 6545857.0], [-11720018.0, 6424150.0], [-11712087.0, 6274869.0], [-11283620.0, 6274875.0], [-11293083.0, 6457375.0], [-11491979.0, 6454475.0], [-11495949.0, 6642792.0], [-11542787.0, 6638101.0], [-11635024.0, 6638231.0], [-11666150.0, 6645962.0]]]}}, {\\"id\\": \\"4\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 6.0, \\"ERNAME\\": \\"Swift Current--Moose Jaw\\", \\"Flat Province\\": \\"Saskatchewan\\", \\"In Progress\\": 20.0, \\"PRNAME\\": \\"Saskatchewan\\", \\"id\\": \\"Swift Current--Moose Jaw\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-11759352.0, 6638213.0], [-11869957.0, 6638502.0], [-11896331.0, 6669373.0], [-11988078.0, 6669510.0], [-11988182.0, 6685001.0], [-12245544.0, 6684897.0], [-12245480.0, 6591943.0], [-12245703.0, 6274810.0], [-11712087.0, 6274869.0], [-11720018.0, 6424150.0], [-11722573.0, 6545857.0], [-11756399.0, 6572841.0], [-11759352.0, 6638213.0]]]}}, {\\"id\\": \\"5\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 5.0, \\"ERNAME\\": \\"Yorkton--Melville\\", \\"Flat Province\\": \\"Saskatchewan\\", \\"In Progress\\": 0.0, \\"PRNAME\\": \\"Saskatchewan\\", \\"id\\": \\"Yorkton--Melville\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-11314270.0, 6857881.0], [-11498348.0, 6857980.0], [-11498411.0, 6826224.0], [-11688872.0, 6826125.0], [-11684076.0, 6684917.0], [-11666150.0, 6645962.0], [-11635024.0, 6638231.0], [-11542787.0, 6638101.0], [-11495949.0, 6642792.0], [-11491979.0, 6454475.0], [-11293083.0, 6457375.0], [-11296178.0, 6549826.0], [-11306772.0, 6674869.0], [-11307562.0, 6794439.0], [-11314270.0, 6857881.0]]]}}, {\\"id\\": \\"6\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 5.0, \\"ERNAME\\": \\"Lethbridge--Medicine Hat\\", \\"Flat Province\\": \\"Alberta\\", \\"In Progress\\": 20.0, \\"PRNAME\\": \\"Alberta\\", \\"id\\": \\"Lethbridge--Medicine Hat\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-12245480.0, 6591943.0], [-12276553.0, 6568996.0], [-12399792.0, 6568952.0], [-12426718.0, 6595670.0], [-12447082.0, 6592682.0], [-12467784.0, 6638096.0], [-12494238.0, 6638306.0], [-12538513.0, 6607367.0], [-12508778.0, 6532131.0], [-12515984.0, 6500149.0], [-12558407.0, 6459623.0], [-12600043.0, 6457136.0], [-12641672.0, 6517857.0], [-12713580.0, 6515348.0], [-12713551.0, 6500069.0], [-12690361.0, 6479893.0], [-12690304.0, 6419041.0], [-12725811.0, 6411863.0], [-12725775.0, 6369018.0], [-12754275.0, 6369986.0], [-12757039.0, 6345157.0], [-12735186.0, 6311127.0], [-12709892.0, 6302658.0], [-12698029.0, 6274666.0], [-12245703.0, 6274810.0], [-12245480.0, 6591943.0]]]}}, {\\"id\\": \\"7\\", \\"type\\": \\"Feature\\", \\"properties\\": {\\"Closed\\": 13.0, \\"ERNAME\\": \\"Camrose--Drumheller\\", \\"Flat Province\\": \\"Alberta\\", \\"In Progress\\": 26.0, \\"PRNAME\\": \\"Alberta\\", \\"id\\": \\"Camrose--Drumheller\\"}, \\"geometry\\": {\\"type\\": \\"Polygon\\", \\"coordinates\\": [[[-12245784.0, 7149240.0], [-12274004.0, 7146485.0], [-12305291.0, 7127376.0], [-12391727.0, 7124708.0], [-12442323.0, 7155828.0], [-12464660.0, 7152631.0], [-12493653.0, 7181905.0], [-12514751.0, 7168566.0], [-12558374.0, 7179766.0], [-12561716.0, 7165962.0], [-12573606.0, 7149127.0], [-12576684.0, 7051163.0], [-12590073.0, 7005174.0], [-12588971.0, 6937946.0], [-12581127.0, 6883604.0], [-12588092.0, 6852918.0], [-12569405.0, 6794612.0], [-12632635.0, 6797066.0], [-12658529.0, 6781399.0], [-12652764.0, 6700413.0], [-12621450.0, 6700409.0], [-12621037.0, 6664189.0], [-12649550.0, 6643462.0], [-12646549.0, 6586161.0], [-12633696.0, 6545944.0], [-12641672.0, 6517857.0], [-12600043.0, 6457136.0], [-12558407.0, 6459623.0], [-12515984.0, 6500149.0], [-12508778.0, 6532131.0], [-12538513.0, 6607367.0], [-12494238.0, 6638306.0], [-12467784.0, 6638096.0], [-12447082.0, 6592682.0], [-12426718.0, 6595670.0], [-12399792.0, 6568952.0], [-12276553.0, 6568996.0], [-12245480.0, 6591943.0], [-12245544.0, 6684897.0], [-12245711.0, 6956849.0], [-12245784.0, 7149240.0]]]}}]}","hE":[{"Flat Province":"Alberta","id":"Camrose--Drumheller","Closed":13,"In Progress":26},{"Flat Province":"Alberta","id":"Lethbridge--Medicine Hat","Closed":5,"In Progress":20},{"Flat Province":"Manitoba","id":"Centre nord","Closed":5,"In Progress":0},{"Flat Province":"Manitoba","id":"Centre sud","Closed":1,"In Progress":0},{"Flat Province":"Manitoba","id":"Sud-ouest","Closed":5,"In Progress":0},{"Flat Province":"Saskatchewan","id":"Regina--Moose Mountain","Closed":4,"In Progress":0},{"Flat Province":"Saskatchewan","id":"Swift Current--Moose Jaw","Closed":6,"In Progress":20},{"Flat Province":"Saskatchewan","id":"Yorkton--Melville","Closed":5,"In Progress":0}]}');function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){b(o,r,i,a,s,"next",e)}function s(e){b(o,r,i,a,s,"throw",e)}a(void 0)}))}}var x=n(7757),C=n.n(x),E=(n(9720),n(2222),n(7327),n(3123),n(4916),n(3210),{mode:"production",zooms:{"NOVA Gas Transmission Ltd.":{"In Progress":[.22,-128e5,-7504281],Closed:[.3,-12001114,-7500840]},"TransCanada PipeLines Limited":{"In Progress":[.22,-101e5,-65e5],Closed:[.3,-101e5,-65e5]},"Enbridge Pipelines Inc.":{"In Progress":[.22,-101e5,-65e5],Closed:[.22,-101e5,-65e5]},"TransCanada Keystone Pipeline GP Ltd.":{"In Progress":[.22,-12e6,-7504281],Closed:[.22,-12e6,-7504281]},"Trans Mountain Pipeline ULC":{"In Progress":[.22,-132e5,-7504281],Closed:[.22,-132e5,-7504281]},"Alliance Pipeline Ltd.":{"In Progress":[.22,-121e5,-7504281],Closed:[.22,-121e5,-7504281]},"PKM Cochin ULC":{"In Progress":[.22,-121e5,-7504281],Closed:[.22,-121e5,-7504281]},"Westcoast Energy Inc.":{"In Progress":[.22,-132e5,-7504281],Closed:[.3,-132e5,-7504281]},"Southern Lights Pipeline":{"In Progress":[.22,-121e5,-7504281],Closed:[.22,-121e5,-7504281]},"Foothills Pipe Lines Ltd.":{"In Progress":[.22,-128e5,-7504281],Closed:[.3,-12001114,-7500840]},"Many Islands Pipe Lines (Canada) Limited":{"In Progress":[.22,-12e6,-7504281],Closed:[.22,-12e6,-7504281]},"Maritimes & Northeast Pipeline Management Ltd.":{"In Progress":[.18,-75e5,-2e6],Closed:[.18,-75e5,-2e6]},"Trans Quebec and Maritimes Pipeline Inc.":{"In Progress":[.25,-8e6,-3e6],Closed:[.25,-8e6,-3e6]},"Enbridge Bakken Pipeline Company Inc.":{"In Progress":[.22,-115e5,-7104281],Closed:[.22,-115e5,-7104281]},"Enbridge Pipelines (NW) Inc.":{"In Progress":[.3,-129e5,-782e4],Closed:[.3,-129e5,-782e4]},"Express Pipeline Ltd.":{"In Progress":[.22,-128e5,-7504281],Closed:[.22,-128e5,-7504281]},"Trans-Northern Pipelines Inc.":{"In Progress":[.2,-85e5,-6e6],Closed:[.2,-85e5,-6e6]},"Genesis Pipeline Canada Ltd.":{"In Progress":[.16,-92e5,-5e6],Closed:[.16,-92e5,-5e6]},"Montreal Pipe Line Limited":{"In Progress":[.25,-8e6,-3e6],Closed:[.25,-8e6,-3e6]},"Kingston Midstream Westspur Limited":{"In Progress":[.22,-115e5,-7504281],Closed:[.22,-115e5,-7504281]},"Plains Midstream Canada ULC":{"In Progress":[.3,-11e6,-7000840],Closed:[.3,-11e6,-7000840]}}});function w(){return(w=P(C().mark((function e(t,n,r,i,o){var a,s,c,u,d,h,m,v,g,b,P,x,w,S,I,R;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R=function(){if($.isEmptyObject(t)){var e=document.getElementById("conditions-dashboard"),l='<section class="alert alert-warning"><h3>'.concat(o.noConditions.header,"</h3>");l+="<p>".concat(o.noConditions.note(i.companyName),"</p></section>"),e.innerHTML=l}else{try{i.summary.systemName=o.companyToSystem[i.summary.companyName]}catch(e){console.log(e),i.summary.systemName=i.summary.companyName}i.colNames=o.colNames;var d=document.getElementById("conditions-map-title"),p=s(i);u(d,p,i.summary),c(i.summary),a(i);var h=b(E,i),y={name:"Canada",mapData:Highcharts.geojson(n),type:"map",color:"#F0F0F0",borderWidth:.5,borderColor:"black",zIndex:0,showInLegend:!1,enableMouseTracking:!1},x=m(r,t,p),C=I(x,y,"container-map",i,p,h);$("#conditions-nav-group button").on("click",(function(){$(".btn-conditions > .btn").removeClass("active"),$(this).addClass("active");var e=$(this).val();$("#selectedVal").text(e),p.column=e,"not-shown"!==e?(v(C),f(["no-location-info"],"hide"),f(["container-map"],"show")):(f(["no-location-info"],"show"),f(["container-map"],"hide")),u(d,p,i.summary);var n=m(r,t,p);C.update({plotOptions:{series:{point:{events:{click:function(){w(this,p,g(i,p))}}}}},series:[n,y],colorAxis:P(p)},!1),C.mapZoom(void 0,void 0,void 0),S(C),"Closed"==p.column?C.mapZoom(h.Closed[0],h.Closed[1],h.Closed[2]):C.mapZoom(h["In Progress"][0],h["In Progress"][1],h["In Progress"][2])}))}},x=function(e){var t=o.themeDefinitions,n=document.getElementById("conditions-definitions");n.classList.contains("profile-hide")&&n.classList.add("profile-show");for(var r=e.split(","),i="<h4>".concat(o.themeDefinitionsTitle,"</h4>"),a=0;a<r.length;a++){var s=r[a].trim();i+="<b>"+s+"</b>",i+="<p>"+t[s]+"</p>"}n.innerHTML=i,n.scrollIntoView(!1)},a=function(e){var t=document.getElementById("no-location-info"),n="<p><strong>".concat(o.noLocation.title,"</strong></p>");if(e.summary.notOnMap.total>0){n+="<p>".concat(o.noLocation.summary(e.summary.companyName),"</p>"),n+="<ul>";for(var r=0,i=Object.entries(e.summary.notOnMap.status);r<i.length;r++){var a=y(i[r],2),s=a[0],c=a[1];n+="<li>".concat(e.colNames[s]," ").concat(o.conditions,": ").concat(c,"</li>")}n+="</ul>"}else $("#no-location-btn").prop("disabled",!0);t.innerHTML=n},s=function(e){var t=$("#in-progress-btn"),n=$("#closed-btn"),r={column:"In Progress"};return $(document).ready((function(){e.summary["In Progress"]>0?(r.column="In Progress",t.click()):0==e.summary["In Progress"]&&(t.prop("disabled",!0),r.column="Closed",n.click())})),r},c=function(e){document.getElementById("in-progress-summary").innerText=e["In Progress"],document.getElementById("closed-summary").innerText=e.Closed,document.getElementById("no-location-summary").innerText=e.notOnMap.total},u=function(e,t,n){"not-shown"==t.column?e.innerText=o.title.noLocation(n.systemName):e.innerText=o.title.location(n.systemName,t.column)},d=function(e,t,n,r){var i="";return"projects"==n?(i='<table class="conditions-table">',i+='<caption style="text-align:left;">'.concat(o.table.projectsTitle(e.colNames[r.column]),"</caption>"),e.projects.map((function(e){if(e.id==t&&e.value>0)if(void 0!==e.Regdocs){var n="https://apps.cer-rec.gc.ca/REGDOCS/Item/View/".concat(e.Regdocs);i+="<tr><td><a href=".concat(n,' target="_blank">').concat(e["Short Project Name"],"</a></td><td>").concat(e.value,"</td></tr>")}else i+="<tr><td>".concat(e["Short Project Name"],"</td><td>").concat(e.value,"</td></tr>")})),i+="</table><i>".concat(o.table.regdocsDefinition,"</i>")):"themes"==n&&(i='<table class="conditions-table" id="themes-table">',i+='<caption style="text-align:left;">'.concat(o.table.themesTitle(e.colNames[r.column]),"</caption>"),e.themes.map((function(e){e.id==t&&e.value>0&&(i+="<tr><td>".concat(e["Theme(s)"],"</td><td>").concat(e.value,"</td></tr>"))})),i+="</table>"),i},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"map",r=function(e){if("map"==e){function n(e){return{"Flat Province":e["Flat Province"],id:e.id,value:e[t.column]}}return n}if("projects"==e){function n(e){return{"Short Project Name":e["Short Project Name"],id:e.id,Regdocs:e.Regdocs,value:e[t.column]}}return n}if("themes"==e){function n(e){return{"Theme(s)":e["Theme(s)"],id:e.id,value:e[t.column]}}return n}},i=r(n),o=[];return e.filter((function(e){null!==e[t.column]&&o.push(i(e))})),o},m=function(e,t,n){return{name:"Conditions",data:h(e,n),mapData:Highcharts.geojson(t),joinBy:["id","id"],type:"map",zIndex:1}},v=function(e){if(document.getElementById("conditions-definitions").innerHTML="",e.customTooltip){var t=document.getElementById("conditions-insert");t&&(t.innerHTML=""),e.customTooltip.destroy(),e.customTooltip=void 0}var n=document.getElementById("conditions-definitions");n.classList.contains("profile-show")&&n.classList.remove("profile-show")},g=function(e,t){var n={summary:e.summary};return n.projects=h(e.projects,t,"projects"),n.themes=h(e.themes,t,"themes"),n.colNames=e.colNames,"Closed"==t.column&&(n.projects=p(n.projects,"value"),n.themes=p(n.themes,"value")),n},b=function(e,t){var n=e.zooms[t.summary.companyName];return null==n?{"In Progress":[void 0,void 0,void 0],Closed:[void 0,void 0,void 0]}:n},P=function(e){return"In Progress"==e.column?{min:1,minColor:"#EEEEFF",maxColor:"#000022",stops:[[0,"#EFEFFF"],[.67,"#4444FF"],[1,"#000022"]]}:{min:1,minColor:"#DDEBDC",maxColor:"#052204",stops:[[0,"#DDEBDC"],[.2,"#569E54"],[.4,"#348B32"],[.6,"#10660D"],[.8,"#0A4409"],[1,"#052204"]]}},w=function(e,t,n){var r=document.getElementById("conditions-insert");r&&(r.innerHTML="");var i='<div id="conditions-insert"><p style="font-size:15px; text-align:center;"><b>'.concat(e.id," ").concat(o.popUp.econRegion,"</b></p>");i+='<table><caption style="text-align:left">'.concat(o.popUp.summary,"</caption>"),i+="<tr><td><li>".concat(o.popUp.lastUpdated,'</td><td style="padding:0;font-weight: bold;color:').concat(l,';">').concat(n.summary.updated,"</li></td></tr>"),i+="<tr><td><li> ".concat(n.colNames[t.column],' Conditions:</td><td style="padding:0;font-weight: bold;color:').concat(l,';">&nbsp').concat(e.value,"</li></td></tr></table><br>"),i+=d(n,e.id,"projects",t)+"<br>",i+=d(n,e.id,"themes",t)+"</table></div>";var a=e.series.chart;a.customTooltip&&v(a);var s=a.renderer.label(i,null,null,null,null,null,!0).css({width:"300px"}).attr({"stroke-width":3,zIndex:8,padding:8,r:3,fill:"white",stroke:e.color}).add(a.rGroup);a.customTooltip=s,s.align(Highcharts.extend(s.getBBox(),{align:"right",x:0,verticalAlign:"top",y:0}),null,"spacingBox"),$("#themes-table tr").click((function(){x($(this).children("td").first().text())}))},S=function(e){var t=[];e.series[0].points.map((function(e){null!=e.value&&0!=e.value||t.push(e)})),t.map((function(e){e.remove(!1)}))},I=function(e,t,n,r,i,a){return new Highcharts.mapChart(n,{chart:{panning:!1,animation:!1,events:{load:function(){var e=this;S(e),e.mapZoom(a["In Progress"][0],a["In Progress"][1],a["In Progress"][2]);var t='<section class="alert alert-warning" style="padding:3px">';t+="<h4>".concat(o.instructions.header,"</h4>"),t+="<ol><li>".concat(o.instructions.line1,"</li>"),t+="<li>".concat(o.instructions.line2,"</li></ol>"),t+="".concat(o.instructions.disclaimer),t+="</section>";var n=e.renderer.label(t,null,null,null,null,null,!0).css({width:"290px",margin:0}).attr({zIndex:8,padding:0,r:3}).add(e.rGroup);n.align(Highcharts.extend(n.getBBox(),{align:"left",x:-5,verticalAlign:"bottom",y:0}),null,"spacingBox")},click:function(){this.customTooltip&&(this.mouseDownX>this.chartWidth-this.customTooltip.width&&this.mouseDownY<this.customTooltip.height||v(this))}}},plotOptions:{series:{point:{events:{click:function(){w(this,i,g(r,i))}}}}},tooltip:{zIndex:0,useHTML:!1,formatter:function(){return"<b>".concat(this.point.properties.id," - ").concat(this.point.properties["Flat Province"],"</b><br>")+o.tooltip.text}},colorAxis:P(i),series:[e,t]})},e.abrupt("return",R());case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var S=JSON.parse('{"$":{"companyName":"TransCanada Keystone Pipeline GP Ltd.","seriousEvents":{"Adverse Environmental Effects":0,"Fatality":0,"Serious Injury (CER or TSB)":2},"release":5,"nonRelease":27,"mostCommonWhat":"interférences extérieures","mostCommonWhy":"entretien","mostCommonSubstance":"pétrole brut non sulfureux"},"U":[{"Incident Number":"INC2013-104","Province":"Alberta","Status":"Fermé","Latitude":52.653959,"Longitude":-111.268469,"Approximate Volume Released":1.59,"Substance":"Pétrole brut non sulfureux","Year":2013,"What Happened":"Erreur d’exploitation, Interférences extérieures","Why It Happened":"Facteurs humains, Supervision insuffisante"},{"Incident Number":"INC2015-028","Province":"Alberta","Status":"Fermé","Latitude":52.65396,"Longitude":-111.26847,"Approximate Volume Released":2.3,"Substance":"Pétrole brut non sulfureux","Year":2015,"What Happened":"Défaillance d’équipement, Erreur d’exploitation, Interférences extérieures","Why It Happened":"Facteurs humains, Ingénierie et planification, Outils et équipement, Problème de communication, Supervision insuffisante"},{"Incident Number":"INC2019-098","Province":"Manitoba","Status":"Soumis","Latitude":50.07461053,"Longitude":-100.00036153,"Approximate Volume Released":50,"Substance":"Pétrole brut non sulfureux","Year":2019,"What Happened":"Corrosion et fissuration, Défaillance d’équipement","Why It Happened":"Entretien, Ingénierie et planification, Normes et procédures"},{"Incident Number":"INC2019-124","Province":"Alberta","Status":"Fermé","Latitude":52.64186166,"Longitude":-111.26426221,"Approximate Volume Released":6,"Substance":"Pétrole brut non sulfureux","Year":2019,"What Happened":"Erreur d’exploitation","Why It Happened":"Entretien, Normes et procédures"},{"Incident Number":"INC2020-002","Province":"Saskatchewan","Status":"Fermé","Latitude":50.48066052,"Longitude":-105.86703804,"Approximate Volume Released":29,"Substance":"Pétrole brut non sulfureux","Year":2020,"What Happened":"Interférences extérieures","Why It Happened":"Entretien, Facteurs humains, Supervision insuffisante"}]}');function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?I(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(2419),n(6977),n(6699),n(2023),n(8674),n(1539),n(8309),n(189),n(8783),n(6992),n(3948),n(1038),n(9714);var B=n(8237),D=function(){function e(t){var n=t.eventType,r=t.field,i=void 0===r?void 0:r,o=t.filters,a=void 0===o?void 0:o,s=t.minRadius,c=void 0===s?void 0:s,u=t.leafletDiv,l=void 0===u?"map":u,d=t.initZoomTo,p=void 0===d?[55,-119]:d,f=t.lang,h=void 0===f?{}:f;k(this,e),j(this,"substanceState",{Propane:"gas","Natural Gas":"gas","Gaz Naturel":"gas","Fuel Gas":"liquid","Lube Oil":"liquid","Huile lubrifiante":"liquid","Crude Oil":"liquid","Pétrole brut non sulfureux":"liquid","Pétrole brut synthétique":"liquid","Pétrole brut sulfureux":"liquid","Diesel Fuel":"liquid",Gasoline:"liquid",Essence:"liquid","Natural Gas Liquids":"gas","Liquides de gaz naturel":"gas",Condensate:"liquid",Condensat:"liquid",Other:"other",Autre:"other"}),this.eventType=n,this.filters=a,this.minRadius=c,this.colors=h.EVENTCOLORS,this.field=i,this.initZoomTo=p,this.user={latitude:void 0,longitude:void 0},this.leafletDiv=l,this.lang=h,this.mapDisclaimer=void 0}var t,n;return F(e,[{key:"addBaseMap",value:function(){var e=L.map(this.leafletDiv,{zoomSnap:.5,zoomDelta:.5}).setView(this.initZoomTo,5);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}",{foo:"bar",attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(e),e.setMinZoom(4),this.map=e}},{key:"getState",value:function(e){var t=e.split("-")[0].trim();return this.substanceState[t]}},{key:"volumeText",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=d,a=35.3;if(n||r||i)if(n||!r||i)s=!n||r||i?"other":"gas";else var s="liquid";else s=this.getState(t);if("other"!==s){if("gas"==s)var c="".concat(Highcharts.numberFormat((e*a).toFixed(2),2,".")," cubic feet");else c="".concat(Highcharts.numberFormat((e*o).toFixed(2),2,".")," bbl");return"".concat(c," (").concat(Highcharts.numberFormat(e,2,".")," m3)")}return"".concat(Highcharts.numberFormat(e,2,".")," m3")}},{key:"addMapDisclaimer",value:function(){if(!this.mapDisclaimer){var e=L.control(),t=this.lang.volumeDisclaimer;e.onAdd=function(e){return this._div=L.DomUtil.create("div","map-disclaimer"),this._div.innerHTML='<div class="alert alert-warning" style="padding:3px; max-width:670px"><p>'.concat(t,"</p></div>"),this._div},e.addTo(this.map),this.mapDisclaimer=e}}},{key:"removeMapDisclaimer",value:function(){this.mapDisclaimer&&(this.mapDisclaimer.remove(),this.mapDisclaimer=void 0)}},{key:"toolTip",value:function(e,t){var n=function(e){if(e.includes(",")){for(var t=e.split(","),n="",r=0;r<t.length;r++)n+="&nbsp- "+t[r]+"<br>";return n}return"&nbsp"+e},r='<div id="incident-tooltip"><p style="font-size:15px; font-family:Arial; text-align:center"><b>'.concat(e["Incident Number"],"</b></p>");return r+="<table>",r+="<tr><td>".concat(this.field,':</td><td style="color:').concat(t,'">&nbsp<b>').concat(e[this.field],"</b></td></tr>"),r+="<tr><td>".concat(this.lang.estRelease,"</td><td>&nbsp<b>").concat(this.volumeText(e["Approximate Volume Released"],e.Substance),"</b></td></tr>"),r+="<tr><td>".concat(this.lang.what,"?</td><td><b>").concat(n(e["What Happened"]),"</b></td></tr>"),(r+="<tr><td>".concat(this.lang.why,"?</td><td><b>").concat(n(e["Why It Happened"]),"</b></td></tr>"))+"</table></div>"}},{key:"addCircle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return L.circle([e,t],{color:n,fillColor:r,fillOpacity:.7,radius:this.minRadius,volRadius:i,weight:1,incidentParams:o})}},{key:"updateRadius",value:function(){if("volume"==this.filters.type)this.circles.eachLayer((function(e){try{e.setRadius(e.options.volRadius)}catch(t){e.setRadius(0),console.log("Error setting new radius")}}));else{var e=this.map.getZoom(),t=this.minRadius;e>=9?this.circles.eachLayer((function(e){e.setRadius(t/4)})):e>=6.5?this.circles.eachLayer((function(e){e.setRadius(t/2)})):e<5?this.circles.eachLayer((function(e){e.setRadius(2*t)})):(e>=5||e<=5.5)&&this.circles.eachLayer((function(e){e.setRadius(t)}))}}},{key:"applyColor",value:function(e,t){try{return this.colors[t][e]}catch(e){return}}},{key:"processEventsData",value:function(e){var t=this,n=[],o=[i,"#022034","#043454","#043a5e",r,"#1d5478","#366687","#507a96","#698da5","#82a0b4","#9bb3c3","#b4c6d2","#cdd9e1","#e6ecf0","#ffffff"],a=e.map((function(e){return e["Approximate Volume Released"]})),s=[Math.max.apply(Math,N(a)),Math.min.apply(Math,N(a))],c=s[0],u=s[1],d=c>500?15e4:1e5,p=e.map((function(e){n.push(e.Year);var r=(e["Approximate Volume Released"]-u)/(c-u);return r=Math.sqrt(r/Math.PI)*d+1e3,t.addCircle(e.Latitude,e.Longitude,l,t.applyColor(e[t.field],t.field),r,e)}));n=(n=n.filter((function(e,t,n){return n.indexOf(e)===t}))).sort((function(e,t){return t-e}));var f={};n.map((function(e,t){f[e]=o[t]})),this.colors.Year=f,this.circles=L.featureGroup(p).addTo(this.map);var h=this;this.map.on("zoom",(function(e){h.updateRadius()}))}},{key:"findUser",value:(n=P(C().mark((function e(){var t=this;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=t;t.map.locate({watch:!1}).on("locationfound",(function(t){var n=L.marker([t.latitude,t.longitude],{draggable:!0}).bindPopup(r.lang.userPopUp);n.on("drag",(function(e){var t=e.target.getLatLng();r.user.latitude=t.lat,r.user.longitude=t.lng})),n.id="userLocation",r.map.addLayer(n),r.user.latitude=t.latitude,r.user.longitude=t.longitude,r.user.layer=n,e(r)})).on("locationerror",(function(e){n(r)}))})));case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"waitOnUser",value:(t=P(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.findUser();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),document.getElementById("nearby-flag").innerHTML='<section class="alert alert-warning">'.concat(this.lang.locationError,"</section>");case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return t.apply(this,arguments)})},{key:"nearbyIncidents",value:function(e){var t=[],n=[],r=this;this.circles.eachLayer((function(i){n.push(i);var o=i._latlng;B(r.user,{latitude:o.lat,longitude:o.lng})>e?i.setStyle({fillOpacity:0}):(t.push(i),i.setStyle({fillOpacity:.7}))}));var i=document.getElementById("nearby-flag"),o=L.circle([this.user.latitude,this.user.longitude],{color:void 0,fillColor:void 0,fillOpacity:0,radius:1,weight:1});if(o.addTo(this.map),t.length>0){this.nearby=L.featureGroup(t);var a=this.nearby.getBounds();a.extend(o.getBounds()),this.map.fitBounds(a,{maxZoom:15});var s=0,c=0,u=0,l=this;this.nearby.eachLayer((function(e){var t=l.getState(e.options.incidentParams.Substance);"gas"==t?s+=e.options.incidentParams["Approximate Volume Released"]:"liquid"==t?c+=e.options.incidentParams["Approximate Volume Released"]:u+=e.options.incidentParams["Approximate Volume Released"]}));var d='<section class="alert alert-info"><h4>'.concat(this.lang.nearbyHeader(t.length,e),"</h4><table>");d+="<tr><td>\n        ".concat(this.lang.gasRelease,"&nbsp&nbsp</td><td>").concat(this.volumeText(s,void 0,!0)),d+="<tr><td>\n      ".concat(this.lang.liquidRelease,"&nbsp&nbsp</td><td>").concat(this.volumeText(c,void 0,!1,!0)),d+="<tr><td>\n      ".concat(this.lang.otherRelease,"&nbsp&nbsp</td><td>").concat(this.volumeText(u,void 0,!1,!0)),d+="</table><br><small>".concat(this.lang.exploreOther,"</small>\n        </section>"),i.innerHTML=d}else{var p=L.featureGroup(n).getBounds();p.extend(o.getBounds()),this.map.fitBounds(p,{maxZoom:15}),i.innerHTML='<section class="alert alert-warning">'.concat(this.lang.noNearby(this.eventType),"</section>")}}},{key:"reZoom",value:function(){var e=this.circles.getBounds();this.map.fitBounds(e)}},{key:"resetMap",value:function(){this.circles.eachLayer((function(e){e.setStyle({fillOpacity:.7})})),this.reZoom()}},{key:"fieldChange",value:function(e){var t=this.colors[e];this.field=e;var n=this;this.circles.eachLayer((function(r){var i=t[r.options.incidentParams[e]];r.setStyle({fillColor:i}),r.bindTooltip(n.toolTip(r.options.incidentParams,i))}))}},{key:"lookForSize",value:function(){var e=this,t=!1;$(window).on("resize",(function(){t=!0})),$(".tab > .tablinks").on("click",(function(n){t?(e.map.invalidateSize(!0),t=!1):e.map.invalidateSize(!1),e.reZoom()}))}}]),e}(),q=function(){function e(t){var n=t.plot,r=t.langPillTitles,i=t.height,o=void 0===i?125:i,a=t.data,s=void 0!==a&&a;k(this,e),j(this,"greyScale",["#101010","#181818","#202020","#282828","#303030","#383838","#404040","#484848","#505050","#585858","#606060","#686868","#696969","#707070","#787878","#808080","#888888","#909090","#989898","#A0A0A0","#A8A8A8","#A9A9A9","#B0B0B0","#B8B8B8","#BEBEBE","#C0C0C0","#C8C8C8","#D0D0D0","#D3D3D3","#D8D8D8","#DCDCDC","#E0E0E0","#E8E8E8","#F0F0F0","#F5F5F5","#F8F8F8"]),this.plot=n,this.langPillTitles=r,this.currentActive=void 0,this.barList=[],this.bars={},this.barSeries={},this.barColors=n.colors,this.allDivs=[],this.height=o,this.data=s}return F(e,[{key:"seriesify",value:function(e,t,n,r){for(var i=function(e){return e?function(e,t,n,r,i){return{name:e,data:[{name:n,y:t[r]}],color:i[n][e],filter:r}}:function(e,t,n,r,i){return{name:e,data:[{name:n,y:t[r]}],filter:r}}}(n),o=[],a=0,s=Object.entries(t[e]);a<s.length;a++){var c=y(s[a],2),u=c[0],l=c[1];o.push(i(u,l,e,r,n))}return o}},{key:"pillName",value:function(e){return this.langPillTitles.titles.hasOwnProperty(e)?this.langPillTitles.titles[e]:"".concat(e)}},{key:"createBar",value:function(e,t,n,r){return new Highcharts.chart(e,{chart:{y:-30,type:"bar",spacingRight:8,spacingLeft:2,spacingTop:8,spacingBottom:5,animation:!1},title:{text:this.pillName(t),style:{fontSize:"16px"},padding:-5,margin:0},xAxis:{visible:!1,categories:!0,gridLineWidth:0},yAxis:{maxPadding:0,visible:!0,plotLines:[{color:"white",value:0,width:1,zIndex:5}],labels:{enabled:!1},gridLineWidth:0,startOnTick:!1,endOnTick:!1,min:0,title:{text:""}},tooltip:{snap:0,useHTML:!0,formatter:function(){return"frequency"==this.series.options.filter?"".concat(this.series.name," - ").concat(this.y):"volume"==this.series.options.filter?"".concat(this.series.name," - <b>").concat(Highcharts.numberFormat(this.y,0,".")," m3</b>"):void 0}},legend:{layout:"horizontal",verticalAlign:"bottom",alignColumns:!1,margin:0,symbolPadding:2,itemStyle:{color:"#000000",cursor:"default",fontSize:"13px"},itemHoverStyle:{color:"#000000",cursor:"default"},navigation:{enabled:!1}},plotOptions:{bar:{pointWidth:30},series:{animation:!1,stacking:"normal",grouping:!1,shadow:!1,states:{inactive:{enabled:!1},hover:{enabled:!1}},events:{legendItemClick:function(){return!1}}}},series:this.seriesify(t,n,r,"frequency")})}},{key:"prepareData",value:function(e){var t={};this.data.map((function(n){t=function(e,t,n){return e.hasOwnProperty(t[n])?(e[t[n]].frequency+=1,e[t[n]].volume+=t["Approximate Volume Released"]):e[t[n]]={frequency:1,volume:t["Approximate Volume Released"]},e}(t,n,e)})),this.barSeries[e]=t}},{key:"deactivateChart",value:function(e){var t,n,r=e.chart,i=document.getElementById(e.div),o=this.langPillTitles.click;if(r){var a=Math.floor(this.greyScale.length/r.series.length);if(r.series.length>1)var s=(t=this.greyScale,n=a,t.filter((function(e,t){return t%n==n-1}))).reverse();else s=[this.greyScale[0]];r.series.map((function(e,t){r.series[t].options.color=s[t],r.series[t].update(r.series[t].options)})),r.update({title:{text:"".concat(r.title.textStr," (").concat(o,")")},plotOptions:{series:{borderWidth:1,borderColor:"#303030",states:{hover:{enabled:!1}}}},tooltip:{enabled:!1}})}else i.innerHTML="<p>".concat(this.pillName(e.name)," (").concat(this.langPillTitles.click,")</p>"),i.style.padding="5px";i.style.borderStyle="solid",i.style.borderColor=u,i.style.borderRadius="5px",i.style.opacity=.4}},{key:"activateChart",value:function(e){var t=e.chart,n=document.getElementById(e.div);if(t){var r=this.barColors[e.name];t.series.map((function(e,n){t.series[n].options.color=r[e.name],t.series[n].update(t.series[n].options)}));var i=t.title.textStr;i.includes("(")&&(i=i.split("(")[0]),t.update({chart:{backgroundColor:"white"},title:{text:i},plotOptions:{series:{borderWidth:1,borderColor:"#303030",states:{hover:{enabled:!0}}}},tooltip:{enabled:!0}})}else n.innerHTML="<p>".concat(this.pillName(e.name),"</p>"),n.style.backgroundColor="white",n.style.padding="5px";this.currentActive=e,n.style.borderStyle="solid",n.style.borderColor=l,n.style.borderRadius="5px",n.style.opacity=1,this.plot.fieldChange(e.name)}},{key:"barEvents",value:function(e){var t=document.getElementById(e.div),n=this;t.addEventListener("mouseover",(function(){"activated"!==e.status&&(t.style.opacity=1,e.chart?e.chart.update({chart:{backgroundColor:"#F0F8FF"}}):t.style.backgroundColor="#F0F8FF")})),t.addEventListener("mouseout",(function(){"activated"!==e.status&&(t.style.opacity=.4,e.chart?e.chart.update({chart:{backgroundColor:"white"}}):t.style.backgroundColor="white")})),t.addEventListener("click",(function(){n.deactivateChart(n.currentActive),n.currentActive.status="deactivated",e.status="activated",n.activateChart(e)}))}},{key:"makeBar",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];document.getElementById(t).style.height="".concat(this.height,"px"),this.data&&this.prepareData(e);var i={chart:!!r&&this.createBar(t,e,this.barSeries,this.barColors),status:n,div:t,name:e};this.allDivs.push(t),this.barList.push(i),this.bars[e]=i,"activated"==n?this.activateChart(i):(n="deactivated")&&this.deactivateChart(i)}},{key:"divEvents",value:function(){var e=this;this.barList.map((function(t){e.barEvents(t)}))}},{key:"switchY",value:function(e){var t=this;this.barList.map((function(n){var r=t.seriesify(n.name,t.barSeries,void 0,e);n.chart.update({series:r})}))}}]),e}(),H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=M(t);if(n){var i=M(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return A(this,e)});function i(e){var t,n=e.eventType,o=e.field,a=e.filters,s=e.data,c=e.hcDiv,u=e.lang,l=e.definitions,d=void 0===l?{}:l;return k(this,i),j(I(t=r.call(this,{eventType:n,field:o})),"ONETOMANY",{Substance:!1,Status:!1,Province:!1,"What Happened":!0,"Why It Happened":!0,category:!0}),t.filters=a,t.data=s,t.hcDiv=c,t.lang=u,t.colors=u.EVENTCOLORS,t.definitions=d,t.displayDefinitions(),t}return F(i,[{key:"processEventsData",value:function(e,t){var n=y((this.ONETOMANY[t]?function(e){var n={},r=new Set;return e.map((function(e){if(r.add(e.Year),e[t].includes(","))i=(i=e[t].split(",")).map((function(e){return e.trim()}));else var i=[e[t]];i.map((function(t){n.hasOwnProperty(t)?n[t].hasOwnProperty(e.Year)?n[t][e.Year]++:n[t][e.Year]=1:n[t]=j({},e.Year,1)}))})),[n,Array.from(r)]}:function(e){var n={},r=new Set;return e.map((function(e){r.add(e.Year),n.hasOwnProperty(e[t])?n[e[t]].hasOwnProperty(e.Year)?n[e[t]][e.Year]++:n[e[t]][e.Year]=1:n[e[t]]=j({},e.Year,1)})),[n,Array.from(r)]})(e),2),r=n[0],i=n[1],o=[],a={};a.data=i.map((function(e){return{name:e.toString(),y:void 0}})),a.name="dummy",a.showInLegend=!1,o.push(a);for(var s=0,c=Object.entries(r);s<c.length;s++){for(var u=y(c[s],2),l=u[0],d=u[1],p=[],f=0,h=Object.entries(d);f<h.length;f++){var m=y(h[f],2),v=m[0],g=m[1];p.push({name:v,y:g})}o.push({name:l,data:p,color:this.applyColor(l,t)})}return o}},{key:"yAxisTitle",value:function(){return"frequency"==this.filters.type?"".concat(this.lang.trendYTitle):""}},{key:"pillNameSubstitution",value:function(){return this.lang.pillTitles.titles.hasOwnProperty(this.field)?this.lang.pillTitles.titles[this.field]:this.field}},{key:"oneToManyDisclaimer",value:function(){var e=function(e){e.customLabel&&e.customLabel.destroy(),e.customLabel=void 0};if(this.ONETOMANY[this.field]){e(this.chart);var t='<section class="alert alert-warning" style="padding:4px">';t+="".concat(this.lang.countDisclaimer(this.eventType,this.pillNameSubstitution()),"</section>");var n=this.chart.renderer.label(t,null,null,null,null,null,!0).attr({padding:0}).css({"max-width":"700px",margin:0}).add(this.chart.rGroup);n.align(Highcharts.extend(n.getBBox(),{align:"left",x:50,verticalAlign:"top",y:-27}),null,"spacingBox"),this.chart.customLabel=n}else e(this.chart)}},{key:"displayDefinitions",value:function(){var e=document.getElementById("trend-definitions");this.definitions.hasOwnProperty(this.field)?(f(["trend-definitions"],"show"),e.innerHTML=this.lang.barClick(this.pillNameSubstitution()),this.onClickDefinition=!0):(f(["trend-definitions"],"hide"),this.onClickDefinition=!1)}},{key:"createChart",value:function(){var e=this;this.chart=new Highcharts.chart(this.hcDiv,{chart:{type:"column",animation:!1,spacingTop:25},xAxis:{categories:!0},legend:{title:{text:e.lang.legendClick},margin:0,maxHeight:120},yAxis:{title:{text:e.yAxisTitle()},stackLabels:{enabled:!0}},plotOptions:{series:{animation:!1,events:{click:function(){if(e.onClickDefinition){var t=document.getElementById("trend-definitions"),n=e.colors[e.field][this.name],r='<strong style="color:'.concat(n,'">').concat(this.name,":</strong>&nbsp");t.innerHTML=r+e.definitions[e.field][this.name]}}}}},series:this.processEventsData(this.data,this.field)})}},{key:"fieldChange",value:function(e){var t=this;if(e!==this.field){this.field=e;for(var n=this.processEventsData(this.data,e);this.chart.series.length;)this.chart.series[0].remove();n.map((function(e){t.chart.addSeries(e,!1)})),this.oneToManyDisclaimer(),this.displayDefinitions(),this.chart.redraw()}}},{key:"updateRadius",value:function(){var e=this.processEventsData(this.data,this.field);this.chart.update({series:e,yAxis:{title:{text:this.yAxisTitle()}}})}}]),i}(D);function _(){return(_=P(C().mark((function e(t,n,r){var i,o,a,s,c,u,l,d;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(){if(0==!t.length)try{try{n.systemName=r.companyToSystem[n.companyName]}catch(e){n.systemName=n.companyName}r.dynamicText("system-incidents-paragraph",n),s(r,n);var e=u(o,a,r.dashboard),i=c(t,e,r.dashboard.pillTitles),d=l(o,a,r);$("#inline_content input[name='type']").click((function(){var t=$("input:radio[name=type]:checked").val();e.filters.type=t,d.filters.type=t,i.switchY(t),e.updateRadius(),"frequency"!==t?e.addMapDisclaimer():e.removeMapDisclaimer()})),1==t.length&&$("#incident-volume-btn").attr("disabled","disabled"),$("#incident-view-type button").on("click",(function(){$(".btn-incident-view-type > .btn").removeClass("active"),$(this).addClass("active");var t=$(this).val(),n=["incident-map","nearby-incidents-popup"].concat(i.allDivs);"trends"!==t?(f(n,"show"),f(["time-series-section"],"hide"),$("#incident-volume-btn").removeAttr("disabled"),e.map.invalidateSize(!0)):($("#incident-volume-btn").attr("disabled","disabled"),$("#incident-count-btn").prop("checked",!0).click(),f(n,"hide"),f(["time-series-section"],"show"))})),$("#incident-range-slide").on("change",(function(){var e=$(this),t=document.getElementById("find-incidents-btn"),n=document.getElementById("find-incidents-title");t.innerText="".concat(r.dashboard.findBtnTitle," ").concat(e.val(),"km"),n.innerText="".concat(r.dashboard.rangeTitle," (").concat(e.val(),"km):"),t.value=e.val()})),$("#find-incidents-btn").on("click",(function(){var t=document.getElementById("reset-incidents-btn");t.disabled=!1,t.className="btn btn-primary col-md-12 notice-me-btn";var n=document.getElementById("find-incidents-btn").value;e.user.latitude||e.user.longitude?e.nearbyIncidents(n):e.waitOnUser().then((function(t){e.nearbyIncidents(n)}))})),$("#reset-incidents-btn").on("click",(function(){e.resetMap();var t=document.getElementById("reset-incidents-btn");t.disabled=!0,t.className="btn btn-default col-md-12",document.getElementById("nearby-flag").innerHTML=""}))}catch(e){console.log(e)}else{var p=document.getElementById("incidents-dashboard"),h='<section class="alert alert-warning"><h3>'.concat(r.noIncidents.header,"</h3>");h+="<p>".concat(r.noIncidents.note(n.companyName),"</p></section>"),p.innerHTML=h}},i="incidents",o="Substance",a={type:"frequency"},s=function(e,t){try{document.getElementById("incidents-dashboard-title").innerHTML=e.title(t.systemName)}catch(e){document.getElementById("incidents-dashboard-title").innerText="Dashboard: Incidents with a product release"}},c=function(e,t,n){var r=new q({plot:t,langPillTitles:n,pillWidth:124,data:e});return r.makeBar("Substance","substance-bar","activated",!0),r.makeBar("Status","status-bar","deactivated",!0),r.makeBar("Year","year-bar","deactivated",!0),r.makeBar("Province","province-bar","deactivated",!0),r.divEvents(),r},u=function(e,n,r){var o=new D({eventType:i,field:e,filters:n,minRadius:14e3,leafletDiv:"incident-map",lang:r});return o.addBaseMap(),o.processEventsData(t),o.lookForSize(),o},l=function(e,n,r){var o=new H({eventType:i,field:e,filters:n,data:t,hcDiv:"time-series",lang:r.dashboard,definitions:r.definitions}),a=new q({plot:o,langPillTitles:r.dashboard.pillTitles,height:70});return a.makeBar("Substance","substance-trend","activated",!1),a.makeBar("Status","status-trend","deactivated",!1),a.makeBar("What Happened","what-trend","deactivated",!1),a.makeBar("Why It Happened","why-trend","deactivated",!1),a.makeBar("Province","province-trend","deactivated",!1),a.divEvents(),o.createChart(),o},e.abrupt("return",d());case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var G,z=function(e){return'<i class="bg-primary" style="font-style: normal"><strong>&nbsp'.concat(e,"&nbsp</strong></i>")},U=function(e,t){return"have"==t?1==e?"has":"have":"fatality"==t?1==e?"fatality":"fatalities":void 0},W=(j(G={"NOVA Gas Transmission Ltd.":"Réseau de NGTL","TransCanada PipeLines Limited":"Réseau de TC au Canada","Enbridge Pipelines Inc.":"Réseau d’Enbridge au Canada","Enbridge Pipelines (NW) Inc.":"Pipeline Norman Wells","Enbridge Bakken Pipeline Company Inc.":"Réseau Bakken d’Enbridge","Express Pipeline Ltd.":"Pipeline Express","Trans Mountain Pipeline ULC":"Pipeline Trans Mountain","Trans Quebec and Maritimes Pipeline Inc.":"Gazoduc TQM","Trans-Northern Pipelines Inc.":"Pipeline Trans-Nord","TransCanada Keystone Pipeline GP Ltd.":"Pipeline Keystone","Westcoast Energy Inc.":"Gazoduc BC d’Enbridge","Alliance Pipeline Ltd.":"Gazoduc Alliance","PKM Cochin ULC":"Pipeline Cochin","Foothills Pipe Lines Ltd.":"Réseau de Foothills","Southern Lights Pipeline":"Pipeline Southern Lights","Emera Brunswick Pipeline Company Ltd.":"Gazoduc Brunswick","Plains Midstream Canada ULC":"Plains Midstream Canada ULC","Genesis Pipeline Canada Ltd.":"Pipeline Genesis","Montreal Pipe Line Limited":"Pipeline Montréal"},"Trans-Northern Pipelines Inc.","Pipeline Trans-Nord"),j(G,"Kingston Midstream Westspur Limited","Pipeline Westspur"),j(G,"Many Islands Pipe Lines (Canada) Limited","Many Islands Pipe Lines (Canada) Limited"),j(G,"Vector Pipeline Limited Partnership","Gazoduc Vector"),j(G,"Maritimes & Northeast Pipeline Management Ltd.","Gazoduc M&NP"),G),Y={plains:"Plains Midstream Canada ULC comprend les pipelines Aurora, Milk River et Wascana",conditions:{companyToSystem:W,colNames:{"In Progress":"En cours",Closed:"Conforme"},conditions:"conditions",noLocation:{title:"Certaines conditions ne sont pas liées à un emplacement géographique.",summary:function(e){return"Aucun résumé de l’emplacement géographique de ".concat(e,":")}},title:{noLocation:function(e){return"Tableau de bord: ".concat(e," - aucun emplacement géographique")},location:function(e,t){return"Tableau de bord: ".concat(e," - ").concat(t," Conditions par région")}},table:{projectsTitle:function(e){return"Projets assortis de ".concat(e," conditions (cliquer pour ouvrir le dossier du projet dans REGDOCS*):")},themesTitle:function(e){return"".concat(e," Thèmes de condition (cliquer pour voir la définition du thème):")},regdocsDefinition:"*REGDOCS est une base de données sur les activités de réglementation et opérations réglementaires menées par la Régie."},popUp:{econRegion:"Région économique",summary:"Sommaire des conditions :",lastUpdated:"Dernière mise à jour le :"},instructions:{header:"Instructions liées à la carte :",line1:"Cliquer sur une région pour consulter les renseignements sur les conditions.",line2:"Cliquer sur la carte à l’extérieur des régions pour masquer l’information.",disclaimer:"Certaines conditions s’appliquent à plusieurs régions. Certaines conditions peuvent être comptées en double d’une région à l’autre, ce qui donne un nombre plus élevé de conditions que les totaux indiqués dans les boutons ci-dessus."},tooltip:{text:"Cliquer sur une région pour consulter le sommaire."},themeDefinitionsTitle:"Définitions du thème:",themeDefinitions:{"No theme specified":"La Régie n’a pas attribué de thème à certaines conditions.",Administratif:"Conditions permettant de faire le suivi des tâches organisationnelles.","Condition standard":"Une condition généralement imposée relativement à tous les projets approuvés.","Conditions normales":"Une condition généralement imposée relativement à tous les projets approuvés.","Disposition de temporisation":"Conditions visant à s’assurer que les projets sont entrepris dans un délai précis.","Exécution":"Conditions venant renforcer les exigences réglementaires prescrites.",Financier:"Conditions dont le respect nécessite la présentation de certains détails concernant tous les aspects des obligations financières d’une société.","Gestion de l’intégrité":"Conditions visant à s’assurer que les projets sont conçus, construits, exploités et entretenus de manière sécuritaire et efficace (utilisation de matériaux appropriés, détection de la corrosion, etc.).","Gestion de la sécurité":"Conditions visant à éliminer ou à réduire le risque pour le public, les travailleurs, l’environnement et les biens.","Gestion des situations d’urgence":"Conditions visant à s’assurer que les sociétés disposent d’un solide programme de prévention des incidents qui permet de gérer et d’atténuer certaines situations en cas d’urgence.","Prévention des dommages":"Conditions visant à tenir les sociétés responsables du déroulement sécuritaire des activités à proximité des pipelines et des installations.","Protection de l’environnement":"Conditions visant à s’assurer que la planification, la construction, l’exploitation ou la cessation d’exploitation des projets seront effectuées dans le respect de l’environnement.","Socioéconomique":"Conditions visant à répondre aux préoccupations des propriétaires fonciers, des résidents, des collectivités et des groupes autochtones susceptibles d’être touchés, etc.","Sûreté":"Conditions visant à s’assurer que les sociétés disposent du personnel voulu et des systèmes adéquats pour contrer les menaces à la sûreté, y répondre et les gérer","Système de gestion":"Conditions particulières imposées à une société afin de s’assurer qu’une démarche efficace est utilisée pour gérer et réduire le risque. Remarque : un système de gestion n’est pas propre à un projet."},noConditions:{header:"Aucune donnée disponible sur les conditions",note:function(e){return"Aucune donnée sur les conditions n’est disponible pour ".concat(e,". Si des données deviennent disponibles ou si des conditions sont imposées par la Commission, elles apparaîtront ici.")}}},incidents:{dynamicText:function(e,t){var n=document.getElementById(e),r="<p>";r+="FR ".concat(t.systemName," has reported a total of ").concat(z(t.release+t.nonRelease)," incidents since 2008. Of those incidents, ").concat(z(t.release)," have resulted in some volume of product being released, with ").concat(z(t.mostCommonSubstance)," being the most commonly released substance.         The dashboard below provides some more information about these product release incidents."),r+="</p>",r+="<p>Part of the CER's incident review classifies incidents based on the \n        circumstances that directly led to the incident (what happened), and the underlying reasons for the incident (why it happened). \n        On this pipeline system, the most common <i>what happened</i> is ".concat(z(t.mostCommonWhat)," and the most common <i>why it happened</i> is ").concat(z(t.mostCommonWhy),"."),r+=" Take a look at the <i>incident trends</i> section of the dashboard below for definitions and a breakdown of what and why.</p>",r+="<p>",r+="The dashboard below displays only the incidents that resulted in a release of product from the pipeline, however there are other         important incident types that may not appear on the dashboard.         Of ".concat(t.systemName,"'s reported incidents, ").concat(z(t.seriousEvents["Adverse Environmental Effects"])," ").concat(U(t.seriousEvents["Adverse Environmental Effects"],"have")," resulted in adverse environmental effects.        There have been ").concat(z(t.seriousEvents["Serious Injury (CER or TSB)"])," serious injuries, and ").concat(z(t.seriousEvents.Fatality)," ").concat(U(t.seriousEvents.Fatality,"fatality")," related to incident events. Open the dropdown below to view the definitions of these incident types."),r+="</p>",n.innerHTML=r},companyToSystem:W,title:function(e){return"Tableau de bord: ".concat(e," - Incidents entraînant un rejet de produit")},definitions:{Status:{"Fermé":"La Régie a terminé l’examen de l’incident et a clos le dossier.",Soumis:"La société a fourni tous les renseignements exigés et la Régie examine ce qui s’est produit.","Initialement soumis":"La société a informé la Régie qu’un incident était survenu et a fourni les renseignements préliminaires sur celui-ci. Une enquête est en cours."},"What Happened":{"Défectuosité et détérioration":" Défectuosité au niveau des matériaux ou des processus de fabrication et détérioration attribuable à des dommages, au dépassement de la durée de vie utile, à l’absence d’inspection ou à un manque d’entretien.","Corrosion et fissuration":"Corrosion externe ou fissuration du revêtement, en raison de dommages ou d’une défaillance, fissuration au niveau des soudures attribuable à des problèmes de contrainte ou de fabrication et corrosion interne due à la présence de contaminants dans les produits.","Défaillance d’équipement":"Défaillance d’une des composantes de l’équipement associées au pipeline comme, par exemple, les vannes, l’alimentation électrique ou les systèmes de contrôle.","Erreur d’exploitation":"En général, le personnel ne respecte pas les marches à suivre ou utilise l’équipement d’une manière non appropriée.","Interférences extérieures":"Activités extérieures à l’origine de dommages au pipeline ou à ses composantes comme, par exemple, des travaux d’excavation ou du vandalisme.","Forces de la nature":"Dommages pouvant être causés, par exemple, par un tremblement de terre, un glissement de terrain ou l’érosion.","Autres causes":"Toutes les autres causes ou lorsqu’il est impossible de déterminer les circonstances de l’incident.","À déterminer":"L’incident est à l’étude."},"Why It Happened":{"Ingénierie et planification":"Défaillances au niveau de l’évaluation, de la planification ou de la surveillance pouvant être en rapport avec le caractère non approprié des données techniques, des critères de conception, de l’évaluation de changements ou de la mise en œuvre de contrôles.",Entretien:"Entretien préventif inadéquat ou réparations mal effectuées ainsi qu’usure et détérioration excessives.","Approvisionnement inadéquat":"Problèmes au niveau des achats, de la manutention des matériaux, de leur transport ou de leur entreposage.","Outils et équipement":"Outils et équipement qui ne permettent pas d’accomplir la tâche voulue ou dont l’utilisation n’est pas appropriée.","Normes et procédures":"Élaboration, communication, mise à jour ou surveillance inadéquates des normes et procédures","Problème de communication":"Perte de contact avec des dispositifs automatisés, de l’équipement ou des personnes.","Supervision insuffisante":"Manque de surveillance d’un entrepreneur ou d’un employé pendant les travaux, qu’ils soient de construction ou d’entretien.","Facteurs humains":"Facteurs liés à la conduite ou aux capacités d’une personne, qui peuvent par ailleurs être physiques ou psychologiques.","Forces de la nature ou environnement":"Conditions relatives à l’environnement ou au milieu naturel.","À déterminer":"L’incident est à l’étude."}},dashboard:{what:"Incident",why:"Cause",estRelease:"Estimation du volume",pillTitles:{titles:{Status:"REC État",Year:"Année","What Happened":"Incident","Why It Happened":"Cause"},click:"clique pour voir"},volumeDisclaimer:"La taille de la bulle illustre l’estimation relative du volume du rejet en mètres cubes et n’indique pas la zone visée par le celui-ci.",countDisclaimer:function(e,t){return"<p>Les incidents peuvent avoir plusieurs valeurs <i>".concat(t,"</i>.<br>Les totaux des graphiques peuvent sembler plus élevés en raison d’une double comptabilisation.</p>")},userPopUp:"Emplacement approximatif. Vous pouvez faire glisser ce marqueur pour explorer les incidents survenus ailleurs.",locationError:"<h4>Impossible d’accéder à votre emplacement.</h4>Activez les services de localisation de votre navigateur et actualisez la page.",nearbyHeader:function(e,t){return"Il y a ".concat(e," incidents dans un rayon de ").concat(t," km")},gasRelease:"Estimation du volume de gaz rejeté:",liquidRelease:"Estimation du volume de liquide déversé:",otherRelease:"Estimation du rejet (divers):",exploreOther:"Vous voulez explorer d’autres régions? Vous pouvez cliquer et faire glisser le marqueur de l’emplacement, puis cliquer de nouveau sur le bouton pour rechercher un incident.",noNearby:function(e){return"<h4>Aucun ".concat(e," à proximité</h4>Essayez d’augmenter la portée de la recherche ou faites glisser le marqueur de l’emplacement pour voir les événements à proximité à un autre endroit.")},barClick:function(e){return"<p>Cliquer sur une bande pour consulter la définition de <i>".concat(e,"</i></p>")},legendClick:"Cliquez sur un élément de légende pour le supprimer du graphique",rangeTitle:"Sélectionner une plage",findBtnTitle:"Rechercher les incidents dans",trendYTitle:"Nombre d’incidents",EVENTCOLORS:{Substance:{Propane:a,"Gaz Naturel - non sulfureux":s,"Gaz naturel - sulfureux":u,"Huile lubrifiante":"#8085e9","Pétrole brut non sulfureux":i,"Pétrole brut synthétique":a,"Pétrole brut sulfureux":u,"Liquides de gaz naturel":r,Condensat:o,"Carburant diesel":"#f45b5b",Essence:s,Autre:c},Status:{"Initialement Soumis":s,"Fermé":l,Soumis:o},Province:{Alberta:i,"Colombie-Britannique":a,Saskatchewan:c,Manitoba:o,Ontario:r,"Québec":s,"Nouveau-Brunswick":a,"Nouvelle-Écosse":r,"Territoires du Nord-Ouest":"#91e8e1"},"Why It Happened":{"Normes et procédures":s,"Outils et équipement":a,Entretien:r,"Facteurs humains":o,"Ingénierie et planification":i,"Forces de la nature ou environnement":"#2b908f","To be determined":l,"Approvisionnement inadéquat":c,"Supervision insuffisante":u,"Problème de communication":"#f15c80"},"What Happened":{"Corrosion et fissuration":c,"Défectuosité et détérioration":l,"Défaillance d’équipement":u,"Forces de la nature":s,"Autres causes":a,"Erreur d’exploitation":r,"Interférences extérieures":o,"To be determined":i}}},noIncidents:{header:"Aucune donnée sur les incidents disponible",note:function(e){return"Il n’y a pas d’enregistrements dans les données sur les incidents de la Régie pour ".concat(e,". Si de nouveaux incidents sont signalés à la Régie pour ce pipeline, ils apparaîtront ici après la mise à jour trimestrielle des données.")}}}};function V(){return(V=P(C().mark((function e(t){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.allSettled(t));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Highcharts.profiles={chart:{animation:!0},plotOptions:{column:{stacking:"normal"}},xAxis:{title:{style:{fontSize:12,color:l,fontWeight:"bold",fontFamily:"Arial"}},labels:{style:{fontSize:12,color:l}}},yAxis:{title:{style:{fontSize:12,color:l,fontWeight:"bold",fontFamily:"Arial"}},labels:{formatter:function(){return Highcharts.numberFormat(this.value,0,".",",")},style:{fontSize:12,color:l}},stackLabels:{style:{fontWeight:"bold",color:Highcharts.theme&&Highcharts.theme.textColor||"grey"}}},legend:{itemStyle:{fontSize:"15px"}},credits:{text:""},title:{text:""}},Highcharts.setOptions(Highcharts.profiles),function(e){V.apply(this,arguments)}([function(e,t,n,r,i){return w.apply(this,arguments)}(JSON.parse(m.UA),h,m.hE,m.$y,Y.conditions),function(e,t,n){return _.apply(this,arguments)}(S.U,S.$,Y.incidents)])},3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,n){var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1530:function(e,t,n){"use strict";var r=n(8710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},5787:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:function(e,t,n){var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},8457:function(e,t,n){"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),s=n(7466),c=n(6135),u=n(1246);e.exports=function(e){var t,n,l,d,p,f,h=i(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=u(h),P=0;if(y&&(g=r(g,v>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(h.length));t>P;P++)f=y?g(h[P],P):h[P],c(n,P,f);else for(p=(d=b.call(h)).next,n=new m;!(l=p.call(d)).done;P++)f=y?o(d,g,[l.value,P],!0):l.value,c(n,P,f);return n.length=P,n}},1318:function(e,t,n){var r=n(5656),i=n(7466),o=n(1400),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:function(e,t,n){var r=n(9974),i=n(8361),o=n(7908),a=n(7466),s=n(5417),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,v,g){for(var y,b,P=o(h),x=i(P),C=r(m,v,3),E=a(x.length),w=0,S=g||s,I=t?S(h,E):n||p?S(h,0):void 0;E>w;w++)if((f||w in x)&&(b=C(y=x[w],w,P),e))if(t)I[w]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:c.call(I,y)}else switch(e){case 4:return!1;case 7:c.call(I,y)}return d?-1:u||l?l:I}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},1194:function(e,t,n){var r=n(7293),i=n(5112),o=n(7392),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},5417:function(e,t,n){var r=n(111),i=n(3157),o=n(5112)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},3411:function(e,t,n){var r=n(9670),i=n(9212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},7072:function(e,t,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,n){var r=n(1694),i=n(4326),o=n(5112)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},5631:function(e,t,n){"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),c=n(408),u=n(654),l=n(6340),d=n(9781),p=n(2423).fastKey,f=n(9909),h=f.set,m=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),f=m(t),v=function(e,t,n){var r,i,o=f(e),a=g(e,t);return a?a.value=n:(o.last=a={index:i=p(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var n,r=f(e),i=p(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=f(t),r=g(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=f(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return f(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},7710:function(e,t,n){"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),s=n(2423),c=n(408),u=n(5787),l=n(111),d=n(7293),p=n(7072),f=n(8003),h=n(9587);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),g=m?"set":"add",y=i[e],b=y&&y.prototype,P=y,x={},C=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(v||b.forEach&&!d((function(){(new y).entries().next()})))))P=n.getConstructor(t,e,m,g),s.REQUIRED=!0;else if(o(e,!0)){var E=new P,w=E[g](v?{}:-0,1)!=E,S=d((function(){E.has(1)})),I=p((function(e){new y(e)})),R=!v&&d((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));I||((P=t((function(t,n){u(t,P,e);var r=h(new y,t,P);return null!=n&&c(n,r[g],{that:r,AS_ENTRIES:m}),r}))).prototype=b,b.constructor=P),(S||R)&&(C("delete"),C("has"),m&&C("get")),(R||w)&&C(g),v&&b.clear&&delete b.clear}return x[e]=P,r({global:!0,forced:P!=y},x),f(P,e),v||n.setStrong(P,e,m),P}},9920:function(e,t,n){var r=n(6656),i=n(3887),o=n(1236),a=n(3070);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},4964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},8544:function(e,t,n){var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,n){"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=c,e}},8880:function(e,t,n){var r=n(9781),i=n(3070),o=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,n){"use strict";var r=n(7593),i=n(3070),o=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},654:function(e,t,n){"use strict";var r=n(2109),i=n(4994),o=n(9518),a=n(7674),s=n(8003),c=n(8880),u=n(1320),l=n(5112),d=n(1913),p=n(7497),f=n(3383),h=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,v=l("iterator"),g="keys",y="values",b="entries",P=function(){return this};e.exports=function(e,t,n,l,f,x,C){i(n,t,l);var E,w,S,I=function(e){if(e===f&&L)return L;if(!m&&e in A)return A[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",T=!1,A=e.prototype,M=A[v]||A["@@iterator"]||f&&A[f],L=!m&&M||I(f),N="Array"==t&&A.entries||M;if(N&&(E=o(N.call(new e)),h!==Object.prototype&&E.next&&(d||o(E)===h||(a?a(E,h):"function"!=typeof E[v]&&c(E,v,P)),s(E,R,!0,!0),d&&(p[R]=P))),f==y&&M&&M.name!==y&&(T=!0,L=function(){return M.call(this)}),d&&!C||A[v]===L||c(A,v,L),p[t]=L,f)if(w={values:I(y),keys:x?L:I(g),entries:I(b)},C)for(S in w)(m||T||!(S in A))&&u(A,S,w[S]);else r({target:t,proto:!0,forced:m||T},w);return w}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8324:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6833:function(e,t,n){var r=n(8113);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},5268:function(e,t,n){var r=n(4326),i=n(7854);e.exports="process"==r(i.process)},1036:function(e,t,n){var r=n(8113);e.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,o=n(7854),a=n(8113),s=o.process,c=s&&s.versions,u=c&&c.v8;u?i=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),c=n(9920),u=n(4705);e.exports=function(e,t){var n,l,d,p,f,h=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],d=e.noTargetGet?(f=i(n,l))&&f.value:n[l],!u(m?l:h+(v?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(n,l,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,n){"use strict";n(4916);var r=n(1320),i=n(7293),o=n(5112),a=n(2261),s=n(8880),c=o("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),d=o("replace"),p=!!/./[d]&&""===/./[d]("a","$0"),f=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var h=o(e),m=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=m&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!v||"replace"===e&&(!u||!l||p)||"split"===e&&!f){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?m&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],P=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return P.call(e,this,t)}:function(e){return P.call(e,this)})}d&&s(RegExp.prototype[h],"sham",!0)}},6677:function(e,t,n){var r=n(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:function(e,t,n){var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},7065:function(e,t,n){"use strict";var r=n(3099),i=n(111),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(a.prototype=t.prototype),a}},5005:function(e,t,n){var r=n(857),i=n(7854),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},1246:function(e,t,n){var r=n(648),i=n(7497),o=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),i=n(7293),o=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(7293),i=n(4326),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},9587:function(e,t,n){var r=n(111),i=n(7674);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},2788:function(e,t,n){var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},2423:function(e,t,n){var r=n(3501),i=n(111),o=n(6656),a=n(3070).f,s=n(9711),c=n(6677),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},p=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!d(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!d(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},onFreeze:function(e){return c&&f.REQUIRED&&d(e)&&!o(e,u)&&p(e),e}};r[u]=!0},9909:function(e,t,n){var r,i,o,a=n(8536),s=n(7854),c=n(111),u=n(8880),l=n(6656),d=n(5465),p=n(6200),f=n(3501),h=s.WeakMap;if(a){var m=d.state||(d.state=new h),v=m.get,g=m.has,y=m.set;r=function(e,t){return t.facade=e,y.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return g.call(m,e)}}else{var b=p("state");f[b]=!0,r=function(e,t){return t.facade=e,u(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:function(e,t,n){var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},4705:function(e,t,n){var r=n(7293),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},7850:function(e,t,n){var r=n(111),i=n(4326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},408:function(e,t,n){var r=n(9670),i=n(7659),o=n(7466),a=n(9974),s=n(1246),c=n(9212),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,d,p,f,h,m,v,g=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),x=a(t,g,1+y+P),C=function(e){return l&&c(l),new u(!0,e)},E=function(e){return y?(r(e),P?x(e[0],e[1],C):x(e[0],e[1])):P?x(e,C):x(e)};if(b)l=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,f=o(e.length);f>p;p++)if((h=E(e[p]))&&h instanceof u)return h;return new u(!1)}l=d.call(e)}for(m=l.next;!(v=m.call(l)).done;){try{h=E(v.value)}catch(e){throw c(l),e}if("object"==typeof h&&h&&h instanceof u)return h}return new u(!1)}},9212:function(e,t,n){var r=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},3383:function(e,t,n){"use strict";var r,i,o,a=n(7293),s=n(9518),c=n(8880),u=n(6656),l=n(5112),d=n(1913),p=l("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):f=!0);var h=null==r||a((function(){var e={};return r[p].call(e)!==e}));h&&(r={}),d&&!h||u(r,p)||c(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},7497:function(e){e.exports={}},5948:function(e,t,n){var r,i,o,a,s,c,u,l,d=n(7854),p=n(1236).f,f=n(261).set,h=n(6833),m=n(1036),v=n(5268),g=d.MutationObserver||d.WebKitMutationObserver,y=d.document,b=d.process,P=d.Promise,x=p(d,"queueMicrotask"),C=x&&x.value;C||(r=function(){var e,t;for(v&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},h||v||m||!g||!y?P&&P.resolve?(u=P.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=v?function(){b.nextTick(r)}:function(){f.call(d,r)}:(s=!0,c=y.createTextNode(""),new g(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=C||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3366:function(e,t,n){var r=n(7854);e.exports=r.Promise},133:function(e,t,n){var r=n(5268),i=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)}))},8536:function(e,t,n){var r=n(7854),i=n(2788),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},8523:function(e,t,n){"use strict";var r=n(3099),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},3929:function(e,t,n){var r=n(7850);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},30:function(e,t,n){var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),l=n(6200)("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},f=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete f.prototype[a[n]];return f()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[l]=e):n=f(),void 0===t?n:o(n,t)}},6048:function(e,t,n){var r=n(9781),i=n(3070),o=n(9670),a=n(1956);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},3070:function(e,t,n){var r=n(9781),i=n(4664),o=n(9670),a=n(7593),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(5296),o=n(9114),a=n(5656),s=n(7593),c=n(6656),u=n(4664),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},8006:function(e,t,n){var r=n(6324),i=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(6656),i=n(7908),o=n(6200),a=n(8544),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},6324:function(e,t,n){var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},1956:function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},4699:function(e,t,n){var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,s=function(e){return function(t){for(var n,s=o(t),c=i(s),u=c.length,l=0,d=[];u>l;)n=c[l++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},288:function(e,t,n){"use strict";var r=n(1694),i=n(648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},3887:function(e,t,n){var r=n(5005),i=n(8006),o=n(5181),a=n(9670);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},857:function(e,t,n){var r=n(7854);e.exports=r},2534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:function(e,t,n){var r=n(9670),i=n(111),o=n(8523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},2248:function(e,t,n){var r=n(1320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},1320:function(e,t,n){var r=n(7854),i=n(8880),o=n(6656),a=n(3505),s=n(2788),c=n(9909),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c,u=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(c=l(n)).source||(c.source=d.join("string"==typeof t?t:""))),e!==r?(u?!f&&e[t]&&(p=!0):delete e[t],p?e[t]=n:i(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},7651:function(e,t,n){var r=n(4326),i=n(2261);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},2261:function(e,t,n){"use strict";var r,i,o=n(7066),a=n(2999),s=RegExp.prototype.exec,c=String.prototype.replace,u=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||d)&&(u=function(e){var t,n,r,i,a=this,u=d&&a.sticky,f=o.call(a),h=a.source,m=0,v=e;return u&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",v=" "+v,m++),n=new RegExp("^(?:"+h+")",f)),p&&(n=new RegExp("^"+h+"$(?!\\s)",f)),l&&(t=a.lastIndex),r=s.call(u?n:a,v),u?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),p&&r&&r.length>1&&c.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=u},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,n){"use strict";var r=n(7293);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3505:function(e,t,n){var r=n(7854),i=n(8880);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},6340:function(e,t,n){"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:function(e,t,n){var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(2309),i=n(9711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,n){var r=n(9670),i=n(3099),o=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},8710:function(e,t,n){var r=n(9958),i=n(4488),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},8415:function(e,t,n){"use strict";var r=n(9958),i=n(4488);e.exports="".repeat||function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},6091:function(e,t,n){var r=n(7293),i=n(1361);e.exports=function(e){return r((function(){return!!i[e]()||"​᠎"!="​᠎"[e]()||i[e].name!==e}))}},3111:function(e,t,n){var r=n(4488),i="["+n(1361)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},261:function(e,t,n){var r,i,o,a=n(7854),s=n(7293),c=n(9974),u=n(490),l=n(317),d=n(6833),p=n(5268),f=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,P={},x=function(e){if(P.hasOwnProperty(e)){var t=P[e];delete P[e],t()}},C=function(e){return function(){x(e)}},E=function(e){x(e.data)},w=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return P[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete P[e]},p?r=function(e){v.nextTick(C(e))}:y&&y.now?r=function(e){y.now(C(e))}:g&&!d?(o=(i=new g).port2,i.port1.onmessage=E,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&f&&"file:"!==f.protocol&&!s(w)?(r=w,a.addEventListener("message",E,!1)):r="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),x(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:h,clear:m}},863:function(e,t,n){var r=n(4326);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},1400:function(e,t,n){var r=n(9958),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9958:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:function(e,t,n){var r=n(9958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488);e.exports=function(e){return Object(r(e))}},7593:function(e,t,n){var r=n(111);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},1694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},9711:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(e,t,n){var r=n(7854),i=n(2309),o=n(6656),a=n(9711),s=n(133),c=n(3307),u=i("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)&&(s||"string"==typeof u[e])||(s&&o(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},1361:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},2222:function(e,t,n){"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),c=n(7466),u=n(6135),l=n(5417),d=n(1194),p=n(5112),f=n(7392),h=p("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",g=f>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!g||!y},{concat:function(e){var t,n,r,i,o,a=s(this),d=l(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(b(o=-1===t?a:arguments[t])){if(p+(i=c(o.length))>m)throw TypeError(v);for(n=0;n<i;n++,p++)n in o&&u(d,p,o[n])}else{if(p>=m)throw TypeError(v);u(d,p++,o)}return d.length=p,d}})},7327:function(e,t,n){"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},1038:function(e,t,n){var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(e){Array.from(e)}))},{from:i})},6699:function(e,t,n){"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(e,t,n){"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(654),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},1249:function(e,t,n){"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},7042:function(e,t,n){"use strict";var r=n(2109),i=n(111),o=n(3157),a=n(1400),s=n(7466),c=n(5656),u=n(6135),l=n(5112),d=n(1194)("slice"),p=l("species"),f=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,l,d=c(this),m=s(d.length),v=a(e,m),g=a(void 0===t?m:t,m);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(d,v,g);for(r=new(void 0===n?Array:n)(h(g-v,0)),l=0;v<g;v++,l++)v in d&&u(r,l,d[v]);return r.length=l,r}})},8309:function(e,t,n){var r=n(9781),i=n(3070).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in o)&&i(o,c,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},6977:function(e,t,n){"use strict";var r=n(2109),i=n(9958),o=n(863),a=n(8415),s=n(7293),c=1..toFixed,u=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)},d=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=u(i/1e7)},p=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=u(r/t),r=r%t*1e7},f=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}))},{toFixed:function(e){var t,n,r,s,c=o(this),u=i(e),h=[0,0,0,0,0,0],m="",v="0";if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*l(2,69,1))-69)<0?c*l(2,-t,1):c/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(h,0,n),r=u;r>=7;)d(h,1e7,0),r-=7;for(d(h,l(10,r,1),0),r=t-1;r>=23;)p(h,1<<23),r-=23;p(h,1<<r),d(h,1,1),p(h,2),v=f(h)}else d(h,0,n),d(h,1<<-t,0),v=f(h)+a.call("0",u);return u>0?m+((s=v.length)<=u?"0."+a.call("0",u-s)+v:v.slice(0,s-u)+"."+v.slice(s-u)):m+v}})},9720:function(e,t,n){var r=n(2109),i=n(4699).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},1539:function(e,t,n){var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},8674:function(e,t,n){"use strict";var r,i,o,a,s=n(2109),c=n(1913),u=n(7854),l=n(5005),d=n(3366),p=n(1320),f=n(2248),h=n(8003),m=n(6340),v=n(111),g=n(3099),y=n(5787),b=n(2788),P=n(408),x=n(7072),C=n(6707),E=n(261).set,w=n(5948),S=n(9478),I=n(842),R=n(8523),T=n(2534),A=n(9909),M=n(4705),L=n(5112),N=n(5268),k=n(7392),O=L("species"),F="Promise",j=A.get,B=A.set,D=A.getterFor(F),q=d,H=u.TypeError,_=u.document,G=u.process,z=l("fetch"),U=R.f,W=U,Y=!!(_&&_.createEvent&&u.dispatchEvent),$="function"==typeof PromiseRejectionEvent,V="unhandledrejection",K=M(F,(function(){if(b(q)===String(q)){if(66===k)return!0;if(!N&&!$)return!0}if(c&&!q.prototype.finally)return!0;if(k>=51&&/native code/.test(q))return!1;var e=q.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[O]=t,!(e.then((function(){}))instanceof t)})),J=K||!x((function(e){q.all(e).catch((function(){}))})),Z=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;w((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,u=n[o++],l=i?u.ok:u.fail,d=u.resolve,p=u.reject,f=u.domain;try{l?(i||(2===e.rejection&&ne(e),e.rejection=1),!0===l?a=r:(f&&f.enter(),a=l(r),f&&(f.exit(),c=!0)),a===u.promise?p(H("Promise-chain cycle")):(s=Z(a))?s.call(a,d,p):d(a)):p(r)}catch(e){f&&!c&&f.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ee(e)}))}},X=function(e,t,n){var r,i;Y?((r=_.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!$&&(i=u["on"+e])?i(r):e===V&&I("Unhandled promise rejection",n)},ee=function(e){E.call(u,(function(){var t,n=e.facade,r=e.value;if(te(e)&&(t=T((function(){N?G.emit("unhandledRejection",r,n):X(V,n,r)})),e.rejection=N||te(e)?2:1,t.error))throw t.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e){E.call(u,(function(){var t=e.facade;N?G.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},re=function(e,t,n){return function(r){e(t,r,n)}},ie=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Q(e,!0))},oe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H("Promise can't be resolved itself");var r=Z(t);r?w((function(){var n={done:!1};try{r.call(t,re(oe,n,e),re(ie,n,e))}catch(t){ie(n,t,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(t){ie({done:!1},t,e)}}};K&&(q=function(e){y(this,q,F),g(e),r.call(this);var t=j(this);try{e(re(oe,t),re(ie,t))}catch(e){ie(t,e)}},(r=function(e){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(q.prototype,{then:function(e,t){var n=D(this),r=U(C(this,q));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=N?G.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=j(e);this.promise=e,this.resolve=re(oe,t),this.reject=re(ie,t)},R.f=U=function(e){return e===q||e===o?new i(e):W(e)},c||"function"!=typeof d||(a=d.prototype.then,p(d.prototype,"then",(function(e,t){var n=this;return new q((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(q,z.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:K},{Promise:q}),h(q,F,!1,!0),m(F),o=l(F),s({target:F,stat:!0,forced:K},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),s({target:F,stat:!0,forced:c||K},{resolve:function(e){return S(c&&this===o?q:this,e)}}),s({target:F,stat:!0,forced:J},{all:function(e){var t=this,n=U(t),r=n.resolve,i=n.reject,o=T((function(){var n=g(t.resolve),o=[],a=0,s=1;P(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=U(t),r=n.reject,i=T((function(){var i=g(t.resolve);P(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:function(e,t,n){var r=n(2109),i=n(5005),o=n(3099),a=n(9670),s=n(111),c=n(30),u=n(7065),l=n(7293),d=i("Reflect","construct"),p=l((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!l((function(){d((function(){}))})),h=p||f;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(f&&!p)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var i=n.prototype,l=c(s(i)?i:Object.prototype),h=Function.apply.call(e,l,t);return s(h)?h:l}})},4916:function(e,t,n){"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:function(e,t,n){"use strict";var r=n(1320),i=n(9670),o=n(7293),a=n(7066),s="toString",c=RegExp.prototype,u=c.toString,l=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=s;(l||d)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},189:function(e,t,n){"use strict";var r=n(7710),i=n(5631);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},2023:function(e,t,n){"use strict";var r=n(2109),i=n(3929),o=n(4488);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},8783:function(e,t,n){"use strict";var r=n(8710).charAt,i=n(9909),o=n(654),a="String Iterator",s=i.set,c=i.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},3123:function(e,t,n){"use strict";var r=n(7007),i=n(7850),o=n(9670),a=n(4488),s=n(6707),c=n(1530),u=n(7466),l=n(7651),d=n(2261),p=n(7293),f=[].push,h=Math.min,m=4294967295,v=!p((function(){return!RegExp(m,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,c,u,l=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,v=new RegExp(e.source,p+"g");(s=d.call(v,r))&&!((c=v.lastIndex)>h&&(l.push(r.slice(h,s.index)),s.length>1&&s.index<r.length&&f.apply(l,s.slice(1)),u=s[0].length,h=c,l.length>=o));)v.lastIndex===s.index&&v.lastIndex++;return h===r.length?!u&&v.test("")||l.push(""):l.push(r.slice(h)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var d=o(e),p=String(this),f=s(d,RegExp),g=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(v?"y":"g"),b=new f(v?d:"^(?:"+d.source+")",y),P=void 0===i?m:i>>>0;if(0===P)return[];if(0===p.length)return null===l(b,p)?[p]:[];for(var x=0,C=0,E=[];C<p.length;){b.lastIndex=v?C:0;var w,S=l(b,v?p:p.slice(C));if(null===S||(w=h(u(b.lastIndex+(v?0:C)),p.length))===x)C=c(p,C,g);else{if(E.push(p.slice(x,C)),E.length===P)return E;for(var I=1;I<=S.length-1;I++)if(E.push(S[I]),E.length===P)return E;C=x=w}}return E.push(p.slice(x)),E}]}),!v)},3210:function(e,t,n){"use strict";var r=n(2109),i=n(3111).trim;r({target:"String",proto:!0,forced:n(6091)("trim")},{trim:function(){return i(this)}})},3948:function(e,t,n){var r=n(7854),i=n(8324),o=n(6992),a=n(8880),s=n(5112),c=s("iterator"),u=s("toStringTag"),l=o.values;for(var d in i){var p=r[d],f=p&&p.prototype;if(f){if(f[c]!==l)try{a(f,c,l)}catch(e){f[c]=l}if(f[u]||a(f,u,d),i[d])for(var h in o)if(f[h]!==o[h])try{a(f,h,o[h])}catch(e){f[h]=o[h]}}}},8237:function(e){var t,n,r,i=(t={km:6371,mile:3960,meter:6371e3,nmi:3440},n=function(e){return e*Math.PI/180},r=function(e,t){switch(e){case"[lat,lon]":return{latitude:t[0],longitude:t[1]};case"[lon,lat]":return{latitude:t[1],longitude:t[0]};case"{lon,lat}":return{latitude:t.lat,longitude:t.lon};case"{lat,lng}":return{latitude:t.lat,longitude:t.lng};case"geojson":return{latitude:t.geometry.coordinates[1],longitude:t.geometry.coordinates[0]};default:return t}},function(e,i,o){var a=(o=o||{}).unit in t?t[o.unit]:t.km,s=r(o.format,e),c=r(o.format,i),u=n(c.latitude-s.latitude),l=n(c.longitude-s.longitude),d=n(s.latitude),p=n(c.latitude),f=Math.sin(u/2)*Math.sin(u/2)+Math.sin(l/2)*Math.sin(l/2)*Math.cos(d)*Math.cos(p),h=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f));return o.threshold?o.threshold>a*h:a*h});e.exports&&(e.exports=i)},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",m={};function v(){}function g(){}function y(){}var b={};b[o]=function(){return this};var P=Object.getPrototypeOf,x=P&&P(P(A([])));x&&x!==n&&r.call(x,o)&&(b=x);var C=y.prototype=v.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:t,done:!0}}return g.prototype=C.constructor=y,y.constructor=g,g.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},E(w.prototype),w.prototype[a]=function(){return this},e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(C),c(C,s,"Generator"),C[o]=function(){return this},C.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(512)}();