Version 0.8.49

Ylian Saint-Hilaire committed May 27, 2021 at 15:55 UTC 9838b52f8a88c2a276a15efd67f62b9b14a05e90
12 files changed +2100 -2084
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.8.48",
3 + "version": "0.8.49",
4 "keywords": [
5 "Remote Device Management",
6 "Remote Device Monitoring",
public/scripts/amt-0.2.0-min.js
+1 -1
@@ -1 +1 @@
1 -function AmtStackCreateService(e){var C=new Object;C.wsman=e,C.pfx=["http://intel.com/wbem/wscim/1/amt-schema/1/","http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/","http://intel.com/wbem/wscim/1/ips-schema/1/"],C.PendingEnums=[],C.PendingBatchOperations=0,C.ActiveEnumsCount=0,C.MaxActiveEnumsCount=1,C.onProcessChanged=null;var t=0,n=0;function A(){var e=C.GetPendingActions();t<e&&(t=e),null!=C.onProcessChanged&&n!=e&&(n=e,C.onProcessChanged(e,t)),0==e&&(t=0)}function _(e){C.ActiveEnumsCount-=e,C.ActiveEnumsCount>=C.MaxActiveEnumsCount||0==C.PendingEnums.length||(e=C.PendingEnums.shift(),C.Enum(e[0],e[1],e[2]),_(0))}function c(r){r.names.length<=r.current?r.callback(C,r.name,r.responses,200,r.tag):(C.wsman.ExecGet(C.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback(C,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),A()}function i(e,t,n,i,o){200==i&&"0"==n.Body.ReturnValue?C.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,o):o[0](C,null,o[2])}function m(e,t,n,i,o){if(200==i&&"0"==n.Body.ReturnValue){var r,c,a,s,u,d,S,A,_=o[2],l=new Date,E=n.Body.RecordArray;for(r in"string"==typeof E&&(n.Body.RecordArray=[n.Body.RecordArray]),E){s=null;try{s=window.atob(E[r])}catch(e){}if(null!=s&&0<(u=ReadIntX(s,0))&&u<4294967295){for(a={DeviceAddress:s.charCodeAt(4),EventSensorType:s.charCodeAt(5),EventType:s.charCodeAt(6),EventOffset:s.charCodeAt(7),EventSourceType:s.charCodeAt(8),EventSeverity:s.charCodeAt(9),SensorNumber:s.charCodeAt(10),Entity:s.charCodeAt(11),EntityInstance:s.charCodeAt(12),EventData:[],Time:new Date(1e3*(u+60*l.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s.charCodeAt(c));a.EntityStr=I[a.Entity],a.Desc=(d=a.EventSensorType,S=a.EventOffset,A=a.EventData,a.Entity,15!=d?18!=d||170!=A[0]?6==d?"Authentication failed "+(A[1]+(A[2]<<8))+" times. The system may be under attack.":30==d?"No bootable media":32==d?"Operating system lockup or power interrupt":35==d?"System boot failure":37==d?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+d:"Agent watchdog "+char2hex(A[4])+char2hex(A[3])+char2hex(A[2])+char2hex(A[1])+"-"+char2hex(A[6])+char2hex(A[5])+"-... changed to "+C.WatchdogCurrentStates[A[7]]:235==A[0]?"Invalid Data":(0==S?g:M)[A[1]]),a.EntityStr||(a.EntityStr="Unknown"),_.push(a)}}1!=n.Body.NoMoreRecords?C.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,[o[0],_,o[2]]):o[0](C,_,o[2])}else o[0](C,null,o[2])}C.GetPendingActions=function(){return 2*C.PendingEnums.length+C.ActiveEnumsCount+C.wsman.comm.PendingAjax.length+C.wsman.comm.ActiveAjaxCount+C.PendingBatchOperations},C.Subscribe=function(o,e,t,r,c,n,i,a,s,u){C.wsman.ExecSubscribe(C.CompleteName(o),e,t,function(e,t,n,i){A(),r(C,o,n,i,c)},0,n,i,a,s,u),A()},C.UnSubscribe=function(o,r,c,e,t){C.wsman.ExecUnSubscribe(C.CompleteName(o),function(e,t,n,i){A(),r(C,o,n,i,c)},0,e,t),A()},C.Get=function(o,r,c,e){C.wsman.ExecGet(C.CompleteName(o),function(e,t,n,i){A(),r(C,o,n,i,c)},0,e),A()},C.Put=function(o,e,r,c,t,n){C.wsman.ExecPut(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t,n),A()},C.Create=function(o,e,r,c,t){C.wsman.ExecCreate(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t),A()},C.Delete=function(o,e,r,c,t){C.wsman.ExecDelete(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t),A()},C.Exec=function(o,e,t,r,c,n,i){C.wsman.ExecMethod(C.CompleteName(o),e,t,function(e,t,n,i){A(),r(C,o,C.CompleteExecResponse(n),i,c)},0,n,i),A()},C.ExecWithXml=function(o,e,t,r,c,n,i){C.wsman.ExecMethodXml(C.CompleteName(o),e,execArgumentsToXml(t),function(e,t,n,i){A(),r(C,o,C.CompleteExecResponse(n),i,c)},0,n,i),A()},C.Enum=function(s,u,e,t){C.ActiveEnumsCount<C.MaxActiveEnumsCount?(C.ActiveEnumsCount++,C.wsman.ExecEnum(C.CompleteName(s),function(e,t,n,i,o){var r,c,a;A(),r=s,n=n,c=u,t=t,a=o,200==(i=i)?null!=n&&"EnumerateResponse"==n.Header.Method&&n.Body.EnumerationContext?(n=n.Body.EnumerationContext,C.wsman.ExecPull(t,n,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c(C,r,null,n,s),void _(1);if(null==e||"PullResponse"!=e.Header.Method)return c(C,r,null,604,s),void _(1);for(var u in e.Body.Items)if(e.Body.Items[u]instanceof Array)for(var d in e.Body.Items[u])a.push(e.Body.Items[u][d]);else a.push(e.Body.Items[u]);{var S;e.Body.EnumerationContext?(S=e.Body.EnumerationContext,C.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(_(1),c(C,r,a,n,s),A())}}(r,n,c,t,[],i,a)})):(c(C,r,null,603,a),_(1)):(c(C,r,null,i,a),_(1))},e,t)):C.PendingEnums.push([s,u,e,t]),A()},C.BatchEnum=function(e,t,n,i,o,r){C.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){C.PendingBatchOperations-=2;var t=a.shift(),n=C.Enum;"*"==t[0]&&(n=C.Get,t=t.substring(1));n(t,function(e,t,n,i,o){o[2][t]={response:null==n?null:n.Body,responses:n,status:i},0==o[1].length||401==i||1!=d&&200!=i&&400!=i?(C.PendingBatchOperations-=2*a.length,A(),s(C,c,o[2],i,u)):(A(),r(c,a,s,u,o[2],S))},[c,a,e],S);A()}(e,Clone(t),n,i,{},o,r),A()},C.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),A()},C.CompleteName=function(e){return 0==e.indexOf("AMT_")?C.pfx[0]+e:0==e.indexOf("CIM_")?C.pfx[1]+e:0==e.indexOf("IPS_")?C.pfx[2]+e:void 0},C.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&e.Body.ReturnValue&&(e.Body.ReturnValueStr=C.AmtStatusToStr(e.Body.ReturnValue)),e},C.RequestPowerStateChange=function(e,t){C.CIM_PowerManagementService_RequestPowerStateChange(e,'<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="CreationClassName">CIM_ComputerSystem</Selector><Selector Name="Name">ManagedSystem</Selector></SelectorSet></ReferenceParameters>',null,null,t)},C.SetBootConfigRole=function(e,t){C.CIM_BootService_SetBootConfigRole('<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: Boot Configuration 0</Selector></SelectorSet></ReferenceParameters>',e,t)},C.CancelAllQueries=function(e){C.wsman.CancelAllQueries(e)},C.AMT_AgentPresenceWatchdog_RegisterAgent=function(e){C.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e)},C.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t){C.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t){C.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){C.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},C.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){C.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},C.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){C.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},C.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){C.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},C.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){C.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},C.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},C.AMT_AuditLog_ClearLog=function(e){C.Exec("AMT_AuditLog","ClearLog",{},e)},C.AMT_AuditLog_RequestStateChange=function(e,t,n){C.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_AuditLog_ReadRecords=function(e,t,n){C.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},C.AMT_AuditLog_SetAuditLock=function(e,t,n,i){C.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},C.AMT_AuditLog_ExportAuditLogSignature=function(e,t){C.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},C.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){C.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},C.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){C.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},C.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){C.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},C.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){C.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},C.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){C.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},C.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){C.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},C.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){C.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},C.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){C.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},C.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){C.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},C.AMT_AuthorizationService_GetAdminAclEntry=function(e){C.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},C.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){C.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},C.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){C.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},C.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){C.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},C.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){C.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},C.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){C.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_EndpointAccessControlService_GetPosture=function(e,t){C.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},C.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){C.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},C.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){C.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},C.AMT_EndpointAccessControlService_GetEacOptions=function(e){C.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},C.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){C.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},C.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){C.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},C.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){C.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},C.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){C.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},C.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){C.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},C.AMT_KerberosSettingData_GetCredentialCacheState=function(e){C.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},C.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){C.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},C.AMT_MessageLog_CancelIteration=function(e,t){C.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},C.AMT_MessageLog_RequestStateChange=function(e,t,n){C.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_MessageLog_ClearLog=function(e){C.Exec("AMT_MessageLog","ClearLog",{},e)},C.AMT_MessageLog_GetRecords=function(e,t,n,i){C.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},C.AMT_MessageLog_GetRecord=function(e,t,n){C.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},C.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){C.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},C.AMT_MessageLog_PositionToFirstRecord=function(e,t){C.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},C.AMT_MessageLog_FreezeLog=function(e,t){C.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},C.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){C.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},C.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){C.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},C.AMT_PublicKeyManagementService_AddCertificate=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t)},C.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},C.AMT_PublicKeyManagementService_AddKey=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},C.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){C.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},C.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){C.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},C.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){C.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},C.AMT_RedirectionService_RequestStateChange=function(e,t){C.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},C.AMT_RedirectionService_TerminateSession=function(e,t){C.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},C.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){C.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},C.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){C.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},C.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){C.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_CommitChanges=function(e,t){C.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_Unprovision=function(e,t){C.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},C.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){C.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){C.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){C.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},C.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){C.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},C.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){C.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},C.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){C.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},C.AMT_SetupAndConfigurationService_GetUuid=function(e){C.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},C.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){C.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},C.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){C.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},C.AMT_SystemDefensePolicy_GetTimeout=function(e){C.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},C.AMT_SystemDefensePolicy_SetTimeout=function(e,t){C.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},C.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){C.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},C.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){C.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},C.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){C.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},C.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){C.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},C.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){C.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_WebUIService_RequestStateChange=function(e,t,n){C.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){C.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},C.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){C.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},C.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){C.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},C.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){C.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},C.CIM_Account_RequestStateChange=function(e,t,n){C.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_AccountManagementService_CreateAccount=function(e,t,n){C.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},C.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){C.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},C.CIM_BootService_SetBootConfigRole=function(e,t,n){C.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},C.CIM_Card_ConnectorPower=function(e,t,n){C.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},C.CIM_Card_IsCompatible=function(e,t){C.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},C.CIM_Chassis_IsCompatible=function(e,t){C.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},C.CIM_Fan_SetSpeed=function(e,t){C.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},C.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){C.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},C.CIM_MediaAccessDevice_LockMedia=function(e,t){C.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},C.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){C.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_MediaAccessDevice_Reset=function(e){C.Exec("CIM_MediaAccessDevice","Reset",{},e)},C.CIM_MediaAccessDevice_EnableDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},C.CIM_MediaAccessDevice_OnlineDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},C.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},C.CIM_MediaAccessDevice_SaveProperties=function(e){C.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},C.CIM_MediaAccessDevice_RestoreProperties=function(e){C.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},C.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){C.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_PhysicalFrame_IsCompatible=function(e,t){C.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},C.CIM_PhysicalPackage_IsCompatible=function(e,t){C.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},C.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){C.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},C.CIM_PowerSupply_SetPowerState=function(e,t,n){C.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_PowerSupply_Reset=function(e){C.Exec("CIM_PowerSupply","Reset",{},e)},C.CIM_PowerSupply_EnableDevice=function(e,t){C.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},C.CIM_PowerSupply_OnlineDevice=function(e,t){C.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},C.CIM_PowerSupply_QuiesceDevice=function(e,t){C.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},C.CIM_PowerSupply_SaveProperties=function(e){C.Exec("CIM_PowerSupply","SaveProperties",{},e)},C.CIM_PowerSupply_RestoreProperties=function(e){C.Exec("CIM_PowerSupply","RestoreProperties",{},e)},C.CIM_PowerSupply_RequestStateChange=function(e,t,n){C.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_Processor_SetPowerState=function(e,t,n){C.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Processor_Reset=function(e){C.Exec("CIM_Processor","Reset",{},e)},C.CIM_Processor_EnableDevice=function(e,t){C.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},C.CIM_Processor_OnlineDevice=function(e,t){C.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},C.CIM_Processor_QuiesceDevice=function(e,t){C.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},C.CIM_Processor_SaveProperties=function(e){C.Exec("CIM_Processor","SaveProperties",{},e)},C.CIM_Processor_RestoreProperties=function(e){C.Exec("CIM_Processor","RestoreProperties",{},e)},C.CIM_Processor_RequestStateChange=function(e,t,n){C.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_RecordLog_ClearLog=function(e){C.Exec("CIM_RecordLog","ClearLog",{},e)},C.CIM_RecordLog_RequestStateChange=function(e,t,n){C.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_RedirectionService_RequestStateChange=function(e,t,n){C.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_Sensor_SetPowerState=function(e,t,n){C.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Sensor_Reset=function(e){C.Exec("CIM_Sensor","Reset",{},e)},C.CIM_Sensor_EnableDevice=function(e,t){C.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},C.CIM_Sensor_OnlineDevice=function(e,t){C.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},C.CIM_Sensor_QuiesceDevice=function(e,t){C.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},C.CIM_Sensor_SaveProperties=function(e){C.Exec("CIM_Sensor","SaveProperties",{},e)},C.CIM_Sensor_RestoreProperties=function(e){C.Exec("CIM_Sensor","RestoreProperties",{},e)},C.CIM_Sensor_RequestStateChange=function(e,t,n){C.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_StatisticalData_ResetSelectedStats=function(e,t){C.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},C.CIM_Watchdog_KeepAlive=function(e){C.Exec("CIM_Watchdog","KeepAlive",{},e)},C.CIM_Watchdog_SetPowerState=function(e,t,n){C.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Watchdog_Reset=function(e){C.Exec("CIM_Watchdog","Reset",{},e)},C.CIM_Watchdog_EnableDevice=function(e,t){C.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},C.CIM_Watchdog_OnlineDevice=function(e,t){C.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},C.CIM_Watchdog_QuiesceDevice=function(e,t){C.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},C.CIM_Watchdog_SaveProperties=function(e){C.Exec("CIM_Watchdog","SaveProperties",{},e)},C.CIM_Watchdog_RestoreProperties=function(e){C.Exec("CIM_Watchdog","RestoreProperties",{},e)},C.CIM_Watchdog_RequestStateChange=function(e,t,n){C.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_WiFiPort_SetPowerState=function(e,t,n){C.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_WiFiPort_Reset=function(e){C.Exec("CIM_WiFiPort","Reset",{},e)},C.CIM_WiFiPort_EnableDevice=function(e,t){C.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},C.CIM_WiFiPort_OnlineDevice=function(e,t){C.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},C.CIM_WiFiPort_QuiesceDevice=function(e,t){C.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},C.CIM_WiFiPort_SaveProperties=function(e){C.Exec("CIM_WiFiPort","SaveProperties",{},e)},C.CIM_WiFiPort_RestoreProperties=function(e){C.Exec("CIM_WiFiPort","RestoreProperties",{},e)},C.CIM_WiFiPort_RequestStateChange=function(e,t,n){C.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){C.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},C.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){C.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},C.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){C.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},C.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){C.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},C.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){C.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},C.IPS_KVMRedirectionSettingData_TerminateSession=function(e){C.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},C.IPS_OptInService_StartOptIn=function(e){C.Exec("IPS_OptInService","StartOptIn",{},e)},C.IPS_OptInService_CancelOptIn=function(e){C.Exec("IPS_OptInService","CancelOptIn",{},e)},C.IPS_OptInService_SendOptInCode=function(e,t){C.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},C.IPS_OptInService_StartService=function(e){C.Exec("IPS_OptInService","StartService",{},e)},C.IPS_OptInService_StopService=function(e){C.Exec("IPS_OptInService","StopService",{},e)},C.IPS_OptInService_RequestStateChange=function(e,t,n){C.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){C.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_ProvisioningRecordLog_ClearLog=function(e,t){C.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},C.IPS_SecIOService_RequestStateChange=function(e,t,n){C.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AmtStatusToStr=function(e){return C.AmtStatusCodes[e]||"UNKNOWN_ERROR"},C.AmtStatusCodes={0:"SUCCESS",1:"INTERNAL_ERROR",2:"NOT_READY",3:"INVALID_PT_MODE",4:"INVALID_MESSAGE_LENGTH",5:"TABLE_FINGERPRINT_NOT_AVAILABLE",6:"INTEGRITY_CHECK_FAILED",7:"UNSUPPORTED_ISVS_VERSION",8:"APPLICATION_NOT_REGISTERED",9:"INVALID_REGISTRATION_DATA",10:"APPLICATION_DOES_NOT_EXIST",11:"NOT_ENOUGH_STORAGE",12:"INVALID_NAME",13:"BLOCK_DOES_NOT_EXIST",14:"INVALID_BYTE_OFFSET",15:"INVALID_BYTE_COUNT",16:"NOT_PERMITTED",17:"NOT_OWNER",18:"BLOCK_LOCKED_BY_OTHER",19:"BLOCK_NOT_LOCKED",20:"INVALID_GROUP_PERMISSIONS",21:"GROUP_DOES_NOT_EXIST",22:"INVALID_MEMBER_COUNT",23:"MAX_LIMIT_REACHED",24:"INVALID_AUTH_TYPE",25:"AUTHENTICATION_FAILED",26:"INVALID_DHCP_MODE",27:"INVALID_IP_ADDRESS",28:"INVALID_DOMAIN_NAME",29:"UNSUPPORTED_VERSION",30:"REQUEST_UNEXPECTED",31:"INVALID_TABLE_TYPE",32:"INVALID_PROVISIONING_STATE",33:"UNSUPPORTED_OBJECT",34:"INVALID_TIME",35:"INVALID_INDEX",36:"INVALID_PARAMETER",37:"INVALID_NETMASK",38:"FLASH_WRITE_LIMIT_EXCEEDED",39:"INVALID_IMAGE_LENGTH",40:"INVALID_IMAGE_SIGNATURE",41:"PROPOSE_ANOTHER_VERSION",42:"INVALID_PID_FORMAT",43:"INVALID_PPS_FORMAT",44:"BIST_COMMAND_BLOCKED",45:"CONNECTION_FAILED",46:"CONNECTION_TOO_MANY",47:"RNG_GENERATION_IN_PROGRESS",48:"RNG_NOT_READY",49:"CERTIFICATE_NOT_READY",1024:"DISABLED_BY_POLICY",2048:"NETWORK_IF_ERROR_BASE",2049:"UNSUPPORTED_OEM_NUMBER",2050:"UNSUPPORTED_BOOT_OPTION",2051:"INVALID_COMMAND",2052:"INVALID_SPECIAL_COMMAND",2053:"INVALID_HANDLE",2054:"INVALID_PASSWORD",2055:"INVALID_REALM",2056:"STORAGE_ACL_ENTRY_IN_USE",2057:"DATA_MISSING",2058:"DUPLICATE",2059:"EVENTLOG_FROZEN",2060:"PKI_MISSING_KEYS",2061:"PKI_GENERATING_KEYS",2062:"INVALID_KEY",2063:"INVALID_CERT",2064:"CERT_KEY_NOT_MATCH",2065:"MAX_KERB_DOMAIN_REACHED",2066:"UNSUPPORTED",2067:"INVALID_PRIORITY",2068:"NOT_FOUND",2069:"INVALID_CREDENTIALS",2070:"INVALID_PASSPHRASE",2072:"NO_ASSOCIATION",2075:"AUDIT_FAIL",2076:"BLOCKING_COMPONENT",2081:"USER_CONSENT_REQUIRED",4096:"APP_INTERNAL_ERROR",4097:"NOT_INITIALIZED",4098:"LIB_VERSION_UNSUPPORTED",4099:"INVALID_PARAM",4100:"RESOURCES",4101:"HARDWARE_ACCESS_ERROR",4102:"REQUESTOR_NOT_REGISTERED",4103:"NETWORK_ERROR",4104:"PARAM_BUFFER_TOO_SHORT",4105:"COM_NOT_INITIALIZED_IN_THREAD",4106:"URL_REQUIRED"},C.GetMessageLog=function(e,t){C.AMT_MessageLog_PositionToFirstRecord(i,[e,t,[]])};"Platform firmware (e.g. BIOS)|SMI handler|ISV system management software|Alert ASIC|IPMI|BIOS vendor|System board set vendor|System integrator|Third party add-in|OSV|NIC|System management card".split("|");var g="Unspecified.|No system memory is physically installed in the system.|No usable system memory, all installed memory has experienced an unrecoverable failure.|Unrecoverable hard-disk/ATAPI/IDE device failure.|Unrecoverable system-board failure.|Unrecoverable diskette subsystem failure.|Unrecoverable hard-disk controller failure.|Unrecoverable PS/2 or USB keyboard failure.|Removable boot media not found.|Unrecoverable video controller failure.|No video device detected.|Firmware (BIOS) ROM corruption detected.|CPU voltage mismatch (processors that share same supply have mismatched voltage requirements)|CPU speed matching failure".split("|"),M="Unspecified.|Memory initialization.|Starting hard-disk initialization and test|Secondary processor(s) initialization|User authentication|User-initiated system setup|USB resource configuration|PCI resource configuration|Option ROM initialization|Video initialization|Cache initialization|SM Bus initialization|Keyboard controller initialization|Embedded controller/management controller initialization|Docking station attachment|Enabling docking station|Docking station ejection|Disabling docking station|Calling operating system wake-up vector|Starting operating system boot process|Baseboard or motherboard initialization|reserved|Floppy initialization|Keyboard test|Pointing device test|Primary processor initialization".split("|"),I="Unspecified|Other|Unknown|Processor|Disk|Peripheral|System management module|System board|Memory module|Processor module|Power supply|Add in card|Front panel board|Back panel board|Power system board|Drive backplane|System internal expansion board|Other system board|Processor board|Power unit|Power module|Power management board|Chassis back panel board|System chassis|Sub chassis|Other chassis board|Disk drive bay|Peripheral bay|Device bay|Fan cooling|Cooling unit|Cable interconnect|Memory device|System management software|BIOS|Intel(r) ME|System bus|Group|Intel(r) ME|External environment|Battery|Processing blade|Connectivity switch|Processor/memory module|I/O module|Processor I/O module|Management controller firmware|IPMI channel|PCI bus|PCI express bus|SCSI bus|SATA/SAS bus|Processor front side bus".split("|");C.RealmNames="||Redirection|PT Administration|Hardware Asset|Remote Control|Storage|Event Manager|Storage Admin|Agent Presence Local|Agent Presence Remote|Circuit Breaker|Network Time|General Information|Firmware Update|EIT|LocalUN|Endpoint Access Control|Endpoint Access Control Admin|Event Log Reader|Audit Log|ACL Realm|||Local System".split("|"),C.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"};var l={16:"Security Admin",17:"RCO",18:"Redirection Manager",19:"Firmware Update Manager",20:"Security Audit Log",21:"Network Time",22:"Network Administration",23:"Storage Administration",24:"Event Manager",25:"Circuit Breaker Manager",26:"Agent Presence Manager",27:"Wireless Configuration",28:"EAC",29:"KVM",30:"User Opt-In Events",32:"Screen Blanking",33:"Watchdog Events",1600:"Provisioning Started",1601:"Provisioning Completed",1602:"ACL Entry Added",1603:"ACL Entry Modified",1604:"ACL Entry Removed",1605:"ACL Access with Invalid Credentials",1606:"ACL Entry State",1607:"TLS State Changed",1608:"TLS Server Certificate Set",1609:"TLS Server Certificate Remove",1610:"TLS Trusted Root Certificate Added",1611:"TLS Trusted Root Certificate Removed",1612:"TLS Preshared Key Set",1613:"Kerberos Settings Modified",1614:"Kerberos Main Key Modified",1615:"Flash Wear out Counters Reset",1616:"Power Package Modified",1617:"Set Realm Authentication Mode",1618:"Upgrade Client to Admin Control Mode",1619:"Unprovisioning Started",1700:"Performed Power Up",1701:"Performed Power Down",1702:"Performed Power Cycle",1703:"Performed Reset",1704:"Set Boot Options",1800:"IDER Session Opened",1801:"IDER Session Closed",1802:"IDER Enabled",1803:"IDER Disabled",1804:"SoL Session Opened",1805:"SoL Session Closed",1806:"SoL Enabled",1807:"SoL Disabled",1808:"KVM Session Started",1809:"KVM Session Ended",1810:"KVM Enabled",1811:"KVM Disabled",1812:"VNC Password Failed 3 Times",1900:"Firmware Updated",1901:"Firmware Update Failed",2e3:"Security Audit Log Cleared",2001:"Security Audit Policy Modified",2002:"Security Audit Log Disabled",2003:"Security Audit Log Enabled",2004:"Security Audit Log Exported",2005:"Security Audit Log Recovered",2100:"Intel&reg; ME Time Set",2200:"TCPIP Parameters Set",2201:"Host Name Set",2202:"Domain Name Set",2203:"VLAN Parameters Set",2204:"Link Policy Set",2205:"IPv6 Parameters Set",2300:"Global Storage Attributes Set",2301:"Storage EACL Modified",2302:"Storage FPACL Modified",2303:"Storage Write Operation",2400:"Alert Subscribed",2401:"Alert Unsubscribed",2402:"Event Log Cleared",2403:"Event Log Frozen",2500:"CB Filter Added",2501:"CB Filter Removed",2502:"CB Policy Added",2503:"CB Policy Removed",2504:"CB Default Policy Set",2505:"CB Heuristics Option Set",2506:"CB Heuristics State Cleared",2600:"Agent Watchdog Added",2601:"Agent Watchdog Removed",2602:"Agent Watchdog Action Set",2700:"Wireless Profile Added",2701:"Wireless Profile Removed",2702:"Wireless Profile Updated",2800:"EAC Posture Signer SET",2801:"EAC Enabled",2802:"EAC Disabled",2803:"EAC Posture State",2804:"EAC Set Options",2900:"KVM Opt-in Enabled",2901:"KVM Opt-in Disabled",2902:"KVM Password Changed",2903:"KVM Consent Succeeded",2904:"KVM Consent Failed",3e3:"Opt-In Policy Change",3001:"Send Consent Code Event",3002:"Start Opt-In Blocked Event"};function E(e,t,n,i,o){if(200==i){var r,c,a,s,u,d=o[1],S=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=MakeToArray(n.Body.EventRecords),n.Body.EventRecords){a=null;try{a=window.atob(n.Body.EventRecords[c])}catch(a){console.log(a+" "+n.Body.EventRecords[c])}(u={AuditAppID:ReadShort(a,0),EventID:ReadShort(a,2),InitiatorType:a.charCodeAt(4)}).AuditApp=l[u.AuditAppID],u.Event=l[100*u.AuditAppID+u.EventID],u.Event||(u.Event="#"+u.EventID),0==u.InitiatorType&&(s=a.charCodeAt(5),u.Initiator=a.substring(6,6+s),r=6+s),1==u.InitiatorType&&(u.KerberosUserInDomain=ReadInt(a,5),s=a.charCodeAt(9),u.Initiator=GetSidString(a.substring(10,10+s)),r=10+s),2==u.InitiatorType&&(u.Initiator="<i>Local</i>",r=5),3==u.InitiatorType&&(u.Initiator="<i>KVM Default Port</i>",r=5),A=ReadInt(a,r),u.Time=new Date(1e3*(A+60*S.getTimezoneOffset())),r+=4,u.MCLocationType=a.charCodeAt(r++);var A=a.charCodeAt(r++);u.NetAddress=a.substring(r,r+A),r+=A;A=a.charCodeAt(r++);u.Ex=a.substring(r,r+A),u.ExStr=C.GetAuditLogExtendedDataStr(100*u.AuditAppID+u.EventID,u.Ex),d.push(u)}n.Body.TotalRecordCount>d.length?C.AMT_AuditLog_ReadRecords(d.length+1,E,[o[0],d]):o[0](C,d,i)}else o[0](C,[],i)}return C.GetAuditLogExtendedDataStr=function(e,t){if((1602==e||1604==e)&&0==t.charCodeAt(0))return t.substring(2,2+t.charCodeAt(1));if(1603==e)return 0==t.charCodeAt(1)?t.substring(3):null;if(1605==e)return["Invalid ME access","Invalid MEBx access"][t.charCodeAt(0)];if(1606==e){var n=["Disabled","Enabled"][t.charCodeAt(0)];return 0==t.charCodeAt(1)&&(n+=", "+t.substring(3)),n}if(1607==e)return"Remote "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(0)]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(1)];if(1617==e)return C.RealmNames[ReadInt(t,0)]+", "+["NoAuth","Auth","Disabled"][t.charCodeAt(4)];if(1619==e)return["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t.charCodeAt(0)];if(1900==e)return"From "+ReadShort(t,0)+"."+ReadShort(t,2)+"."+ReadShort(t,4)+"."+ReadShort(t,6)+" to "+ReadShort(t,8)+"."+ReadShort(t,10)+"."+ReadShort(t,12)+"."+ReadShort(t,14);if(2100!=e)return 3e3==e?"From "+["None","KVM","All"][t.charCodeAt(0)]+" to "+["None","KVM","All"][t.charCodeAt(1)]:3001==e?["Success","Failed 3 times"][t.charCodeAt(0)]:null;e=new Date;return e.setTime(1e3*ReadInt(t,0)+6e4*(new Date).getTimezoneOffset()),e.toLocaleString()},C.GetAuditLog=function(e){C.AMT_AuditLog_ReadRecords(1,E,[e,[]])},C}function hex_md5(e){return null==e&&(e=""),forge.md.md5.create().update(e).digest().toHex()}for(var md5_k=[],i=0;i<64;)md5_k[i]=0|4294967296*Math.abs(Math.sin(++i));function hex_md5(e){null==e&&(e="");for(var t,n,i,o,r=[],c=unescape(encodeURI(e)),a=c.length,s=[1732584193,-271733879,-1732584194,271733878],u=0;u<=a;)r[u>>2]|=(c.charCodeAt(u)||128)<<u++%4*8;for(r[e=16*(a+8>>6)+14]=8*a,u=0;u<e;u+=16){for(a=s,o=0;o<64;)a=[i=a[3],(t=0|a[1])+((i=a[0]+[t&(n=a[2])|~t&i,i&t|~i&n,t^n^i,n^(t|~i)][a=o>>4]+(md5_k[o]+(0|r[[o,5*o+1,3*o+5,7*o][a]%16+u])))<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>32-a),t,n];for(o=4;o;)s[--o]=s[o]+a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^7&o++)&15).toString(16);return e}function rstr_md5(e){return hex2rstr(hex_md5(e))}function execArgumentsToXml(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=referenceToXml(t,i):n+=instanceToXml(t,i))}return n}function instanceToXml(e,t){if(null==t)return null;var n,i=!!t.__namespace,o=i?"<q:":"<",r=i?"</q:":"</",c="<r:"+e+(i?' xmlns:q="'+t.__namespace+'"':"")+">";for(n in t)t.hasOwnProperty(n)&&0!==n.indexOf("__")&&("function"==typeof t[n]||Array.isArray(t[n])||("object"==typeof t[n]?console.error("only convert one level down..."):c+=o+n+">"+t[n].toString()+r+n+">"));return c+="</r:"+e+">"}function referenceToXml(e,t){if(null==t)return null;var n,i="<r:"+e+"><a:Address>/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>"+t.__resourceUri+"</w:ResourceURI><w:SelectorSet>";for(n in t)t.hasOwnProperty(n)&&0!==n.indexOf("__")&&("function"==typeof t[n]||"object"==typeof t[n]||Array.isArray(t[n])||(i+='<w:Selector Name="'+n+'">'+t[n].toString()+"</w:Selector>"));return i+="</w:SelectorSet></a:ReferenceParameters></r:"+e+">"}function GetSidString(e){for(var t="S-"+e.charCodeAt(0)+"-"+e.charCodeAt(7),n=2;n<e.length/4;n++)t+="-"+ReadIntX(e,4*n);return t}function GetSidByteArray(e){if(!e||null==e)return null;var t=e.split("-");if(t.length<4||"s"!=t[0]&&"S"!=t[0])return null;for(var n=1;n<t.length;n++){var i=parseInt(t[n]);if(i!=t[n])return null;t[n]=i}for(var o=String.fromCharCode(t[1])+String.fromCharCode(t.length-3)+ShortToStr(Math.floor(t[2]/Math.pow(2,32)))+IntToStr(65535&t[2]),n=3;n<t.length;n++)o+=IntToStrX(t[n]);return o}
\ No newline at end of file
1 +function AmtStackCreateService(e){var C=new Object;C.wsman=e,C.pfx=["http://intel.com/wbem/wscim/1/amt-schema/1/","http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/","http://intel.com/wbem/wscim/1/ips-schema/1/"],C.PendingEnums=[],C.PendingBatchOperations=0,C.ActiveEnumsCount=0,C.MaxActiveEnumsCount=1,C.onProcessChanged=null;var t=0,n=0;function A(){var e=C.GetPendingActions();t<e&&(t=e),null!=C.onProcessChanged&&n!=e&&(n=e,C.onProcessChanged(e,t)),0==e&&(t=0)}function _(e){C.ActiveEnumsCount-=e,C.ActiveEnumsCount>=C.MaxActiveEnumsCount||0==C.PendingEnums.length||(e=C.PendingEnums.shift(),C.Enum(e[0],e[1],e[2]),_(0))}function c(r){r.names.length<=r.current?r.callback(C,r.name,r.responses,200,r.tag):(C.wsman.ExecGet(C.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback(C,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),A()}function i(e,t,n,i,o){200==i&&"0"==n.Body.ReturnValue?C.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,o):o[0](C,null,o[2])}function m(e,t,n,i,o){if(200==i&&"0"==n.Body.ReturnValue){var r,c,a,s,u,d,S,A,_=o[2],l=new Date,E=n.Body.RecordArray;for(r in"string"==typeof E&&(n.Body.RecordArray=[n.Body.RecordArray]),E){s=null;try{s=window.atob(E[r])}catch(e){}if(null!=s&&0<(u=ReadIntX(s,0))&&u<4294967295){for(a={DeviceAddress:s.charCodeAt(4),EventSensorType:s.charCodeAt(5),EventType:s.charCodeAt(6),EventOffset:s.charCodeAt(7),EventSourceType:s.charCodeAt(8),EventSeverity:s.charCodeAt(9),SensorNumber:s.charCodeAt(10),Entity:s.charCodeAt(11),EntityInstance:s.charCodeAt(12),EventData:[],Time:new Date(1e3*(u+60*l.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s.charCodeAt(c));a.EntityStr=I[a.Entity],a.Desc=(d=a.EventSensorType,S=a.EventOffset,A=a.EventData,a.Entity,15!=d?18!=d||170!=A[0]?6==d?"Authentication failed "+(A[1]+(A[2]<<8))+" times. The system may be under attack.":30==d?"No bootable media":32==d?"Operating system lockup or power interrupt":35==d?"System boot failure":37==d?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+d:"Agent watchdog "+char2hex(A[4])+char2hex(A[3])+char2hex(A[2])+char2hex(A[1])+"-"+char2hex(A[6])+char2hex(A[5])+"-... changed to "+C.WatchdogCurrentStates[A[7]]:235==A[0]?"Invalid Data":(0==S?g:M)[A[1]]),a.EntityStr||(a.EntityStr="Unknown"),_.push(a)}}1!=n.Body.NoMoreRecords?C.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,m,[o[0],_,o[2]]):o[0](C,_,o[2])}else o[0](C,null,o[2])}C.GetPendingActions=function(){return 2*C.PendingEnums.length+C.ActiveEnumsCount+C.wsman.comm.PendingAjax.length+C.wsman.comm.ActiveAjaxCount+C.PendingBatchOperations},C.Subscribe=function(o,e,t,r,c,n,i,a,s,u){C.wsman.ExecSubscribe(C.CompleteName(o),e,t,function(e,t,n,i){A(),r(C,o,n,i,c)},0,n,i,a,s,u),A()},C.UnSubscribe=function(o,r,c,e,t){C.wsman.ExecUnSubscribe(C.CompleteName(o),function(e,t,n,i){A(),r(C,o,n,i,c)},0,e,t),A()},C.Get=function(o,r,c,e){C.wsman.ExecGet(C.CompleteName(o),function(e,t,n,i){A(),r(C,o,n,i,c)},0,e),A()},C.Put=function(o,e,r,c,t,n){C.wsman.ExecPut(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t,n),A()},C.Create=function(o,e,r,c,t){C.wsman.ExecCreate(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t),A()},C.Delete=function(o,e,r,c,t){C.wsman.ExecDelete(C.CompleteName(o),e,function(e,t,n,i){A(),r(C,o,n,i,c)},0,t),A()},C.Exec=function(o,e,t,r,c,n,i){C.wsman.ExecMethod(C.CompleteName(o),e,t,function(e,t,n,i){A(),r(C,o,C.CompleteExecResponse(n),i,c)},0,n,i),A()},C.ExecWithXml=function(o,e,t,r,c,n,i){C.wsman.ExecMethodXml(C.CompleteName(o),e,execArgumentsToXml(t),function(e,t,n,i){A(),r(C,o,C.CompleteExecResponse(n),i,c)},0,n,i),A()},C.Enum=function(r,c,e,t){C.ActiveEnumsCount<C.MaxActiveEnumsCount?(C.ActiveEnumsCount++,C.wsman.ExecEnum(C.CompleteName(r),function(e,t,n,i,o){A(),function(o,e,r,t,n,c){if(200!=n)return r(C,o,null,n,c),_(1);if(null==e||"EnumerateResponse"!=e.Header.Method||!e.Body.EnumerationContext)return r(C,o,null,603,c),_(1);e=e.Body.EnumerationContext;C.wsman.ExecPull(t,e,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c(C,r,null,n,s),void _(1);if(null==e||"PullResponse"!=e.Header.Method)return c(C,r,null,604,s),void _(1);for(var u in e.Body.Items)if(e.Body.Items[u]instanceof Array)for(var d in e.Body.Items[u])a.push(e.Body.Items[u][d]);else a.push(e.Body.Items[u]);{var S;e.Body.EnumerationContext?(S=e.Body.EnumerationContext,C.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(_(1),c(C,r,a,n,s),A())}}(o,n,r,t,[],i,c)})}(r,n,c,t,i,o)},e,t)):C.PendingEnums.push([r,c,e,t]),A()},C.BatchEnum=function(e,t,n,i,o,r){C.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){C.PendingBatchOperations-=2;var t=a.shift(),n=C.Enum;"*"==t[0]&&(n=C.Get,t=t.substring(1));n(t,function(e,t,n,i,o){o[2][t]={response:null==n?null:n.Body,responses:n,status:i},0==o[1].length||401==i||1!=d&&200!=i&&400!=i?(C.PendingBatchOperations-=2*a.length,A(),s(C,c,o[2],i,u)):(A(),r(c,a,s,u,o[2],S))},[c,a,e],S);A()}(e,Clone(t),n,i,{},o,r),A()},C.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),A()},C.CompleteName=function(e){return 0==e.indexOf("AMT_")?C.pfx[0]+e:0==e.indexOf("CIM_")?C.pfx[1]+e:0==e.indexOf("IPS_")?C.pfx[2]+e:void 0},C.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&e.Body.ReturnValue&&(e.Body.ReturnValueStr=C.AmtStatusToStr(e.Body.ReturnValue)),e},C.RequestPowerStateChange=function(e,t){C.CIM_PowerManagementService_RequestPowerStateChange(e,'<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="CreationClassName">CIM_ComputerSystem</Selector><Selector Name="Name">ManagedSystem</Selector></SelectorSet></ReferenceParameters>',null,null,t)},C.SetBootConfigRole=function(e,t){C.CIM_BootService_SetBootConfigRole('<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: Boot Configuration 0</Selector></SelectorSet></ReferenceParameters>',e,t)},C.CancelAllQueries=function(e){C.wsman.CancelAllQueries(e)},C.AMT_AgentPresenceWatchdog_RegisterAgent=function(e){C.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e)},C.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t){C.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t){C.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){C.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},C.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){C.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},C.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){C.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},C.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){C.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},C.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},C.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){C.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},C.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){C.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},C.AMT_AuditLog_ClearLog=function(e){C.Exec("AMT_AuditLog","ClearLog",{},e)},C.AMT_AuditLog_RequestStateChange=function(e,t,n){C.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_AuditLog_ReadRecords=function(e,t,n){C.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},C.AMT_AuditLog_SetAuditLock=function(e,t,n,i){C.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},C.AMT_AuditLog_ExportAuditLogSignature=function(e,t){C.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},C.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){C.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},C.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){C.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},C.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){C.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},C.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){C.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},C.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){C.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},C.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){C.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},C.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){C.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},C.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){C.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},C.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){C.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},C.AMT_AuthorizationService_GetAdminAclEntry=function(e){C.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},C.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){C.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},C.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){C.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},C.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){C.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},C.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){C.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},C.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){C.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_EndpointAccessControlService_GetPosture=function(e,t){C.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},C.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){C.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},C.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){C.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},C.AMT_EndpointAccessControlService_GetEacOptions=function(e){C.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},C.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){C.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},C.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){C.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},C.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){C.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},C.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){C.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},C.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){C.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},C.AMT_KerberosSettingData_GetCredentialCacheState=function(e){C.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},C.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){C.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},C.AMT_MessageLog_CancelIteration=function(e,t){C.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},C.AMT_MessageLog_RequestStateChange=function(e,t,n){C.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_MessageLog_ClearLog=function(e){C.Exec("AMT_MessageLog","ClearLog",{},e)},C.AMT_MessageLog_GetRecords=function(e,t,n,i){C.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},C.AMT_MessageLog_GetRecord=function(e,t,n){C.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},C.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){C.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},C.AMT_MessageLog_PositionToFirstRecord=function(e,t){C.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},C.AMT_MessageLog_FreezeLog=function(e,t){C.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},C.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){C.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},C.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){C.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},C.AMT_PublicKeyManagementService_AddCertificate=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t)},C.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},C.AMT_PublicKeyManagementService_AddKey=function(e,t){C.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},C.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){C.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},C.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){C.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},C.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){C.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},C.AMT_RedirectionService_RequestStateChange=function(e,t){C.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},C.AMT_RedirectionService_TerminateSession=function(e,t){C.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},C.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){C.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},C.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){C.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},C.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){C.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_CommitChanges=function(e,t){C.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_Unprovision=function(e,t){C.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},C.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){C.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){C.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},C.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){C.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},C.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){C.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},C.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){C.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},C.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){C.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},C.AMT_SetupAndConfigurationService_GetUuid=function(e){C.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},C.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){C.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},C.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){C.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},C.AMT_SystemDefensePolicy_GetTimeout=function(e){C.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},C.AMT_SystemDefensePolicy_SetTimeout=function(e,t){C.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},C.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){C.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},C.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){C.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},C.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){C.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},C.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){C.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},C.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){C.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_WebUIService_RequestStateChange=function(e,t,n){C.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){C.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},C.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){C.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},C.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){C.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},C.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){C.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},C.CIM_Account_RequestStateChange=function(e,t,n){C.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_AccountManagementService_CreateAccount=function(e,t,n){C.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},C.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){C.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},C.CIM_BootService_SetBootConfigRole=function(e,t,n){C.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},C.CIM_Card_ConnectorPower=function(e,t,n){C.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},C.CIM_Card_IsCompatible=function(e,t){C.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},C.CIM_Chassis_IsCompatible=function(e,t){C.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},C.CIM_Fan_SetSpeed=function(e,t){C.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},C.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){C.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},C.CIM_MediaAccessDevice_LockMedia=function(e,t){C.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},C.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){C.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_MediaAccessDevice_Reset=function(e){C.Exec("CIM_MediaAccessDevice","Reset",{},e)},C.CIM_MediaAccessDevice_EnableDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},C.CIM_MediaAccessDevice_OnlineDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},C.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){C.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},C.CIM_MediaAccessDevice_SaveProperties=function(e){C.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},C.CIM_MediaAccessDevice_RestoreProperties=function(e){C.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},C.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){C.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_PhysicalFrame_IsCompatible=function(e,t){C.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},C.CIM_PhysicalPackage_IsCompatible=function(e,t){C.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},C.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){C.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},C.CIM_PowerSupply_SetPowerState=function(e,t,n){C.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_PowerSupply_Reset=function(e){C.Exec("CIM_PowerSupply","Reset",{},e)},C.CIM_PowerSupply_EnableDevice=function(e,t){C.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},C.CIM_PowerSupply_OnlineDevice=function(e,t){C.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},C.CIM_PowerSupply_QuiesceDevice=function(e,t){C.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},C.CIM_PowerSupply_SaveProperties=function(e){C.Exec("CIM_PowerSupply","SaveProperties",{},e)},C.CIM_PowerSupply_RestoreProperties=function(e){C.Exec("CIM_PowerSupply","RestoreProperties",{},e)},C.CIM_PowerSupply_RequestStateChange=function(e,t,n){C.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_Processor_SetPowerState=function(e,t,n){C.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Processor_Reset=function(e){C.Exec("CIM_Processor","Reset",{},e)},C.CIM_Processor_EnableDevice=function(e,t){C.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},C.CIM_Processor_OnlineDevice=function(e,t){C.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},C.CIM_Processor_QuiesceDevice=function(e,t){C.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},C.CIM_Processor_SaveProperties=function(e){C.Exec("CIM_Processor","SaveProperties",{},e)},C.CIM_Processor_RestoreProperties=function(e){C.Exec("CIM_Processor","RestoreProperties",{},e)},C.CIM_Processor_RequestStateChange=function(e,t,n){C.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_RecordLog_ClearLog=function(e){C.Exec("CIM_RecordLog","ClearLog",{},e)},C.CIM_RecordLog_RequestStateChange=function(e,t,n){C.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_RedirectionService_RequestStateChange=function(e,t,n){C.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_Sensor_SetPowerState=function(e,t,n){C.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Sensor_Reset=function(e){C.Exec("CIM_Sensor","Reset",{},e)},C.CIM_Sensor_EnableDevice=function(e,t){C.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},C.CIM_Sensor_OnlineDevice=function(e,t){C.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},C.CIM_Sensor_QuiesceDevice=function(e,t){C.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},C.CIM_Sensor_SaveProperties=function(e){C.Exec("CIM_Sensor","SaveProperties",{},e)},C.CIM_Sensor_RestoreProperties=function(e){C.Exec("CIM_Sensor","RestoreProperties",{},e)},C.CIM_Sensor_RequestStateChange=function(e,t,n){C.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_StatisticalData_ResetSelectedStats=function(e,t){C.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},C.CIM_Watchdog_KeepAlive=function(e){C.Exec("CIM_Watchdog","KeepAlive",{},e)},C.CIM_Watchdog_SetPowerState=function(e,t,n){C.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_Watchdog_Reset=function(e){C.Exec("CIM_Watchdog","Reset",{},e)},C.CIM_Watchdog_EnableDevice=function(e,t){C.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},C.CIM_Watchdog_OnlineDevice=function(e,t){C.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},C.CIM_Watchdog_QuiesceDevice=function(e,t){C.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},C.CIM_Watchdog_SaveProperties=function(e){C.Exec("CIM_Watchdog","SaveProperties",{},e)},C.CIM_Watchdog_RestoreProperties=function(e){C.Exec("CIM_Watchdog","RestoreProperties",{},e)},C.CIM_Watchdog_RequestStateChange=function(e,t,n){C.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.CIM_WiFiPort_SetPowerState=function(e,t,n){C.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},C.CIM_WiFiPort_Reset=function(e){C.Exec("CIM_WiFiPort","Reset",{},e)},C.CIM_WiFiPort_EnableDevice=function(e,t){C.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},C.CIM_WiFiPort_OnlineDevice=function(e,t){C.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},C.CIM_WiFiPort_QuiesceDevice=function(e,t){C.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},C.CIM_WiFiPort_SaveProperties=function(e){C.Exec("CIM_WiFiPort","SaveProperties",{},e)},C.CIM_WiFiPort_RestoreProperties=function(e){C.Exec("CIM_WiFiPort","RestoreProperties",{},e)},C.CIM_WiFiPort_RequestStateChange=function(e,t,n){C.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){C.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},C.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){C.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},C.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){C.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},C.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){C.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},C.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){C.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},C.IPS_KVMRedirectionSettingData_TerminateSession=function(e){C.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},C.IPS_OptInService_StartOptIn=function(e){C.Exec("IPS_OptInService","StartOptIn",{},e)},C.IPS_OptInService_CancelOptIn=function(e){C.Exec("IPS_OptInService","CancelOptIn",{},e)},C.IPS_OptInService_SendOptInCode=function(e,t){C.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},C.IPS_OptInService_StartService=function(e){C.Exec("IPS_OptInService","StartService",{},e)},C.IPS_OptInService_StopService=function(e){C.Exec("IPS_OptInService","StopService",{},e)},C.IPS_OptInService_RequestStateChange=function(e,t,n){C.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){C.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.IPS_ProvisioningRecordLog_ClearLog=function(e,t){C.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},C.IPS_SecIOService_RequestStateChange=function(e,t,n){C.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},C.AmtStatusToStr=function(e){return C.AmtStatusCodes[e]||"UNKNOWN_ERROR"},C.AmtStatusCodes={0:"SUCCESS",1:"INTERNAL_ERROR",2:"NOT_READY",3:"INVALID_PT_MODE",4:"INVALID_MESSAGE_LENGTH",5:"TABLE_FINGERPRINT_NOT_AVAILABLE",6:"INTEGRITY_CHECK_FAILED",7:"UNSUPPORTED_ISVS_VERSION",8:"APPLICATION_NOT_REGISTERED",9:"INVALID_REGISTRATION_DATA",10:"APPLICATION_DOES_NOT_EXIST",11:"NOT_ENOUGH_STORAGE",12:"INVALID_NAME",13:"BLOCK_DOES_NOT_EXIST",14:"INVALID_BYTE_OFFSET",15:"INVALID_BYTE_COUNT",16:"NOT_PERMITTED",17:"NOT_OWNER",18:"BLOCK_LOCKED_BY_OTHER",19:"BLOCK_NOT_LOCKED",20:"INVALID_GROUP_PERMISSIONS",21:"GROUP_DOES_NOT_EXIST",22:"INVALID_MEMBER_COUNT",23:"MAX_LIMIT_REACHED",24:"INVALID_AUTH_TYPE",25:"AUTHENTICATION_FAILED",26:"INVALID_DHCP_MODE",27:"INVALID_IP_ADDRESS",28:"INVALID_DOMAIN_NAME",29:"UNSUPPORTED_VERSION",30:"REQUEST_UNEXPECTED",31:"INVALID_TABLE_TYPE",32:"INVALID_PROVISIONING_STATE",33:"UNSUPPORTED_OBJECT",34:"INVALID_TIME",35:"INVALID_INDEX",36:"INVALID_PARAMETER",37:"INVALID_NETMASK",38:"FLASH_WRITE_LIMIT_EXCEEDED",39:"INVALID_IMAGE_LENGTH",40:"INVALID_IMAGE_SIGNATURE",41:"PROPOSE_ANOTHER_VERSION",42:"INVALID_PID_FORMAT",43:"INVALID_PPS_FORMAT",44:"BIST_COMMAND_BLOCKED",45:"CONNECTION_FAILED",46:"CONNECTION_TOO_MANY",47:"RNG_GENERATION_IN_PROGRESS",48:"RNG_NOT_READY",49:"CERTIFICATE_NOT_READY",1024:"DISABLED_BY_POLICY",2048:"NETWORK_IF_ERROR_BASE",2049:"UNSUPPORTED_OEM_NUMBER",2050:"UNSUPPORTED_BOOT_OPTION",2051:"INVALID_COMMAND",2052:"INVALID_SPECIAL_COMMAND",2053:"INVALID_HANDLE",2054:"INVALID_PASSWORD",2055:"INVALID_REALM",2056:"STORAGE_ACL_ENTRY_IN_USE",2057:"DATA_MISSING",2058:"DUPLICATE",2059:"EVENTLOG_FROZEN",2060:"PKI_MISSING_KEYS",2061:"PKI_GENERATING_KEYS",2062:"INVALID_KEY",2063:"INVALID_CERT",2064:"CERT_KEY_NOT_MATCH",2065:"MAX_KERB_DOMAIN_REACHED",2066:"UNSUPPORTED",2067:"INVALID_PRIORITY",2068:"NOT_FOUND",2069:"INVALID_CREDENTIALS",2070:"INVALID_PASSPHRASE",2072:"NO_ASSOCIATION",2075:"AUDIT_FAIL",2076:"BLOCKING_COMPONENT",2081:"USER_CONSENT_REQUIRED",4096:"APP_INTERNAL_ERROR",4097:"NOT_INITIALIZED",4098:"LIB_VERSION_UNSUPPORTED",4099:"INVALID_PARAM",4100:"RESOURCES",4101:"HARDWARE_ACCESS_ERROR",4102:"REQUESTOR_NOT_REGISTERED",4103:"NETWORK_ERROR",4104:"PARAM_BUFFER_TOO_SHORT",4105:"COM_NOT_INITIALIZED_IN_THREAD",4106:"URL_REQUIRED"},C.GetMessageLog=function(e,t){C.AMT_MessageLog_PositionToFirstRecord(i,[e,t,[]])};"Platform firmware (e.g. BIOS)|SMI handler|ISV system management software|Alert ASIC|IPMI|BIOS vendor|System board set vendor|System integrator|Third party add-in|OSV|NIC|System management card".split("|");var g="Unspecified.|No system memory is physically installed in the system.|No usable system memory, all installed memory has experienced an unrecoverable failure.|Unrecoverable hard-disk/ATAPI/IDE device failure.|Unrecoverable system-board failure.|Unrecoverable diskette subsystem failure.|Unrecoverable hard-disk controller failure.|Unrecoverable PS/2 or USB keyboard failure.|Removable boot media not found.|Unrecoverable video controller failure.|No video device detected.|Firmware (BIOS) ROM corruption detected.|CPU voltage mismatch (processors that share same supply have mismatched voltage requirements)|CPU speed matching failure".split("|"),M="Unspecified.|Memory initialization.|Starting hard-disk initialization and test|Secondary processor(s) initialization|User authentication|User-initiated system setup|USB resource configuration|PCI resource configuration|Option ROM initialization|Video initialization|Cache initialization|SM Bus initialization|Keyboard controller initialization|Embedded controller/management controller initialization|Docking station attachment|Enabling docking station|Docking station ejection|Disabling docking station|Calling operating system wake-up vector|Starting operating system boot process|Baseboard or motherboard initialization|reserved|Floppy initialization|Keyboard test|Pointing device test|Primary processor initialization".split("|"),I="Unspecified|Other|Unknown|Processor|Disk|Peripheral|System management module|System board|Memory module|Processor module|Power supply|Add in card|Front panel board|Back panel board|Power system board|Drive backplane|System internal expansion board|Other system board|Processor board|Power unit|Power module|Power management board|Chassis back panel board|System chassis|Sub chassis|Other chassis board|Disk drive bay|Peripheral bay|Device bay|Fan cooling|Cooling unit|Cable interconnect|Memory device|System management software|BIOS|Intel(r) ME|System bus|Group|Intel(r) ME|External environment|Battery|Processing blade|Connectivity switch|Processor/memory module|I/O module|Processor I/O module|Management controller firmware|IPMI channel|PCI bus|PCI express bus|SCSI bus|SATA/SAS bus|Processor front side bus".split("|");C.RealmNames="||Redirection|PT Administration|Hardware Asset|Remote Control|Storage|Event Manager|Storage Admin|Agent Presence Local|Agent Presence Remote|Circuit Breaker|Network Time|General Information|Firmware Update|EIT|LocalUN|Endpoint Access Control|Endpoint Access Control Admin|Event Log Reader|Audit Log|ACL Realm|||Local System".split("|"),C.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"};var l={16:"Security Admin",17:"RCO",18:"Redirection Manager",19:"Firmware Update Manager",20:"Security Audit Log",21:"Network Time",22:"Network Administration",23:"Storage Administration",24:"Event Manager",25:"Circuit Breaker Manager",26:"Agent Presence Manager",27:"Wireless Configuration",28:"EAC",29:"KVM",30:"User Opt-In Events",32:"Screen Blanking",33:"Watchdog Events",1600:"Provisioning Started",1601:"Provisioning Completed",1602:"ACL Entry Added",1603:"ACL Entry Modified",1604:"ACL Entry Removed",1605:"ACL Access with Invalid Credentials",1606:"ACL Entry State",1607:"TLS State Changed",1608:"TLS Server Certificate Set",1609:"TLS Server Certificate Remove",1610:"TLS Trusted Root Certificate Added",1611:"TLS Trusted Root Certificate Removed",1612:"TLS Preshared Key Set",1613:"Kerberos Settings Modified",1614:"Kerberos Main Key Modified",1615:"Flash Wear out Counters Reset",1616:"Power Package Modified",1617:"Set Realm Authentication Mode",1618:"Upgrade Client to Admin Control Mode",1619:"Unprovisioning Started",1700:"Performed Power Up",1701:"Performed Power Down",1702:"Performed Power Cycle",1703:"Performed Reset",1704:"Set Boot Options",1800:"IDER Session Opened",1801:"IDER Session Closed",1802:"IDER Enabled",1803:"IDER Disabled",1804:"SoL Session Opened",1805:"SoL Session Closed",1806:"SoL Enabled",1807:"SoL Disabled",1808:"KVM Session Started",1809:"KVM Session Ended",1810:"KVM Enabled",1811:"KVM Disabled",1812:"VNC Password Failed 3 Times",1900:"Firmware Updated",1901:"Firmware Update Failed",2e3:"Security Audit Log Cleared",2001:"Security Audit Policy Modified",2002:"Security Audit Log Disabled",2003:"Security Audit Log Enabled",2004:"Security Audit Log Exported",2005:"Security Audit Log Recovered",2100:"Intel&reg; ME Time Set",2200:"TCPIP Parameters Set",2201:"Host Name Set",2202:"Domain Name Set",2203:"VLAN Parameters Set",2204:"Link Policy Set",2205:"IPv6 Parameters Set",2300:"Global Storage Attributes Set",2301:"Storage EACL Modified",2302:"Storage FPACL Modified",2303:"Storage Write Operation",2400:"Alert Subscribed",2401:"Alert Unsubscribed",2402:"Event Log Cleared",2403:"Event Log Frozen",2500:"CB Filter Added",2501:"CB Filter Removed",2502:"CB Policy Added",2503:"CB Policy Removed",2504:"CB Default Policy Set",2505:"CB Heuristics Option Set",2506:"CB Heuristics State Cleared",2600:"Agent Watchdog Added",2601:"Agent Watchdog Removed",2602:"Agent Watchdog Action Set",2700:"Wireless Profile Added",2701:"Wireless Profile Removed",2702:"Wireless Profile Updated",2800:"EAC Posture Signer SET",2801:"EAC Enabled",2802:"EAC Disabled",2803:"EAC Posture State",2804:"EAC Set Options",2900:"KVM Opt-in Enabled",2901:"KVM Opt-in Disabled",2902:"KVM Password Changed",2903:"KVM Consent Succeeded",2904:"KVM Consent Failed",3e3:"Opt-In Policy Change",3001:"Send Consent Code Event",3002:"Start Opt-In Blocked Event"};function E(e,t,n,i,o){if(200==i){var r,c,a,s,u,d=o[1],S=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=MakeToArray(n.Body.EventRecords),n.Body.EventRecords){a=null;try{a=window.atob(n.Body.EventRecords[c])}catch(a){console.log(a+" "+n.Body.EventRecords[c])}(u={AuditAppID:ReadShort(a,0),EventID:ReadShort(a,2),InitiatorType:a.charCodeAt(4)}).AuditApp=l[u.AuditAppID],u.Event=l[100*u.AuditAppID+u.EventID],u.Event||(u.Event="#"+u.EventID),0==u.InitiatorType&&(s=a.charCodeAt(5),u.Initiator=a.substring(6,6+s),r=6+s),1==u.InitiatorType&&(u.KerberosUserInDomain=ReadInt(a,5),s=a.charCodeAt(9),u.Initiator=GetSidString(a.substring(10,10+s)),r=10+s),2==u.InitiatorType&&(u.Initiator="<i>Local</i>",r=5),3==u.InitiatorType&&(u.Initiator="<i>KVM Default Port</i>",r=5),A=ReadInt(a,r),u.Time=new Date(1e3*(A+60*S.getTimezoneOffset())),r+=4,u.MCLocationType=a.charCodeAt(r++);var A=a.charCodeAt(r++);u.NetAddress=a.substring(r,r+A),r+=A;A=a.charCodeAt(r++);u.Ex=a.substring(r,r+A),u.ExStr=C.GetAuditLogExtendedDataStr(100*u.AuditAppID+u.EventID,u.Ex),d.push(u)}n.Body.TotalRecordCount>d.length?C.AMT_AuditLog_ReadRecords(d.length+1,E,[o[0],d]):o[0](C,d,i)}else o[0](C,[],i)}return C.GetAuditLogExtendedDataStr=function(e,t){if((1602==e||1604==e)&&0==t.charCodeAt(0))return t.substring(2,2+t.charCodeAt(1));if(1603==e)return 0==t.charCodeAt(1)?t.substring(3):null;if(1605==e)return["Invalid ME access","Invalid MEBx access"][t.charCodeAt(0)];if(1606==e){var n=["Disabled","Enabled"][t.charCodeAt(0)];return 0==t.charCodeAt(1)&&(n+=", "+t.substring(3)),n}if(1607==e)return"Remote "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(0)]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(1)];if(1617==e)return C.RealmNames[ReadInt(t,0)]+", "+["NoAuth","Auth","Disabled"][t.charCodeAt(4)];if(1619==e)return["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t.charCodeAt(0)];if(1900==e)return"From "+ReadShort(t,0)+"."+ReadShort(t,2)+"."+ReadShort(t,4)+"."+ReadShort(t,6)+" to "+ReadShort(t,8)+"."+ReadShort(t,10)+"."+ReadShort(t,12)+"."+ReadShort(t,14);if(2100!=e)return 3e3==e?"From "+["None","KVM","All"][t.charCodeAt(0)]+" to "+["None","KVM","All"][t.charCodeAt(1)]:3001==e?["Success","Failed 3 times"][t.charCodeAt(0)]:null;e=new Date;return e.setTime(1e3*ReadInt(t,0)+6e4*(new Date).getTimezoneOffset()),e.toLocaleString()},C.GetAuditLog=function(e){C.AMT_AuditLog_ReadRecords(1,E,[e,[]])},C}function hex_md5(e){return null==e&&(e=""),forge.md.md5.create().update(e).digest().toHex()}for(var md5_k=[],i=0;i<64;)md5_k[i]=0|4294967296*Math.abs(Math.sin(++i));function hex_md5(e){null==e&&(e="");for(var t,n,i,o,r=[],c=unescape(encodeURI(e)),a=c.length,s=[1732584193,-271733879,-1732584194,271733878],u=0;u<=a;)r[u>>2]|=(c.charCodeAt(u)||128)<<u++%4*8;for(r[e=16*(a+8>>6)+14]=8*a,u=0;u<e;u+=16){for(a=s,o=0;o<64;)a=[i=a[3],(t=0|a[1])+((i=a[0]+[t&(n=a[2])|~t&i,i&t|~i&n,t^n^i,n^(t|~i)][a=o>>4]+(md5_k[o]+(0|r[[o,5*o+1,3*o+5,7*o][a]%16+u])))<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>32-a),t,n];for(o=4;o;)s[--o]=s[o]+a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^7&o++)&15).toString(16);return e}function rstr_md5(e){return hex2rstr(hex_md5(e))}function execArgumentsToXml(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=referenceToXml(t,i):n+=instanceToXml(t,i))}return n}function instanceToXml(e,t){if(null==t)return null;var n,i=!!t.__namespace,o=i?"<q:":"<",r=i?"</q:":"</",c="<r:"+e+(i?' xmlns:q="'+t.__namespace+'"':"")+">";for(n in t)t.hasOwnProperty(n)&&0!==n.indexOf("__")&&("function"==typeof t[n]||Array.isArray(t[n])||("object"==typeof t[n]?console.error("only convert one level down..."):c+=o+n+">"+t[n].toString()+r+n+">"));return c+="</r:"+e+">"}function referenceToXml(e,t){if(null==t)return null;var n,i="<r:"+e+"><a:Address>/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>"+t.__resourceUri+"</w:ResourceURI><w:SelectorSet>";for(n in t)t.hasOwnProperty(n)&&0!==n.indexOf("__")&&("function"==typeof t[n]||"object"==typeof t[n]||Array.isArray(t[n])||(i+='<w:Selector Name="'+n+'">'+t[n].toString()+"</w:Selector>"));return i+="</w:SelectorSet></a:ReferenceParameters></r:"+e+">"}function GetSidString(e){for(var t="S-"+e.charCodeAt(0)+"-"+e.charCodeAt(7),n=2;n<e.length/4;n++)t+="-"+ReadIntX(e,4*n);return t}function GetSidByteArray(e){if(!e||null==e)return null;var t=e.split("-");if(t.length<4||"s"!=t[0]&&"S"!=t[0])return null;for(var n=1;n<t.length;n++){var i=parseInt(t[n]);if(i!=t[n])return null;t[n]=i}for(var o=String.fromCharCode(t[1])+String.fromCharCode(t.length-3)+ShortToStr(Math.floor(t[2]/Math.pow(2,32)))+IntToStr(65535&t[2]),n=3;n<t.length;n++)o+=IntToStrX(t[n]);return o}
\ No newline at end of file
public/scripts/amt-desktop-0.0.2-min.js
+1 -1
@@ -1 +1 @@
1 -var CreateAmtRemoteDesktop=function(a,t){var S={};function g(a){return String.fromCharCode.apply(null,a)}function m(a,t,e,n,o,r,s){var i,c,h,d,v=a[t++],f={},u=0,l=0;if(0==v){if(2==S.bpp)for(d=0;d<s;d++)b(a[t++]+(a[t++]<<8),d);else for(d=0;d<s;d++)y(a[t++],d);w(S.spare,e,n)}else if(1==v){c=a[t++]+(2==S.bpp?a[t++]<<8:0),S.canvas.fillStyle="rgb("+(1==S.bpp?(224&c)+","+((28&c)<<3)+","+L((3&c)<<6):(c>>8&248)+","+(c>>3&252)+","+((31&c)<<3))+")";var p=k(e);n=K(0,n),S.canvas.fillRect(e=p,n,o,r)}else if(1<v&&v<17){var g=4,m=15;if(2==S.bpp){for(d=0;d<v;d++)f[d]=a[t++]+(a[t++]<<8);for(2==v?m=g=1:v<=4&&(g=2,m=3);u<s&&t<a.byteLength;)for(c=a[t++],d=8-g;0<=d;d-=g)b(f[c>>d&m],u++)}else{for(d=0;d<v;d++)f[d]=a[t++];for(2==v?m=g=1:v<=4&&(g=2,m=3);u<s&&t<a.byteLength;)for(c=a[t++],d=8-g;0<=d;d-=g)y(f[c>>d&m],u++)}w(S.spare,e,n)}else if(128==v){if(2==S.bpp)for(;u<s&&t<a.byteLength;){for(c=a[t++]+(a[t++]<<8),l=1;l+=h=a[t++],255==h;);if(0==S.rotation)D(c,u,l),u+=l;else for(;0<=--l;)b(c,u++)}else for(;u<s&&t<a.byteLength;){for(c=a[t++],l=1;l+=h=a[t++],255==h;);if(0==S.rotation)C(c,u,l),u+=l;else for(;0<=--l;)y(c,u++)}w(S.spare,e,n)}else if(129<v){if(2==S.bpp)for(d=0;d<v-128;d++)f[d]=a[t++]+(a[t++]<<8);else for(d=0;d<v-128;d++)f[d]=a[t++];for(;u<s&&t<a.byteLength;){if(l=1,c=f[(i=a[t++])%128],127<i)for(;l+=h=a[t++],255==h;);if(0==S.rotation)(2==S.bpp?D:C)(c,u,l),u+=l;else if(2==S.bpp)for(;0<=--l;)b(c,u++);else for(;0<=--l;)y(c,u++)}w(S.spare,e,n)}}function w(a,t,e){var n,o,r;1!=S.holding&&(o=t,r=e,n=0==S.rotation?o:1==S.rotation?S.canvas.canvas.width-S.sparew2-r:2==S.rotation?S.canvas.canvas.width-S.sparew2-o:3==S.rotation?r:0,o=t,r=e,e=0==S.rotation?r:1==S.rotation?o:2==S.rotation?S.canvas.canvas.height-S.spareh2-r:3==S.rotation?S.canvas.canvas.height-S.spareh-o:0,S.canvas.putImageData(a,t=n,e))}function y(a,t){var e,n,o=t<<2;0<S.rotation&&(1==S.rotation?(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=e*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?o=S.sparew*S.spareh*4-4-o:3==S.rotation&&(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=(S.sparew2-1-e)*S.sparew2+n)<<2)),S.spare.data[o]=224&a,S.spare.data[o+1]=(28&a)<<3,S.spare.data[o+2]=L((3&a)<<6)}function b(a,t){var e,n,o=t<<2;0<S.rotation&&(1==S.rotation?(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=e*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?o=S.sparew*S.spareh*4-4-o:3==S.rotation&&(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=(S.sparew2-1-e)*S.sparew2+n)<<2)),S.spare.data[o]=a>>8&248,S.spare.data[o+1]=a>>3&252,S.spare.data[o+2]=(31&a)<<3}function C(a,t,e){for(var n=t<<2,o=224&a,r=(28&a)<<3,s=L((3&a)<<6);0<=--e;)S.spare.data[n]=o,S.spare.data[n+1]=r,S.spare.data[n+2]=s,n+=4}function D(a,t,e){for(var n=t<<2,o=a>>8&248,r=a>>3&252,s=(31&a)<<3;0<=--e;)S.spare.data[n]=o,S.spare.data[n+1]=r,S.spare.data[n+2]=s,n+=4}function k(a){return 0==S.rotation||1==S.rotation?a:2==S.rotation?a-S.canvas.canvas.width:3==S.rotation?a-S.canvas.canvas.height:0}function K(a,t){return 0==S.rotation?t:1==S.rotation?t-S.canvas.canvas.width:2==S.rotation?t-S.canvas.canvas.height:3==S.rotation?t:0}function L(a){return 127<a?a+32:a}function T(){var a;1!=S.holding&&(0<S.focusmode?(a=2*S.focusmode,S.send(String.fromCharCode(3,1)+ShortToStr(Math.max(Math.min(S.ox,S.mx)-S.focusmode,0))+ShortToStr(Math.max(Math.min(S.oy,S.my)-S.focusmode,0))+ShortToStr(a+Math.abs(S.ox-S.mx))+ShortToStr(a+Math.abs(S.oy-S.my))),S.ox=S.mx,S.oy=S.my):S.send(String.fromCharCode(3,1,0,0,0,0)+ShortToStr(S.rwidth)+ShortToStr(S.rheight)))}S.canvasid=a,S.CanvasId=Q(a),S.scrolldiv=t,S.canvas=Q(a).getContext("2d"),S.protocol=2,S.state=0,S.acc=null,S.ScreenWidth=960,S.ScreenHeight=700,S.width=0,S.height=0,S.rwidth=0,S.rheight=0,S.bpp=2,S.useZRLE=!0,S.showmouse=!0,S.buttonmask=0,S.localKeyMap=!0,S.spare=null,S.sparew=0,S.spareh=0,S.sparew2=0,S.spareh2=0,S.sparecache={},S.ZRLEfirst=1,S.onScreenSizeChange=null,S.frameRateDelay=0,S.noMouseRotate=!1,S.rotation=0,S.kvmDataSupported=!1,S.onKvmData=null,S.onKvmDataPending=[],S.onKvmDataAck=-1,S.holding=!1,S.lastKeepAlive=Date.now(),S.SwapMouse=!1,S.mNagleTimer=null,S.mx=0,S.my=0,S.ox=-1,S.oy=-1,S.focusmode=0,S.inflate=ZLIB.inflateInit(-15),S.xxStateChange=function(a){0==a?(S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),S.canvas.canvas.width=S.rwidth=S.width=640,S.canvas.canvas.height=S.rheight=S.height=400,QS(S.canvasid).cursor="default"):QS(S.canvasid).cursor=S.showmouse?"default":"none"},S.ProcessBinaryData=function(a){var t;for(null==S.acc?S.acc=new Uint8Array(a):((t=new Uint8Array(S.acc.byteLength+a.byteLength)).set(S.acc,0),t.set(new Uint8Array(a),S.acc.byteLength),S.acc=t);null!=S.acc&&0<S.acc.byteLength;){var e=0,n=new DataView(S.acc.buffer);if(0==S.state&&12<=S.acc.byteLength)e=12,S.state=1,S.send("RFB 003.008\n");else if(1==S.state&&1<=S.acc.byteLength)e=S.acc[0]+1,S.send(String.fromCharCode(1)),S.state=2;else if(2==S.state&&4<=S.acc.byteLength){if(e=4,0!=n.getUint32(0))return S.Stop();S.send(String.fromCharCode(1)),S.state=3}else if(3==S.state&&24<=S.acc.byteLength){S.rotation=0;var o=n.getUint32(20);if(S.acc.byteLength<24+o)return;e=24+o,S.canvas.canvas.width=S.rwidth=S.width=S.ScreenWidth=n.getUint16(0),S.canvas.canvas.height=S.rheight=S.height=S.ScreenHeight=n.getUint16(2);var r="";S.useZRLE&&(r+=IntToStr(16)),r+=IntToStr(0),r+=IntToStr(1092),S.send(String.fromCharCode(2,0)+ShortToStr(r.length/4+1)+r+IntToStr(-223)),1==S.bpp&&S.send(String.fromCharCode(0,0,0,0,8,8,0,1)+ShortToStr(7)+ShortToStr(7)+ShortToStr(3)+String.fromCharCode(5,2,0,0,0,0)),S.state=4,S.parent&&S.parent.xxStateChange(3),T(),S.ox=-1,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight)}else if(4==S.state)switch(S.acc[0]){case 0:if(S.acc.byteLength<4)return;S.state=100+n.getUint16(2),e=4;break;case 2:e=1;break;case 3:if(S.acc.byteLength<8)return;var s=n.getUint32(4)+8;if(S.acc.byteLength<s)return;e=function(a,t){if(a.byteLength<8)return 0;t=t.getUint32(4)+8;if(a.byteLength<t)return 0;null==S.onKvmData||16<=(a=g(a.slice(8,t))).length&&"\0KvmDataChannel"==a.substring(0,15)&&(0==S.kvmDataSupported&&(S.kvmDataSupported=!0,console.log("KVM Data Channel Supported.")),(-1==S.onKvmDataAck&&16==a.length||0!=a.charCodeAt(15))&&(S.onKvmDataAck=!0),16<=a.length&&S.onKvmData(a.substring(16)),1==S.onKvmDataAck&&0<S.onKvmDataPending.length&&S.sendKvmData(S.onKvmDataPending.shift()));return t}(S.acc,n)}else if(100<S.state&&12<=S.acc.byteLength){var i=n.getUint16(0),c=n.getUint16(2),h=n.getUint16(4),d=n.getUint16(6),v=h*d,o=n.getUint32(8);if(o<17){if(h<1||64<h||d<1||64<d)return console.log("Invalid tile size ("+h+","+d+"), disconnecting."),S.Stop();if(S.sparew!=h||S.spareh!=d){S.sparew=S.sparew2=h,S.spareh=S.spareh2=d,1!=S.rotation&&3!=S.rotation||(S.sparew2=d,S.spareh2=h);r=S.sparew2+"x"+S.spareh2;if(S.spare=S.sparecache[r],!S.spare){S.sparecache[r]=S.spare=S.canvas.createImageData(S.sparew2,S.spareh2);for(var f=S.sparew2*S.spareh2<<2,u=3;u<f;u+=4)S.spare.data[u]=255}}}if(4294967073==o)S.canvas.canvas.width=S.rwidth=S.width=h,S.canvas.canvas.height=S.rheight=S.height=d,S.send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height)),e=12,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight);else if(0==o){var l=12,p=12+v*S.bpp;if(S.acc.byteLength<p)return;if(e=p,2==S.bpp)for(u=0;u<v;u++)b(n.getUint16(l,!0),u),l+=2;else for(u=0;u<v;u++)y(S.acc[l++],u);w(S.spare,i,c)}else{if(16!=o)return S.Stop();if(S.acc.byteLength<16)return;p=n.getUint32(12);if(S.acc.byteLength<16+p)return;l=16;5<p&&0==S.acc[l]&&n.getUint16(l+1,!0)==p-5?m(S.acc,l+5,i,c,h,d,v):0<(o=S.inflate.inflate(g(new Uint8Array(S.acc.buffer.slice(l,+(l+p)))))).length?m(function(a){for(var t=new Uint8Array(a.length),e=0,n=a.length;e<n;++e)t[e]=a.charCodeAt(e);return t}(o),0,i,c,h,d,v,o.length):console.log("Invalid deflate data"),e=16+p}100==--S.state&&(S.state=4,0==S.frameRateDelay?T():setTimeout(T,S.frameRateDelay))}if(0==e)return;e!=S.acc.byteLength?S.acc=new Uint8Array(S.acc.buffer.slice(e)):S.acc=null}},S.hold=function(a){S.holding!=a&&(S.holding=a,S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),0==S.holding?(S.canvas.canvas.width==S.width&&S.canvas.canvas.height==S.height||(S.canvas.canvas.width=S.width,S.canvas.canvas.height=S.height,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight)),S.Send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height))):(S.UnGrabMouseInput(),S.UnGrabKeyInput()))},S.tcanvas=null,S.setRotation=function(a){for(;a<0;)a+=4;var t=a%4;if(1!=S.holding){if(t==S.rotation)return!0;var e=S.canvas.canvas.width,n=S.canvas.canvas.height;1!=S.rotation&&3!=S.rotation||(e=S.canvas.canvas.height,n=S.canvas.canvas.width),null==S.tcanvas&&(S.tcanvas=document.createElement("canvas"));var o=S.tcanvas.getContext("2d");return o.setTransform(1,0,0,1,0,0),o.canvas.width=e,o.canvas.height=n,o.rotate(-90*S.rotation*Math.PI/180),0==S.rotation&&o.drawImage(S.canvas.canvas,0,0),1==S.rotation&&o.drawImage(S.canvas.canvas,-S.canvas.canvas.width,0),2==S.rotation&&o.drawImage(S.canvas.canvas,-S.canvas.canvas.width,-S.canvas.canvas.height),3==S.rotation&&o.drawImage(S.canvas.canvas,0,-S.canvas.canvas.height),0!=S.rotation&&2!=S.rotation||(S.canvas.canvas.height=e,S.canvas.canvas.width=n),1!=S.rotation&&3!=S.rotation||(S.canvas.canvas.height=n,S.canvas.canvas.width=e),S.canvas.setTransform(1,0,0,1,0,0),S.canvas.rotate(90*t*Math.PI/180),S.rotation=t,S.canvas.drawImage(S.tcanvas,k(0),K(0,0)),S.width=S.canvas.canvas.width,S.height=S.canvas.canvas.height,null!=S.onScreenResize&&S.onScreenResize(S,S.width,S.height,S.CanvasId),!0}S.rotation=t},S.Start=function(){for(var a in S.state=0,S.acc=null,S.ZRLEfirst=1,S.inflate.inflateReset(),S.onKvmDataPending=[],S.onKvmDataAck=-1,S.kvmDataSupported=!1,S.sparecache)delete S.sparecache[a]},S.Stop=function(){S.UnGrabMouseInput(),S.UnGrabKeyInput(),S.parent&&S.parent.Stop()},S.send=function(a){S.parent&&S.parent.send(a)};var o={Pause:19,CapsLock:20,Space:32,Quote:39,Minus:45,NumpadMultiply:42,NumpadAdd:43,PrintScreen:44,Comma:44,NumpadSubtract:45,NumpadDecimal:46,Period:46,Slash:47,NumpadDivide:47,Semicolon:59,Equal:61,OSLeft:91,BracketLeft:91,OSRight:91,Backslash:92,BracketRight:93,ContextMenu:93,Backquote:96,NumLock:144,ScrollLock:145,Backspace:65288,Tab:65289,Enter:65293,NumpadEnter:65293,Escape:65307,Delete:65535,Home:65360,PageUp:65365,PageDown:65366,ArrowLeft:65361,ArrowUp:65362,ArrowRight:65363,ArrowDown:65364,End:65367,Insert:65379,F1:65470,F2:65471,F3:65472,F4:65473,F5:65474,F6:65475,F7:65476,F8:65477,F9:65478,F10:65479,F11:65480,F12:65481,ShiftLeft:65505,ShiftRight:65506,ControlLeft:65507,ControlRight:65508,AltLeft:65513,AltRight:65514,MetaLeft:65511,MetaRight:65512};function e(a,t){var e,n;return(t=t||window.event).code&&0==S.localKeyMap?null!=(e=(n=t).code.startsWith("Key")&&4==n.code.length?n.code.charCodeAt(3)+(0==n.shiftKey?32:0):n.code.startsWith("Digit")&&6==n.code.length?n.code.charCodeAt(5):n.code.startsWith("Numpad")&&7==n.code.length?n.code.charCodeAt(6):o[n.code])&&S.sendkey(e,a):(n=e=t.keyCode,0==t.shiftKey&&65<=e&&e<=90&&(n=e+32),112<=e&&e<=124&&(n=e+65358),8==e&&(n=65288),9==e&&(n=65289),13==e&&(n=65293),16==e&&(n=65505),17==e&&(n=65507),18==e&&(n=65513),27==e&&(n=65307),33==e&&(n=65365),34==e&&(n=65366),35==e&&(n=65367),36==e&&(n=65360),37==e&&(n=65361),38==e&&(n=65362),39==e&&(n=65363),40==e&&(n=65364),45==e&&(n=65379),46==e&&(n=65535),96<=e&&e<=105&&(n=e-48),106==e&&(n=42),107==e&&(n=43),109==e&&(n=45),110==e&&(n=46),111==e&&(n=47),186==e&&(n=59),187==e&&(n=61),188==e&&(n=44),189==e&&(n=45),190==e&&(n=46),191==e&&(n=47),192==e&&(n=96),219==e&&(n=91),220==e&&(n=92),221==e&&(n=93),S.sendkey(n=222==e?39:n,a)),S.haltEvent(t)}S.sendkey=function(a,t){if("object"==typeof a){var e,n="";for(e in a)n+=String.fromCharCode(4,a[e][1],0,0)+IntToStr(a[e][0]);S.send(n)}else S.send(String.fromCharCode(4,t,0,0)+IntToStr(a))},S.sendKvmData=function(a){!0!==S.onKvmDataAck?S.onKvmDataPending.push(a):(a="\0KvmDataChannel\0"+a,S.send(String.fromCharCode(6,0,0,0)+IntToStr(a.length)+a),S.onKvmDataAck=!1)},S.sendKeepAlive=function(){S.lastKeepAlive<Date.now()-5e3&&(S.lastKeepAlive=Date.now(),S.send(String.fromCharCode(6,0,0,0)+IntToStr(16)+"\0KvmDataChannel\0"))},S.SendCtrlAltDelMsg=function(){S.sendcad()};var n=!(S.sendcad=function(){S.sendkey([[65507,1],[65513,1],[65535,1],[65535,0],[65513,0],[65507,0]])}),r=!1;return S.GrabMouseInput=function(){var a;1!=n&&((a=S.canvas.canvas).onmouseup=S.mouseup,a.onmousedown=S.mousedown,a.onmousemove=S.mousemove,n=!0)},S.UnGrabMouseInput=function(){var a;0!=n&&((a=S.canvas.canvas).onmousemove=null,a.onmouseup=null,a.onmousedown=null,n=!1)},S.GrabKeyInput=function(){1!=r&&(document.onkeyup=S.handleKeyUp,document.onkeydown=S.handleKeyDown,document.onkeypress=S.handleKeys,r=!0)},S.UnGrabKeyInput=function(){0!=r&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,r=!1)},S.handleKeys=function(a){return S.haltEvent(a)},S.handleKeyUp=function(a){return e(0,a)},S.handleKeyDown=function(a){return e(1,a)},S.haltEvent=function(a){return a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),!1},S.mousedblclick=function(a){},S.mousedown=function(a){var t=a.button;return S.SwapMouse&&(0==t?t=2:2==t&&(t=0)),S.buttonmask|=1<<t,S.mousemove(a,1)},S.mouseup=function(a){var t=a.button;return S.SwapMouse&&(0==t?t=2:2==t&&(t=0)),S.buttonmask&=65535-(1<<t),S.mousemove(a,1)},S.mousemove=function(a,t){if(S.state<4)return!0;var e,n,o,r,s=S.canvas.canvas.height/Q(S.canvasid).offsetHeight,i=S.canvas.canvas.width/Q(S.canvasid).offsetWidth,c=S.getPositionOfControl(Q(S.canvasid));return S.mx=(event.pageX-c[0])*i,S.my=(event.pageY-c[1])*s,event.addx&&(S.mx+=event.addx),event.addy&&(S.my+=event.addy),1!=S.noMouseRotate&&(S.mx2=(e=S.mx,r=S.my,0==S.rotation?e:1==S.rotation?r:2==S.rotation?S.canvas.canvas.width-e:3==S.rotation?S.canvas.canvas.height-r:0),S.my=(o=S.mx,n=S.my,0==S.rotation?n:1==S.rotation?S.canvas.canvas.width-o:2==S.rotation?S.canvas.canvas.height-n:3==S.rotation?o:0),S.mx=S.mx2),1==t?(S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),null!=S.mNagleTimer&&(clearTimeout(S.mNagleTimer),S.mNagleTimer=null)):null==S.mNagleTimer&&(S.mNagleTimer=setTimeout(function(){S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),S.mNagleTimer=null},50)),QV("DeskFocus",S.focusmode),0!=S.focusmode&&(c=Math.min(S.mx,S.canvas.canvas.width-S.focusmode),s=Math.min(S.my,S.canvas.canvas.height-S.focusmode),e=2*S.focusmode,n=(r=Q(S.canvasid)).offsetHeight/S.canvas.canvas.height,o=r.offsetWidth/S.canvas.canvas.width,t=QS("DeskFocus"),r=S.getPositionOfControl(Q(S.canvasid).parentElement),t.left=Math.max((c-S.focusmode)*n,0)+(pos[0]-r[0])+"px",t.top=Math.max((s-S.focusmode)*o,0)+(pos[1]-r[1])+"px",t.width=e*n-6+"px",t.height=e*n-6+"px"),S.haltEvent(a)},S.getPositionOfControl=function(a){var t=Array(2);for(t[0]=t[1]=0;a;)t[0]+=a.offsetLeft,t[1]+=a.offsetTop,a=a.offsetParent;return t},S}
\ No newline at end of file
1 +var CreateAmtRemoteDesktop=function(a,t){var S={};function g(a){return String.fromCharCode.apply(null,a)}function m(a,t,e,n,o,r,s){var i,c,h,d,v=a[t++],f={},u=0,l=0;if(0==v){if(2==S.bpp)for(d=0;d<s;d++)b(a[t++]+(a[t++]<<8),d);else for(d=0;d<s;d++)y(a[t++],d);w(S.spare,e,n)}else if(1==v){c=a[t++]+(2==S.bpp?a[t++]<<8:0),S.canvas.fillStyle="rgb("+(1==S.bpp?(224&c)+","+((28&c)<<3)+","+L((3&c)<<6):(c>>8&248)+","+(c>>3&252)+","+((31&c)<<3))+")";var p=k(e);n=K(0,n),e=p,S.canvas.fillRect(e,n,o,r)}else if(1<v&&v<17){var g=4,m=15;if(2==S.bpp){for(d=0;d<v;d++)f[d]=a[t++]+(a[t++]<<8);for(2==v?m=g=1:v<=4&&(g=2,m=3);u<s&&t<a.byteLength;)for(c=a[t++],d=8-g;0<=d;d-=g)b(f[c>>d&m],u++)}else{for(d=0;d<v;d++)f[d]=a[t++];for(2==v?m=g=1:v<=4&&(g=2,m=3);u<s&&t<a.byteLength;)for(c=a[t++],d=8-g;0<=d;d-=g)y(f[c>>d&m],u++)}w(S.spare,e,n)}else if(128==v){if(2==S.bpp)for(;u<s&&t<a.byteLength;){for(c=a[t++]+(a[t++]<<8),l=1;l+=h=a[t++],255==h;);if(0==S.rotation)D(c,u,l),u+=l;else for(;0<=--l;)b(c,u++)}else for(;u<s&&t<a.byteLength;){for(c=a[t++],l=1;l+=h=a[t++],255==h;);if(0==S.rotation)C(c,u,l),u+=l;else for(;0<=--l;)y(c,u++)}w(S.spare,e,n)}else if(129<v){if(2==S.bpp)for(d=0;d<v-128;d++)f[d]=a[t++]+(a[t++]<<8);else for(d=0;d<v-128;d++)f[d]=a[t++];for(;u<s&&t<a.byteLength;){if(l=1,c=f[(i=a[t++])%128],127<i)for(;l+=h=a[t++],255==h;);if(0==S.rotation)(2==S.bpp?D:C)(c,u,l),u+=l;else if(2==S.bpp)for(;0<=--l;)b(c,u++);else for(;0<=--l;)y(c,u++)}w(S.spare,e,n)}}function w(a,t,e){var n,o,r;1!=S.holding&&(o=t,r=e,n=0==S.rotation?o:1==S.rotation?S.canvas.canvas.width-S.sparew2-r:2==S.rotation?S.canvas.canvas.width-S.sparew2-o:3==S.rotation?r:0,o=t,r=e,e=0==S.rotation?r:1==S.rotation?o:2==S.rotation?S.canvas.canvas.height-S.spareh2-r:3==S.rotation?S.canvas.canvas.height-S.spareh-o:0,t=n,S.canvas.putImageData(a,t,e))}function y(a,t){var e,n,o=t<<2;0<S.rotation&&(1==S.rotation?(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=e*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?o=S.sparew*S.spareh*4-4-o:3==S.rotation&&(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=(S.sparew2-1-e)*S.sparew2+n)<<2)),S.spare.data[o]=224&a,S.spare.data[o+1]=(28&a)<<3,S.spare.data[o+2]=L((3&a)<<6)}function b(a,t){var e,n,o=t<<2;0<S.rotation&&(1==S.rotation?(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=e*S.sparew2+(S.sparew2-1-n))<<2):2==S.rotation?o=S.sparew*S.spareh*4-4-o:3==S.rotation&&(e=t%S.sparew,n=Math.floor(t/S.sparew),o=(t=(S.sparew2-1-e)*S.sparew2+n)<<2)),S.spare.data[o]=a>>8&248,S.spare.data[o+1]=a>>3&252,S.spare.data[o+2]=(31&a)<<3}function C(a,t,e){for(var n=t<<2,o=224&a,r=(28&a)<<3,s=L((3&a)<<6);0<=--e;)S.spare.data[n]=o,S.spare.data[n+1]=r,S.spare.data[n+2]=s,n+=4}function D(a,t,e){for(var n=t<<2,o=a>>8&248,r=a>>3&252,s=(31&a)<<3;0<=--e;)S.spare.data[n]=o,S.spare.data[n+1]=r,S.spare.data[n+2]=s,n+=4}function k(a){return 0==S.rotation||1==S.rotation?a:2==S.rotation?a-S.canvas.canvas.width:3==S.rotation?a-S.canvas.canvas.height:0}function K(a,t){return 0==S.rotation?t:1==S.rotation?t-S.canvas.canvas.width:2==S.rotation?t-S.canvas.canvas.height:3==S.rotation?t:0}function L(a){return 127<a?a+32:a}function T(){var a;1!=S.holding&&(0<S.focusmode?(a=2*S.focusmode,S.send(String.fromCharCode(3,1)+ShortToStr(Math.max(Math.min(S.ox,S.mx)-S.focusmode,0))+ShortToStr(Math.max(Math.min(S.oy,S.my)-S.focusmode,0))+ShortToStr(a+Math.abs(S.ox-S.mx))+ShortToStr(a+Math.abs(S.oy-S.my))),S.ox=S.mx,S.oy=S.my):S.send(String.fromCharCode(3,1,0,0,0,0)+ShortToStr(S.rwidth)+ShortToStr(S.rheight)))}S.canvasid=a,S.CanvasId=Q(a),S.scrolldiv=t,S.canvas=Q(a).getContext("2d"),S.protocol=2,S.state=0,S.acc=null,S.ScreenWidth=960,S.ScreenHeight=700,S.width=0,S.height=0,S.rwidth=0,S.rheight=0,S.bpp=2,S.useZRLE=!0,S.showmouse=!0,S.buttonmask=0,S.localKeyMap=!0,S.spare=null,S.sparew=0,S.spareh=0,S.sparew2=0,S.spareh2=0,S.sparecache={},S.ZRLEfirst=1,S.onScreenSizeChange=null,S.frameRateDelay=0,S.noMouseRotate=!1,S.rotation=0,S.kvmDataSupported=!1,S.onKvmData=null,S.onKvmDataPending=[],S.onKvmDataAck=-1,S.holding=!1,S.lastKeepAlive=Date.now(),S.SwapMouse=!1,S.mNagleTimer=null,S.mx=0,S.my=0,S.ox=-1,S.oy=-1,S.focusmode=0,S.inflate=ZLIB.inflateInit(-15),S.xxStateChange=function(a){0==a?(S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),S.canvas.canvas.width=S.rwidth=S.width=640,S.canvas.canvas.height=S.rheight=S.height=400,QS(S.canvasid).cursor="default"):QS(S.canvasid).cursor=S.showmouse?"default":"none"},S.ProcessBinaryData=function(a){var t;for(null==S.acc?S.acc=new Uint8Array(a):((t=new Uint8Array(S.acc.byteLength+a.byteLength)).set(S.acc,0),t.set(new Uint8Array(a),S.acc.byteLength),S.acc=t);null!=S.acc&&0<S.acc.byteLength;){var e=0,n=new DataView(S.acc.buffer);if(0==S.state&&12<=S.acc.byteLength)e=12,S.state=1,S.send("RFB 003.008\n");else if(1==S.state&&1<=S.acc.byteLength)e=S.acc[0]+1,S.send(String.fromCharCode(1)),S.state=2;else if(2==S.state&&4<=S.acc.byteLength){if(e=4,0!=n.getUint32(0))return S.Stop();S.send(String.fromCharCode(1)),S.state=3}else if(3==S.state&&24<=S.acc.byteLength){S.rotation=0;var o=n.getUint32(20);if(S.acc.byteLength<24+o)return;e=24+o,S.canvas.canvas.width=S.rwidth=S.width=S.ScreenWidth=n.getUint16(0),S.canvas.canvas.height=S.rheight=S.height=S.ScreenHeight=n.getUint16(2);var r="";S.useZRLE&&(r+=IntToStr(16)),r+=IntToStr(0),r+=IntToStr(1092),S.send(String.fromCharCode(2,0)+ShortToStr(r.length/4+1)+r+IntToStr(-223)),1==S.bpp&&S.send(String.fromCharCode(0,0,0,0,8,8,0,1)+ShortToStr(7)+ShortToStr(7)+ShortToStr(3)+String.fromCharCode(5,2,0,0,0,0)),S.state=4,S.parent&&S.parent.xxStateChange(3),T(),S.ox=-1,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight)}else if(4==S.state)switch(S.acc[0]){case 0:if(S.acc.byteLength<4)return;S.state=100+n.getUint16(2),e=4;break;case 2:e=1;break;case 3:if(S.acc.byteLength<8)return;var s=n.getUint32(4)+8;if(S.acc.byteLength<s)return;e=function(a,t){if(a.byteLength<8)return 0;t=t.getUint32(4)+8;if(a.byteLength<t)return 0;null==S.onKvmData||16<=(a=g(a.slice(8,t))).length&&"\0KvmDataChannel"==a.substring(0,15)&&(0==S.kvmDataSupported&&(S.kvmDataSupported=!0,console.log("KVM Data Channel Supported.")),(-1==S.onKvmDataAck&&16==a.length||0!=a.charCodeAt(15))&&(S.onKvmDataAck=!0),16<=a.length&&S.onKvmData(a.substring(16)),1==S.onKvmDataAck&&0<S.onKvmDataPending.length&&S.sendKvmData(S.onKvmDataPending.shift()));return t}(S.acc,n)}else if(100<S.state&&12<=S.acc.byteLength){var i=n.getUint16(0),c=n.getUint16(2),h=n.getUint16(4),d=n.getUint16(6),v=h*d,o=n.getUint32(8);if(o<17){if(h<1||64<h||d<1||64<d)return console.log("Invalid tile size ("+h+","+d+"), disconnecting."),S.Stop();if(S.sparew!=h||S.spareh!=d){S.sparew=S.sparew2=h,S.spareh=S.spareh2=d,1!=S.rotation&&3!=S.rotation||(S.sparew2=d,S.spareh2=h);r=S.sparew2+"x"+S.spareh2;if(S.spare=S.sparecache[r],!S.spare){S.sparecache[r]=S.spare=S.canvas.createImageData(S.sparew2,S.spareh2);for(var f=S.sparew2*S.spareh2<<2,u=3;u<f;u+=4)S.spare.data[u]=255}}}if(4294967073==o)S.canvas.canvas.width=S.rwidth=S.width=h,S.canvas.canvas.height=S.rheight=S.height=d,S.send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height)),e=12,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight);else if(0==o){var l=12,p=12+v*S.bpp;if(S.acc.byteLength<p)return;if(e=p,2==S.bpp)for(u=0;u<v;u++)b(n.getUint16(l,!0),u),l+=2;else for(u=0;u<v;u++)y(S.acc[l++],u);w(S.spare,i,c)}else{if(16!=o)return S.Stop();if(S.acc.byteLength<16)return;p=n.getUint32(12);if(S.acc.byteLength<16+p)return;l=16;5<p&&0==S.acc[l]&&n.getUint16(l+1,!0)==p-5?m(S.acc,l+5,i,c,h,d,v):0<(o=S.inflate.inflate(g(new Uint8Array(S.acc.buffer.slice(l,+(l+p)))))).length?m(function(a){for(var t=new Uint8Array(a.length),e=0,n=a.length;e<n;++e)t[e]=a.charCodeAt(e);return t}(o),0,i,c,h,d,v,o.length):console.log("Invalid deflate data"),e=16+p}100==--S.state&&(S.state=4,0==S.frameRateDelay?T():setTimeout(T,S.frameRateDelay))}if(0==e)return;e!=S.acc.byteLength?S.acc=new Uint8Array(S.acc.buffer.slice(e)):S.acc=null}},S.hold=function(a){S.holding!=a&&(S.holding=a,S.canvas.fillStyle="#000000",S.canvas.fillRect(0,0,S.width,S.height),0==S.holding?(S.canvas.canvas.width==S.width&&S.canvas.canvas.height==S.height||(S.canvas.canvas.width=S.width,S.canvas.canvas.height=S.height,null!=S.onScreenSizeChange&&S.onScreenSizeChange(S,S.ScreenWidth,S.ScreenHeight)),S.Send(String.fromCharCode(3,0,0,0,0,0)+ShortToStr(S.width)+ShortToStr(S.height))):(S.UnGrabMouseInput(),S.UnGrabKeyInput()))},S.tcanvas=null,S.setRotation=function(a){for(;a<0;)a+=4;var t=a%4;if(1!=S.holding){if(t==S.rotation)return!0;var e=S.canvas.canvas.width,n=S.canvas.canvas.height;1!=S.rotation&&3!=S.rotation||(e=S.canvas.canvas.height,n=S.canvas.canvas.width),null==S.tcanvas&&(S.tcanvas=document.createElement("canvas"));var o=S.tcanvas.getContext("2d");return o.setTransform(1,0,0,1,0,0),o.canvas.width=e,o.canvas.height=n,o.rotate(-90*S.rotation*Math.PI/180),0==S.rotation&&o.drawImage(S.canvas.canvas,0,0),1==S.rotation&&o.drawImage(S.canvas.canvas,-S.canvas.canvas.width,0),2==S.rotation&&o.drawImage(S.canvas.canvas,-S.canvas.canvas.width,-S.canvas.canvas.height),3==S.rotation&&o.drawImage(S.canvas.canvas,0,-S.canvas.canvas.height),0!=S.rotation&&2!=S.rotation||(S.canvas.canvas.height=e,S.canvas.canvas.width=n),1!=S.rotation&&3!=S.rotation||(S.canvas.canvas.height=n,S.canvas.canvas.width=e),S.canvas.setTransform(1,0,0,1,0,0),S.canvas.rotate(90*t*Math.PI/180),S.rotation=t,S.canvas.drawImage(S.tcanvas,k(0),K(0,0)),S.width=S.canvas.canvas.width,S.height=S.canvas.canvas.height,null!=S.onScreenResize&&S.onScreenResize(S,S.width,S.height,S.CanvasId),!0}S.rotation=t},S.Start=function(){for(var a in S.state=0,S.acc=null,S.ZRLEfirst=1,S.inflate.inflateReset(),S.onKvmDataPending=[],S.onKvmDataAck=-1,S.kvmDataSupported=!1,S.sparecache)delete S.sparecache[a]},S.Stop=function(){S.UnGrabMouseInput(),S.UnGrabKeyInput(),S.parent&&S.parent.Stop()},S.send=function(a){S.parent&&S.parent.send(a)};var o={Pause:19,CapsLock:20,Space:32,Quote:39,Minus:45,NumpadMultiply:42,NumpadAdd:43,PrintScreen:44,Comma:44,NumpadSubtract:45,NumpadDecimal:46,Period:46,Slash:47,NumpadDivide:47,Semicolon:59,Equal:61,OSLeft:91,BracketLeft:91,OSRight:91,Backslash:92,BracketRight:93,ContextMenu:93,Backquote:96,NumLock:144,ScrollLock:145,Backspace:65288,Tab:65289,Enter:65293,NumpadEnter:65293,Escape:65307,Delete:65535,Home:65360,PageUp:65365,PageDown:65366,ArrowLeft:65361,ArrowUp:65362,ArrowRight:65363,ArrowDown:65364,End:65367,Insert:65379,F1:65470,F2:65471,F3:65472,F4:65473,F5:65474,F6:65475,F7:65476,F8:65477,F9:65478,F10:65479,F11:65480,F12:65481,ShiftLeft:65505,ShiftRight:65506,ControlLeft:65507,ControlRight:65508,AltLeft:65513,AltRight:65514,MetaLeft:65511,MetaRight:65512};function e(a,t){var e,n;return(t=t||window.event).code&&0==S.localKeyMap?null!=(e=(n=t).code.startsWith("Key")&&4==n.code.length?n.code.charCodeAt(3)+(0==n.shiftKey?32:0):n.code.startsWith("Digit")&&6==n.code.length?n.code.charCodeAt(5):n.code.startsWith("Numpad")&&7==n.code.length?n.code.charCodeAt(6):o[n.code])&&S.sendkey(e,a):(n=e=t.keyCode,0==t.shiftKey&&65<=e&&e<=90&&(n=e+32),112<=e&&e<=124&&(n=e+65358),8==e&&(n=65288),9==e&&(n=65289),13==e&&(n=65293),16==e&&(n=65505),17==e&&(n=65507),18==e&&(n=65513),27==e&&(n=65307),33==e&&(n=65365),34==e&&(n=65366),35==e&&(n=65367),36==e&&(n=65360),37==e&&(n=65361),38==e&&(n=65362),39==e&&(n=65363),40==e&&(n=65364),45==e&&(n=65379),46==e&&(n=65535),96<=e&&e<=105&&(n=e-48),106==e&&(n=42),107==e&&(n=43),109==e&&(n=45),110==e&&(n=46),111==e&&(n=47),186==e&&(n=59),187==e&&(n=61),188==e&&(n=44),189==e&&(n=45),190==e&&(n=46),191==e&&(n=47),192==e&&(n=96),219==e&&(n=91),220==e&&(n=92),221==e&&(n=93),222==e&&(n=39),S.sendkey(n,a)),S.haltEvent(t)}S.sendkey=function(a,t){if("object"==typeof a){var e,n="";for(e in a)n+=String.fromCharCode(4,a[e][1],0,0)+IntToStr(a[e][0]);S.send(n)}else S.send(String.fromCharCode(4,t,0,0)+IntToStr(a))},S.sendKvmData=function(a){!0!==S.onKvmDataAck?S.onKvmDataPending.push(a):(a="\0KvmDataChannel\0"+a,S.send(String.fromCharCode(6,0,0,0)+IntToStr(a.length)+a),S.onKvmDataAck=!1)},S.sendKeepAlive=function(){S.lastKeepAlive<Date.now()-5e3&&(S.lastKeepAlive=Date.now(),S.send(String.fromCharCode(6,0,0,0)+IntToStr(16)+"\0KvmDataChannel\0"))},S.SendCtrlAltDelMsg=function(){S.sendcad()};var n=!(S.sendcad=function(){S.sendkey([[65507,1],[65513,1],[65535,1],[65535,0],[65513,0],[65507,0]])}),r=!1;return S.GrabMouseInput=function(){var a;1!=n&&((a=S.canvas.canvas).onmouseup=S.mouseup,a.onmousedown=S.mousedown,a.onmousemove=S.mousemove,n=!0)},S.UnGrabMouseInput=function(){var a;0!=n&&((a=S.canvas.canvas).onmousemove=null,a.onmouseup=null,a.onmousedown=null,n=!1)},S.GrabKeyInput=function(){1!=r&&(document.onkeyup=S.handleKeyUp,document.onkeydown=S.handleKeyDown,document.onkeypress=S.handleKeys,r=!0)},S.UnGrabKeyInput=function(){0!=r&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,r=!1)},S.handleKeys=function(a){return S.haltEvent(a)},S.handleKeyUp=function(a){return e(0,a)},S.handleKeyDown=function(a){return e(1,a)},S.haltEvent=function(a){return a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),!1},S.mousedblclick=function(a){},S.mousedown=function(a){var t=a.button;return S.SwapMouse&&(0==t?t=2:2==t&&(t=0)),S.buttonmask|=1<<t,S.mousemove(a,1)},S.mouseup=function(a){var t=a.button;return S.SwapMouse&&(0==t?t=2:2==t&&(t=0)),S.buttonmask&=65535-(1<<t),S.mousemove(a,1)},S.mousemove=function(a,t){if(S.state<4)return!0;var e,n,o,r,s=S.canvas.canvas.height/Q(S.canvasid).offsetHeight,i=S.canvas.canvas.width/Q(S.canvasid).offsetWidth,c=S.getPositionOfControl(Q(S.canvasid));return S.mx=(event.pageX-c[0])*i,S.my=(event.pageY-c[1])*s,event.addx&&(S.mx+=event.addx),event.addy&&(S.my+=event.addy),1!=S.noMouseRotate&&(S.mx2=(e=S.mx,r=S.my,0==S.rotation?e:1==S.rotation?r:2==S.rotation?S.canvas.canvas.width-e:3==S.rotation?S.canvas.canvas.height-r:0),S.my=(o=S.mx,n=S.my,0==S.rotation?n:1==S.rotation?S.canvas.canvas.width-o:2==S.rotation?S.canvas.canvas.height-n:3==S.rotation?o:0),S.mx=S.mx2),1==t?(S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),null!=S.mNagleTimer&&(clearTimeout(S.mNagleTimer),S.mNagleTimer=null)):null==S.mNagleTimer&&(S.mNagleTimer=setTimeout(function(){S.send(String.fromCharCode(5,S.buttonmask)+ShortToStr(S.mx)+ShortToStr(S.my)),S.mNagleTimer=null},50)),QV("DeskFocus",S.focusmode),0!=S.focusmode&&(c=Math.min(S.mx,S.canvas.canvas.width-S.focusmode),s=Math.min(S.my,S.canvas.canvas.height-S.focusmode),e=2*S.focusmode,n=(r=Q(S.canvasid)).offsetHeight/S.canvas.canvas.height,o=r.offsetWidth/S.canvas.canvas.width,t=QS("DeskFocus"),r=S.getPositionOfControl(Q(S.canvasid).parentElement),t.left=Math.max((c-S.focusmode)*n,0)+(pos[0]-r[0])+"px",t.top=Math.max((s-S.focusmode)*o,0)+(pos[1]-r[1])+"px",t.width=e*n-6+"px",t.height=e*n-6+"px"),S.haltEvent(a)},S.getPositionOfControl=function(a){var t=Array(2);for(t[0]=t[1]=0;a;)t[0]+=a.offsetLeft,t[1]+=a.offsetTop,a=a.offsetParent;return t},S}
\ No newline at end of file
public/scripts/amt-terminal-0.0.2-min.js
+1 -1
@@ -1 +1 @@
1 -var CreateAmtRemoteTerminal=function(e,r){var l={};l.DivId=e,l.DivElement=document.getElementById(e),l.protocol=1,r.protocol&&(l.protocol=r.protocol),l.terminalEmulation=1,l.fxEmulation=0,l.lineFeed="\r\n",l.debugmode=0,l.width=80,l.height=25,l.heightLock=0;var m,f=["000000","BB0000","00BB00","BBBB00","0000BB","BB00BB","00BBBB","BBBBBB","555555","FF5555","55FF55","FFFF55","5555FF","FF55FF","55FFFF","FFFFFF"],u=0,g=7,w=0,C=!0,S=0,T=0,a=0,h=0,o=0,c=[],s=0,d=0,b=[],k=[],n=!1,v=!0,p=!1,y=[],t="";l.title=null,l.onTitleChange=null,l.Start=function(){},l.Init=function(e,r){l.width=e||80,l.height=r||25;for(var t=0;t<l.height;t++){k[t]=[],b[t]=[];for(var i=0;i<l.width;i++)k[t][i]=" ",b[t][i]=448}l.TermInit(),l.TermDraw()},l.xxStateChange=function(e){},l.ProcessData=function(r){if(2==l.debugmode&&console.log("TRecv("+r.length+"): "+rstr2hex(r)),0==l.terminalEmulation)try{r=decode_utf8(t+r)}catch(e){return void(t+=r)}t="",null!=l.capture&&(l.capture+=r),function(e){for(var r=0;r<e.length;r++)!function(e,r){switch(o){case 0:27===r?(o=1,c=[],d=s=0):B(e);break;case 1:switch(e){case"[":o=2;break;case"(":o=4;break;case")":o=5;break;case"]":o=6;break;case"=":p=!0,o=0;break;case">":p=!1,o=0;break;case"7":a=S,h=T,o=0;break;case"8":S=a,T=h,o=0;break;case"M":for(var t=m[1];t>=m[0]+1;t--)for(var i=0;i<l.width;i++)k[t][i]=k[t-1][i],b[t][i]=b[t-1][i];for(t=m[0]+1-1;t>m[0]-1;t--)for(i=0;i<l.width;i++)k[t][i]=" ",b[t][i]=448;o=0;break;default:console.log("unknown terminal short code",e),o=0}break;case 2:if("0"<=e&&e<="9"){c[s]?c[s]=10*c[s]+(e-"0"):c[s]=e-"0";break}if(";"==e){s++;break}if("?"==e){d=1;break}c[0]||(c[0]=0),function(e,r,t,i){if(1==i)switch(e){case"l":25==r[0]&&(v=!1);break;case"h":25==r[0]&&(v=!0)}else if(0==i){var n,a;switch(e){case"c":l.TermResetScreen();break;case"A":1==t&&(0==r[0]?T--:T-=r[0],T<0&&(T=0));break;case"B":1==t&&(0==r[0]?T++:T+=r[0],T>l.height&&(T=l.height));break;case"C":1==t&&(0==r[0]?S++:S+=r[0],S>l.width&&(S=l.width));break;case"D":1==t&&(0==r[0]?S--:S-=r[0],S<0&&(S=0));break;case"d":1==t&&(T=(T=r[0]-1)>l.height?l.height:T)<0&&(T=0);break;case"G":1==t&&(S=(S=r[0]-1)<0?0:S)>l.width-1&&(S=l.width-1);break;case"P":var h=1;for(1==t&&(h=r[0]),n=S;n<l.width-h;n++)k[T][n]=k[T][n+h],b[T][n]=b[T][n+h];for(n=l.width-h;n<l.width;n++)k[T][n]=" ",b[T][n]=448;break;case"L":var o=1;for(0==(o=1==t?r[0]:o)&&(o=1),c=m[1];T+o<=c;c--)k[c]=k[c-o],b[c]=b[c-o];for(c=T;c<T+o;c++)for(k[c]=[],b[c]=[],h=0;h<l.width;h++)k[c][h]=" ",b[c][h]=448;break;case"J":if(1==t&&2==r[0])l.TermClear((w<<12)+(g<<6)),T=S=0,y=[];else if(0==t||1==t&&0==r[0])for(E(),n=T+1;n<l.height;n++)L(n);else if(1==t&&1==r[0])for(E(),n=0;n<T-1;n++)L(n);break;case"H":S=2==t?(r[0]<1&&(r[0]=1),r[1]<1&&(r[1]=1),r[0]>l.height&&(r[0]=l.height),r[1]>l.width&&(r[1]=l.width),T=r[0]-1,r[1]-1):T=0;break;case"m":for(n=0;n<t;n++)r[n]&&0!=r[n]?1==r[n]?g<8&&(g+=8):2==r[n]||22==r[n]?8<=g&&(g-=8):7==r[n]?u=2:27==r[n]?u=0:30<=r[n]&&r[n]<=37?(a=8<=g,g=r[n]-30,a&&g<=8&&(g+=8)):40<=r[n]&&r[n]<=47?w=r[n]-40:90<=r[n]&&r[n]<=99?g=r[n]-82:100<=r[n]&&r[n]<=109&&(w=r[n]-92):(g=7,u=w=0);break;case"K":0!=t&&(1!=t||r[0]&&0!=r[0])?1==t&&(1==r[0]?function(){for(var e=(g<<6)+(w<<12)+u,r=0;r<S;r++)k[T][r]=" ",b[T][r]=e}():2==r[0]&&L(T)):E();break;case"h":C=!0;break;case"l":C=!1;break;case"r":(m=2==t?[r[0]-1,r[1]-1]:m)[0]<0&&(m[0]=0),m[0]>l.height-1&&(m[0]=l.height-1),m[1]<0&&(m[1]=0),m[1]>l.height-1&&(m[1]=l.height-1),m[0]>m[1]&&(m[0]=m[1]);break;case"S":h=1;1==t&&(h=r[0]);for(var c=m[0];c<=m[1]-h;c++)for(var f=0;f<l.width;f++)k[c][f]=k[c+h][f],b[c][f]=b[c+h][f];for(c=m[1]-h+1;c<m[1];c++)for(f=0;f<l.width;f++)k[c][f]=" ",b[c][f]=448;break;case"M":h=1;1==t&&(h=r[0]);for(c=T;c<=m[1]-h;c++)for(f=0;f<l.width;f++)k[c][f]=k[c+h][f],b[c][f]=b[c+h][f];for(c=m[1]-h+1;c<m[1];c++)for(f=0;f<l.width;f++)k[c][f]=" ",b[c][f]=448;break;case"T":h=1;1==t&&(h=r[0]);for(c=m[1];c>m[0]+h;c--)for(f=0;f<l.width;f++)k[c][f]=k[c-h][f],b[c][f]=b[c-h][f];for(c=m[0]+h;c>m[0];c--)for(f=0;f<l.width;f++)k[c][f]=" ",b[c][f]=448;break;case"X":var h=1,s=S,d=T;for(1==t&&(h=r[0]);0<h&&d<l.height;)k[d][s]=" ",h--,++s>=l.width&&(s=0,d++);break;default:console.log("Unknown terminal code",e,r,i)}}}(e,c,s+1,d),o=0;break;case 4:case 5:o=0;break;case 6:var n=e.charCodeAt(0);";"==e?s++:7==n?(function(e){var r;0==e.length||(0==(r=parseInt(e[0]))||2==r)&&1<e.length&&"?"!=e[1]&&l.onTitleChange&&l.onTitleChange(l,l.title=e[1])}(c),o=0):c[s]?c[s]+=e:c[s]=e}}(String.fromCharCode(e.charCodeAt(r)),e.charCodeAt(r))}(r),l.TermDraw()},l.ProcessVt100String=function(e){for(var r=0;r<e.length;r++)B(String.fromCharCode(e.charCodeAt(r)))};var K=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],D=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],K=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],D=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160];function B(e){if("\0"!=e&&7!=e.charCodeAt()){var r=e.charCodeAt();switch(1==l.terminalEmulation?0!=(128&r)&&(e=String.fromCharCode(K[127&r])):2==l.terminalEmulation&&0!=(128&r)&&(e=String.fromCharCode(D[127&r])),r){case 16:e=" ";break;case 24:e="↑";break;case 25:e="↓"}switch(S>l.width&&(S=l.width),T>l.height-1&&(T=l.height-1),e){case"\b":0<S&&(S--,n&&F(" "));break;case"\t":for(var t=8-S%8,i=0;i<t;i++)B(" ");break;case"\n":++T>m[1]&&(l.recordLineTobackBuffer(0),P(1),T=m[1]),l.lineFeed="\r",S=0;break;case"\r":S=0;break;default:S>=l.width&&(S=0,C&&T++,T>=l.height-1&&(P(1),T=l.height-1)),F(e),S++}}}function F(e){k[T][S]=e,b[T][S]=(g<<6)+(w<<12)+u}function E(){for(var e=(g<<6)+(w<<12)+u,r=S;r<l.width;r++)k[T][r]=" ",b[T][r]=e}function L(e){for(var r=(g<<6)+(w<<12)+u,t=0;t<l.width;t++)k[e][t]=" ",b[e][t]=r}function P(e){for(var r,t=m[0];t<=m[1]-e;t++)k[t]=k[t+e],b[t]=b[t+e];for(t=m[1]-e+1;t<=m[1];t++)for(k[t]=[],b[t]=[],r=0;r<l.width;r++)k[t][r]=" ",b[t][r]=448}return l.TermClear=function(e){for(var r=0;r<l.height;r++)for(var t=0;t<l.width;t++)k[r][t]=" ",b[r][t]=e;y=[]},l.TermResetScreen=function(){C=v=!(w=u=0),S=T=0,n=!(g=7),m=[0,l.height-1],p=!1,l.TermClear(448),t=""},l.TermSendKeys=function(e){2==l.debugmode&&console.log("TSend("+e.length+"): "+rstr2hex(e),e),l.parent.send(e)},l.TermSendKey=function(e){2==l.debugmode&&console.log("TSend(1): "+rstr2hex(String.fromCharCode(e)),e),l.parent.send(String.fromCharCode(e))},l.TermHandleKeys=function(e){if(!e.ctrlKey)return 127==e.which?l.TermSendKey(8):13==e.which?l.TermSendKeys(l.lineFeed):0!=e.which&&l.TermSendKey(e.which),!1;e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},l.TermHandleKeyUp=function(e){return 8!=e.which&&32!=e.which&&9!=e.which||(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},l.TermHandleKeyDown=function(e){if(65<=e.which&&e.which<=90&&1==e.ctrlKey)return l.TermSendKey(e.which-64),e.preventDefault&&e.preventDefault(),void(e.stopPropagation&&e.stopPropagation());if(27==e.which)return l.TermSendKeys(String.fromCharCode(27)),!0;if(1==p){if(37==e.which)return l.TermSendKeys(String.fromCharCode(27,79,68)),!0;if(38==e.which)return l.TermSendKeys(String.fromCharCode(27,79,65)),!0;if(39==e.which)return l.TermSendKeys(String.fromCharCode(27,79,67)),!0;if(40==e.which)return l.TermSendKeys(String.fromCharCode(27,79,66)),!0}else{if(37==e.which)return l.TermSendKeys(String.fromCharCode(27,91,68)),!0;if(38==e.which)return l.TermSendKeys(String.fromCharCode(27,91,65)),!0;if(39==e.which)return l.TermSendKeys(String.fromCharCode(27,91,67)),!0;if(40==e.which)return l.TermSendKeys(String.fromCharCode(27,91,66)),!0}if(33==e.which)return l.TermSendKeys(String.fromCharCode(27,91,53,126)),!0;if(34==e.which)return l.TermSendKeys(String.fromCharCode(27,91,54,126)),!0;if(35==e.which)return l.TermSendKeys(String.fromCharCode(27,91,70)),!0;if(36==e.which)return l.TermSendKeys(String.fromCharCode(27,91,72)),!0;if(45==e.which)return l.TermSendKeys(String.fromCharCode(27,91,50,126)),!0;if(46==e.which)return l.TermSendKeys(String.fromCharCode(27,91,51,126)),!0;if(9==e.which)return l.TermSendKeys("\t"),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!0;var r=[80,81,119,120,116,117,113,114,112,77],t=[49,50,51,52,53,54,55,56,57,48,33,64],i=[80,81,82,83,84,85,86,87,88,89,90,91];if(111<e.which&e.which<124&&0==e.repeat){if(0==l.fxEmulation&&e.which<122)return l.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;if(1==l.fxEmulation)return l.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;if(2==l.fxEmulation)return l.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0}r=[80,81,119,120,116,117,113,114,112,77];if(111<e.which&e.which<122&&0==e.repeat)return l.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;t=[49,50,51,52,53,54,55,56,57,48,33,64];if(111<e.which&e.which<124&&0==e.repeat)return l.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;i=[80,81,82,83,84,85,86,87,88,89,90,91];return 111<e.which&e.which<124&&0==e.repeat?(l.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0):8!=e.which&&32!=e.which&&9!=e.which||(l.TermSendKey(e.which),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},l.recordLineTobackBuffer=function(e){var e=l.TermDrawLine("",e,""),r=e[0],t=e[1];y.push(r+t+"<br>")},l.TermDrawLine=function(e,r,t){for(var i,n,a,h,o=1,c=0;c<l.width;++c)switch(i=b[r][c],S==c&&T==r&&v&&(i|=2),i!=o&&(e+=t,a=6,h=12,2&i&&(a=12,h=6),e+='<span style="color:#'+f[i>>a&63]+";background-color:#"+f[i>>h&63],1&i&&(e+=";text-decoration:underline"),e+=';">',t="</span>"+(t=""),o=i),n=k[r][c]){case"&":e+="&amp;";break;case"<":e+="&lt;";break;case">":e+="&gt;";break;case" ":e+="&nbsp;";break;default:e+=n}return[e,t]},l.TermDraw=function(){for(var e="",r="",t=0;t<l.height;++t){var i=l.TermDrawLine(r,t,e),r=i[0],e=i[1];t!=l.height-1&&(r+="<br>")}var n=(y=800<y.length?y.slice(y.length-800):y).join("");l.DivElement.innerHTML="<font size='4'><b>"+n+r+e+"</b></font>",l.DivElement.scrollTop=l.DivElement.scrollHeight,0==l.heightLock&&setTimeout(l.TermLockHeight,10)},l.TermLockHeight=function(){l.heightLock=l.DivElement.clientHeight,l.DivElement.style.height=l.DivElement.parentNode.style.height=l.heightLock+"px",l.DivElement.style["overflow-y"]="scroll"},l.TermInit=function(){l.TermResetScreen()},l.heightLock=0,l.DivElement.style.height="",null!=r&&null!=r.cols&&null!=r.rows?l.Init(r.cols,r.rows):l.Init(),l}
\ No newline at end of file
1 +var CreateAmtRemoteTerminal=function(e,r){var l={};l.DivId=e,l.DivElement=document.getElementById(e),l.protocol=1,r.protocol&&(l.protocol=r.protocol),l.terminalEmulation=1,l.fxEmulation=0,l.lineFeed="\r\n",l.debugmode=0,l.width=80,l.height=25,l.heightLock=0;var m,f=["000000","BB0000","00BB00","BBBB00","0000BB","BB00BB","00BBBB","BBBBBB","555555","FF5555","55FF55","FFFF55","5555FF","FF55FF","55FFFF","FFFFFF"],u=0,g=7,w=0,C=!0,S=0,T=0,a=0,h=0,o=0,c=[],s=0,d=0,b=[],k=[],n=!1,v=!0,p=!1,y=[],t="";l.title=null,l.onTitleChange=null,l.Start=function(){},l.Init=function(e,r){l.width=e||80,l.height=r||25;for(var t=0;t<l.height;t++){k[t]=[],b[t]=[];for(var i=0;i<l.width;i++)k[t][i]=" ",b[t][i]=448}l.TermInit(),l.TermDraw()},l.xxStateChange=function(e){},l.ProcessData=function(r){if(2==l.debugmode&&console.log("TRecv("+r.length+"): "+rstr2hex(r)),0==l.terminalEmulation)try{r=decode_utf8(t+r)}catch(e){return void(t+=r)}t="",null!=l.capture&&(l.capture+=r),function(e){for(var r=0;r<e.length;r++)!function(e,r){switch(o){case 0:27===r?(o=1,c=[],d=s=0):B(e);break;case 1:switch(e){case"[":o=2;break;case"(":o=4;break;case")":o=5;break;case"]":o=6;break;case"=":p=!0,o=0;break;case">":p=!1,o=0;break;case"7":a=S,h=T,o=0;break;case"8":S=a,T=h,o=0;break;case"M":for(var t=m[1];t>=m[0]+1;t--)for(var i=0;i<l.width;i++)k[t][i]=k[t-1][i],b[t][i]=b[t-1][i];for(t=m[0]+1-1;t>m[0]-1;t--)for(i=0;i<l.width;i++)k[t][i]=" ",b[t][i]=448;o=0;break;default:console.log("unknown terminal short code",e),o=0}break;case 2:if("0"<=e&&e<="9"){c[s]?c[s]=10*c[s]+(e-"0"):c[s]=e-"0";break}if(";"==e){s++;break}if("?"==e){d=1;break}c[0]||(c[0]=0),function(e,r,t,i){if(1==i)switch(e){case"l":25==r[0]&&(v=!1);break;case"h":25==r[0]&&(v=!0)}else if(0==i){var n,a;switch(e){case"c":l.TermResetScreen();break;case"A":1==t&&(0==r[0]?T--:T-=r[0],T<0&&(T=0));break;case"B":1==t&&(0==r[0]?T++:T+=r[0],T>l.height&&(T=l.height));break;case"C":1==t&&(0==r[0]?S++:S+=r[0],S>l.width&&(S=l.width));break;case"D":1==t&&(0==r[0]?S--:S-=r[0],S<0&&(S=0));break;case"d":1==t&&(T=(T=r[0]-1)>l.height?l.height:T)<0&&(T=0);break;case"G":1==t&&(S=(S=r[0]-1)<0?0:S)>l.width-1&&(S=l.width-1);break;case"P":var h=1;for(1==t&&(h=r[0]),n=S;n<l.width-h;n++)k[T][n]=k[T][n+h],b[T][n]=b[T][n+h];for(n=l.width-h;n<l.width;n++)k[T][n]=" ",b[T][n]=448;break;case"L":var o=1;for(0==(o=1==t?r[0]:o)&&(o=1),c=m[1];T+o<=c;c--)k[c]=k[c-o],b[c]=b[c-o];for(c=T;c<T+o;c++)for(k[c]=[],b[c]=[],h=0;h<l.width;h++)k[c][h]=" ",b[c][h]=448;break;case"J":if(1==t&&2==r[0])l.TermClear((w<<12)+(g<<6)),T=S=0,y=[];else if(0==t||1==t&&0==r[0])for(E(),n=T+1;n<l.height;n++)L(n);else if(1==t&&1==r[0])for(E(),n=0;n<T-1;n++)L(n);break;case"H":S=2==t?(r[0]<1&&(r[0]=1),r[1]<1&&(r[1]=1),r[0]>l.height&&(r[0]=l.height),r[1]>l.width&&(r[1]=l.width),T=r[0]-1,r[1]-1):T=0;break;case"m":for(n=0;n<t;n++)r[n]&&0!=r[n]?1==r[n]?g<8&&(g+=8):2==r[n]||22==r[n]?8<=g&&(g-=8):7==r[n]?u=2:27==r[n]?u=0:30<=r[n]&&r[n]<=37?(a=8<=g,g=r[n]-30,a&&g<=8&&(g+=8)):40<=r[n]&&r[n]<=47?w=r[n]-40:90<=r[n]&&r[n]<=99?g=r[n]-82:100<=r[n]&&r[n]<=109&&(w=r[n]-92):(g=7,u=w=0);break;case"K":0!=t&&(1!=t||r[0]&&0!=r[0])?1==t&&(1==r[0]?function(){for(var e=(g<<6)+(w<<12)+u,r=0;r<S;r++)k[T][r]=" ",b[T][r]=e}():2==r[0]&&L(T)):E();break;case"h":C=!0;break;case"l":C=!1;break;case"r":(m=2==t?[r[0]-1,r[1]-1]:m)[0]<0&&(m[0]=0),m[0]>l.height-1&&(m[0]=l.height-1),m[1]<0&&(m[1]=0),m[1]>l.height-1&&(m[1]=l.height-1),m[0]>m[1]&&(m[0]=m[1]);break;case"S":h=1;1==t&&(h=r[0]);for(var c=m[0];c<=m[1]-h;c++)for(var f=0;f<l.width;f++)k[c][f]=k[c+h][f],b[c][f]=b[c+h][f];for(c=m[1]-h+1;c<m[1];c++)for(f=0;f<l.width;f++)k[c][f]=" ",b[c][f]=448;break;case"M":h=1;1==t&&(h=r[0]);for(c=T;c<=m[1]-h;c++)for(f=0;f<l.width;f++)k[c][f]=k[c+h][f],b[c][f]=b[c+h][f];for(c=m[1]-h+1;c<m[1];c++)for(f=0;f<l.width;f++)k[c][f]=" ",b[c][f]=448;break;case"T":h=1;1==t&&(h=r[0]);for(c=m[1];c>m[0]+h;c--)for(f=0;f<l.width;f++)k[c][f]=k[c-h][f],b[c][f]=b[c-h][f];for(c=m[0]+h;c>m[0];c--)for(f=0;f<l.width;f++)k[c][f]=" ",b[c][f]=448;break;case"X":var h=1,s=S,d=T;for(1==t&&(h=r[0]);0<h&&d<l.height;)k[d][s]=" ",h--,++s>=l.width&&(s=0,d++);break;default:console.log("Unknown terminal code",e,r,i)}}}(e,c,s+1,d),o=0;break;case 4:case 5:o=0;break;case 6:var n=e.charCodeAt(0);";"==e?s++:7==n?(function(e){if(0==e.length)return;var r=parseInt(e[0]);(0==r||2==r)&&1<e.length&&"?"!=e[1]&&l.onTitleChange&&l.onTitleChange(l,l.title=e[1])}(c),o=0):c[s]?c[s]+=e:c[s]=e}}(String.fromCharCode(e.charCodeAt(r)),e.charCodeAt(r))}(r),l.TermDraw()},l.ProcessVt100String=function(e){for(var r=0;r<e.length;r++)B(String.fromCharCode(e.charCodeAt(r)))};var K=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],D=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],K=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],D=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160];function B(e){if("\0"!=e&&7!=e.charCodeAt()){var r=e.charCodeAt();switch(1==l.terminalEmulation?0!=(128&r)&&(e=String.fromCharCode(K[127&r])):2==l.terminalEmulation&&0!=(128&r)&&(e=String.fromCharCode(D[127&r])),r){case 16:e=" ";break;case 24:e="↑";break;case 25:e="↓"}switch(S>l.width&&(S=l.width),T>l.height-1&&(T=l.height-1),e){case"\b":0<S&&(S--,n&&F(" "));break;case"\t":for(var t=8-S%8,i=0;i<t;i++)B(" ");break;case"\n":++T>m[1]&&(l.recordLineTobackBuffer(0),P(1),T=m[1]),l.lineFeed="\r",S=0;break;case"\r":S=0;break;default:S>=l.width&&(S=0,C&&T++,T>=l.height-1&&(P(1),T=l.height-1)),F(e),S++}}}function F(e){k[T][S]=e,b[T][S]=(g<<6)+(w<<12)+u}function E(){for(var e=(g<<6)+(w<<12)+u,r=S;r<l.width;r++)k[T][r]=" ",b[T][r]=e}function L(e){for(var r=(g<<6)+(w<<12)+u,t=0;t<l.width;t++)k[e][t]=" ",b[e][t]=r}function P(e){for(var r,t=m[0];t<=m[1]-e;t++)k[t]=k[t+e],b[t]=b[t+e];for(t=m[1]-e+1;t<=m[1];t++)for(k[t]=[],b[t]=[],r=0;r<l.width;r++)k[t][r]=" ",b[t][r]=448}return l.TermClear=function(e){for(var r=0;r<l.height;r++)for(var t=0;t<l.width;t++)k[r][t]=" ",b[r][t]=e;y=[]},l.TermResetScreen=function(){C=v=!(w=u=0),S=T=0,n=!(g=7),m=[0,l.height-1],p=!1,l.TermClear(448),t=""},l.TermSendKeys=function(e){2==l.debugmode&&console.log("TSend("+e.length+"): "+rstr2hex(e),e),l.parent.send(e)},l.TermSendKey=function(e){2==l.debugmode&&console.log("TSend(1): "+rstr2hex(String.fromCharCode(e)),e),l.parent.send(String.fromCharCode(e))},l.TermHandleKeys=function(e){if(!e.ctrlKey)return 127==e.which?l.TermSendKey(8):13==e.which?l.TermSendKeys(l.lineFeed):0!=e.which&&l.TermSendKey(e.which),!1;e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},l.TermHandleKeyUp=function(e){return 8!=e.which&&32!=e.which&&9!=e.which||(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},l.TermHandleKeyDown=function(e){if(65<=e.which&&e.which<=90&&1==e.ctrlKey)return l.TermSendKey(e.which-64),e.preventDefault&&e.preventDefault(),void(e.stopPropagation&&e.stopPropagation());if(27==e.which)return l.TermSendKeys(String.fromCharCode(27)),!0;if(1==p){if(37==e.which)return l.TermSendKeys(String.fromCharCode(27,79,68)),!0;if(38==e.which)return l.TermSendKeys(String.fromCharCode(27,79,65)),!0;if(39==e.which)return l.TermSendKeys(String.fromCharCode(27,79,67)),!0;if(40==e.which)return l.TermSendKeys(String.fromCharCode(27,79,66)),!0}else{if(37==e.which)return l.TermSendKeys(String.fromCharCode(27,91,68)),!0;if(38==e.which)return l.TermSendKeys(String.fromCharCode(27,91,65)),!0;if(39==e.which)return l.TermSendKeys(String.fromCharCode(27,91,67)),!0;if(40==e.which)return l.TermSendKeys(String.fromCharCode(27,91,66)),!0}if(33==e.which)return l.TermSendKeys(String.fromCharCode(27,91,53,126)),!0;if(34==e.which)return l.TermSendKeys(String.fromCharCode(27,91,54,126)),!0;if(35==e.which)return l.TermSendKeys(String.fromCharCode(27,91,70)),!0;if(36==e.which)return l.TermSendKeys(String.fromCharCode(27,91,72)),!0;if(45==e.which)return l.TermSendKeys(String.fromCharCode(27,91,50,126)),!0;if(46==e.which)return l.TermSendKeys(String.fromCharCode(27,91,51,126)),!0;if(9==e.which)return l.TermSendKeys("\t"),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!0;var r=[80,81,119,120,116,117,113,114,112,77],t=[49,50,51,52,53,54,55,56,57,48,33,64],i=[80,81,82,83,84,85,86,87,88,89,90,91];if(111<e.which&e.which<124&&0==e.repeat){if(0==l.fxEmulation&&e.which<122)return l.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;if(1==l.fxEmulation)return l.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;if(2==l.fxEmulation)return l.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0}r=[80,81,119,120,116,117,113,114,112,77];if(111<e.which&e.which<122&&0==e.repeat)return l.TermSendKeys(String.fromCharCode(27,91,79,r[e.which-112])),!0;t=[49,50,51,52,53,54,55,56,57,48,33,64];if(111<e.which&e.which<124&&0==e.repeat)return l.TermSendKeys(String.fromCharCode(27,t[e.which-112])),!0;i=[80,81,82,83,84,85,86,87,88,89,90,91];return 111<e.which&e.which<124&&0==e.repeat?(l.TermSendKeys(String.fromCharCode(27,79,i[e.which-112])),!0):8!=e.which&&32!=e.which&&9!=e.which||(l.TermSendKey(e.which),e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),!1)},l.recordLineTobackBuffer=function(e){var e=l.TermDrawLine("",e,""),r=e[0],t=e[1];y.push(r+t+"<br>")},l.TermDrawLine=function(e,r,t){for(var i,n,a,h,o=1,c=0;c<l.width;++c)switch(i=b[r][c],S==c&&T==r&&v&&(i|=2),i!=o&&(e+=t,a=6,h=12,2&i&&(a=12,h=6),e+='<span style="color:#'+f[i>>a&63]+";background-color:#"+f[i>>h&63],1&i&&(e+=";text-decoration:underline"),e+=';">',t="</span>"+(t=""),o=i),n=k[r][c]){case"&":e+="&amp;";break;case"<":e+="&lt;";break;case">":e+="&gt;";break;case" ":e+="&nbsp;";break;default:e+=n}return[e,t]},l.TermDraw=function(){for(var e="",r="",t=0;t<l.height;++t){var i=l.TermDrawLine(r,t,e),r=i[0],e=i[1];t!=l.height-1&&(r+="<br>")}var n=(y=800<y.length?y.slice(y.length-800):y).join("");l.DivElement.innerHTML="<font size='4'><b>"+n+r+e+"</b></font>",l.DivElement.scrollTop=l.DivElement.scrollHeight,0==l.heightLock&&setTimeout(l.TermLockHeight,10)},l.TermLockHeight=function(){l.heightLock=l.DivElement.clientHeight,l.DivElement.style.height=l.DivElement.parentNode.style.height=l.heightLock+"px",l.DivElement.style["overflow-y"]="scroll"},l.TermInit=function(){l.TermResetScreen()},l.heightLock=0,l.DivElement.style.height="",null!=r&&null!=r.cols&&null!=r.rows?l.Init(r.cols,r.rows):l.Init(),l}
\ No newline at end of file
public/scripts/amt-wsman-0.2.0-min.js
+1 -1
@@ -1 +1 @@
1 -var WsmanStackCreateService=function(e,s,r,a,o,t){var u={};function l(e){if(!e)return"";var s,r=" ";for(s in e)e.hasOwnProperty(s)&&0===s.indexOf("@")&&(r+=s.substring(1)+'="'+e[s]+'" ');return r}function p(e){if(!e)return"";if("string"==typeof e)return e;if(e.InstanceID)return'<w:SelectorSet><w:Selector Name="InstanceID">'+e.InstanceID+"</w:Selector></w:SelectorSet>";var s,r="<w:SelectorSet>";for(s in e)if(e.hasOwnProperty(s)){if(r+='<w:Selector Name="'+s+'">',e[s].ReferenceParameters){r+="<a:EndpointReference>",r+="<a:Address>"+e[s].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+e[s].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>";var a=e[s].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(a))for(var o=0;o<a.length;o++)r+="<w:Selector"+l(a[o])+">"+a[o].Value+"</w:Selector>";else r+="<w:Selector"+l(a)+">"+a.Value+"</w:Selector>";r+="</w:SelectorSet></a:ReferenceParameters></a:EndpointReference>"}else r+=e[s];r+="</w:Selector>"}return r+="</w:SelectorSet>"}return u.NextMessageId=1,u.Address="/wsman",u.comm=CreateWsmanComm(e,s,r,a,o,t),u.PerformAjax=function(e,a,s,r,o){u.comm.PerformAjax('<?xml version=\"1.0\" encoding=\"utf-8\"?><Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope" '+(o=null==o?"":o)+"><Header><a:Action>"+e,function(e,s,r){200==s?(e=u.ParseWsman(e))&&null!=e?a(u,e.Header.ResourceURI,e,200,r):a(u,null,{Header:{HttpError:s}},601,r):a(u,null,{Header:{HttpError:s}},s,r)},s,r)},u.CancelAllQueries=function(e){u.comm.CancelAllQueries(e)},u.GetNameFromUrl=function(e){var s=e.lastIndexOf("/");return-1==s?e:e.substring(s+1)},u.ExecSubscribe=function(e,s,r,a,o,t,n,l,d,c){var m="",i="";null!=d&&null!=c&&(m="<t:IssuedTokens><t:RequestSecurityTokenResponse><t:TokenType>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken</t:TokenType><t:RequestedSecurityToken><se:UsernameToken><se:Username>"+d+'</se:Username><se:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd#PasswordText">'+c+"</se:Password></se:UsernameToken></t:RequestedSecurityToken></t:RequestSecurityTokenResponse></t:IssuedTokens>",i='<Auth Profile="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/secprofile/http/digest"/>');i="http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(n)+m+'</Header><Body><e:Subscribe><e:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/'+s+'"><e:NotifyTo><a:Address>'+r+"</a:Address></e:NotifyTo>"+i+"</e:Delivery><e:Expires>PT0.000000S</e:Expires></e:Subscribe>";u.PerformAjax(i+"</Body></Envelope>",a,o,t,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:se="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:m="http://x.com"')},u.ExecUnSubscribe=function(e,s,r,a,o){o="http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(o)+"</Header><Body><e:Unsubscribe/>";u.PerformAjax(o+"</Body></Envelope>",s,r,a,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"')},u.ExecPut=function(e,s,r,a,o,t){s="http://schemas.xmlsoap.org/ws/2004/09/transfer/Put</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout>"+p(t)+"</Header><Body>"+function(e,s){if(!e||null==s)return"";var r,a=u.GetNameFromUrl(e),o="<r:"+a+' xmlns:r="'+e+'">';for(r in s)if(s.hasOwnProperty(r)&&0!==r.indexOf("__")&&0!==r.indexOf("@")&&void 0!==s[r]&&null!==s[r]&&"function"!=typeof s[r])if("object"==typeof s[r]&&s[r].ReferenceParameters){o+="<r:"+r+"><a:Address>"+s[r].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+s[r].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>";var t=s[r].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(t))for(var n=0;n<t.length;n++)o+="<w:Selector"+l(t[n])+">"+t[n].Value+"</w:Selector>";else o+="<w:Selector"+l(t)+">"+t.Value+"</w:Selector>";o+="</w:SelectorSet></a:ReferenceParameters></r:"+r+">"}else if(Array.isArray(s[r]))for(n=0;n<s[r].length;n++)o+="<r:"+r+">"+s[r][n].toString()+"</r:"+r+">";else o+="<r:"+r+">"+s[r].toString()+"</r:"+r+">";return o+="</r:"+a+">"}(e,s);u.PerformAjax(s+"</Body></Envelope>",r,a,o)},u.ExecCreate=function(e,s,r,a,o,t){var n,l=u.GetNameFromUrl(e),d="http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(t)+"</Header><Body><g:"+l+' xmlns:g="'+e+'">';for(n in s)d+="<g:"+n+">"+s[n]+"</g:"+n+">";u.PerformAjax(d+"</g:"+l+"></Body></Envelope>",r,a,o)},u.ExecCreateXml=function(e,s,r,a,o){var t=u.GetNameFromUrl(e);u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout></Header><Body><r:"+t+' xmlns:r="'+e+'">'+s+"</r:"+t+"></Body></Envelope>",r,a,o)},u.ExecDelete=function(e,s,r,a,o){s="http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(s)+"</Header><Body /></Envelope>";u.PerformAjax(s,r,a,o)},u.ExecGet=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body /></Envelope>",s,r,a)},u.ExecMethod=function(e,s,r,a,o,t,n){var l,d="";for(l in r)if(null!=r[l])if(Array.isArray(r[l]))for(var c in r[l])d+="<r:"+l+">"+r[l][c]+"</r:"+l+">";else d+="<r:"+l+">"+r[l]+"</r:"+l+">";u.ExecMethodXml(e,s,d,a,o,t,n)},u.ExecMethodXml=function(e,s,r,a,o,t,n){u.PerformAjax(e+"/"+s+"</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(n)+"</Header><Body><r:"+s+'_INPUT xmlns:r="'+e+'">'+r+"</r:"+s+"_INPUT></Body></Envelope>",a,o,t)},u.ExecEnum=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Enumerate xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration" /></Body></Envelope>',s,r,a)},u.ExecPull=function(e,s,r,a,o){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>'+s+"</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull></Body></Envelope>",r,a,o)},u.ParseWsman=function(s){try{s.childNodes||(s=function(e){{if(window.DOMParser)return(new DOMParser).parseFromString(e,"text/xml");var s=new ActiveXObject("Microsoft.XMLDOM");return s.async=!1,s.loadXML(e),s}}(s));var e={Header:{}},r=s.getElementsByTagName("Header")[0];if(!(r=r||s.getElementsByTagName("a:Header")[0]))return null;for(var a=0;a<r.childNodes.length;a++){var o=r.childNodes[a];e.Header[o.localName]=o.textContent}var t,n,l=s.getElementsByTagName("Body")[0];return(l=l||s.getElementsByTagName("a:Body")[0])?(0<l.childNodes.length&&(-1!=(n=(t=l.childNodes[0].localName).indexOf("_OUTPUT"))&&n==t.length-7&&(t=t.substring(0,t.length-7)),e.Header.Method=t,e.Body=function e(s){var r,a={};for(var o=0;o<s.childNodes.length;o++){var t=s.childNodes[o],n=r="false"==(r="true"==(r=0==t.childElementCount?t.textContent:e(t))?!0:r)?!1:r;if(0<t.attributes.length){n={Value:r};for(var l=0;l<t.attributes.length;l++)n["@"+t.attributes[l].name]=t.attributes[l].value}a[t.localName]instanceof Array?a[t.localName].push(n):null==a[t.localName]?a[t.localName]=n:a[t.localName]=[a[t.localName],n]}return a}(l.childNodes[0])),e):null}catch(e){return console.log("Unable to parse XML: "+s),null}},u}
\ No newline at end of file
1 +var WsmanStackCreateService=function(e,s,r,a,o,t){var u={};function l(e){if(!e)return"";var s,r=" ";for(s in e)e.hasOwnProperty(s)&&0===s.indexOf("@")&&(r+=s.substring(1)+'="'+e[s]+'" ');return r}function p(e){if(!e)return"";if("string"==typeof e)return e;if(e.InstanceID)return'<w:SelectorSet><w:Selector Name="InstanceID">'+e.InstanceID+"</w:Selector></w:SelectorSet>";var s,r="<w:SelectorSet>";for(s in e)if(e.hasOwnProperty(s)){if(r+='<w:Selector Name="'+s+'">',e[s].ReferenceParameters){r+="<a:EndpointReference>",r+="<a:Address>"+e[s].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+e[s].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>";var a=e[s].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(a))for(var o=0;o<a.length;o++)r+="<w:Selector"+l(a[o])+">"+a[o].Value+"</w:Selector>";else r+="<w:Selector"+l(a)+">"+a.Value+"</w:Selector>";r+="</w:SelectorSet></a:ReferenceParameters></a:EndpointReference>"}else r+=e[s];r+="</w:Selector>"}return r+="</w:SelectorSet>"}return u.NextMessageId=1,u.Address="/wsman",u.comm=CreateWsmanComm(e,s,r,a,o,t),u.PerformAjax=function(e,a,s,r,o){null==o&&(o=""),u.comm.PerformAjax('<?xml version=\"1.0\" encoding=\"utf-8\"?><Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://www.w3.org/2003/05/soap-envelope" '+o+"><Header><a:Action>"+e,function(e,s,r){200==s?(e=u.ParseWsman(e))&&null!=e?a(u,e.Header.ResourceURI,e,200,r):a(u,null,{Header:{HttpError:s}},601,r):a(u,null,{Header:{HttpError:s}},s,r)},s,r)},u.CancelAllQueries=function(e){u.comm.CancelAllQueries(e)},u.GetNameFromUrl=function(e){var s=e.lastIndexOf("/");return-1==s?e:e.substring(s+1)},u.ExecSubscribe=function(e,s,r,a,o,t,n,l,d,c){var m="",i="";null!=d&&null!=c&&(m="<t:IssuedTokens><t:RequestSecurityTokenResponse><t:TokenType>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken</t:TokenType><t:RequestedSecurityToken><se:UsernameToken><se:Username>"+d+'</se:Username><se:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd#PasswordText">'+c+"</se:Password></se:UsernameToken></t:RequestedSecurityToken></t:RequestSecurityTokenResponse></t:IssuedTokens>",i='<Auth Profile="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/secprofile/http/digest"/>');i="http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(n)+m+'</Header><Body><e:Subscribe><e:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/'+s+'"><e:NotifyTo><a:Address>'+r+"</a:Address></e:NotifyTo>"+i+"</e:Delivery><e:Expires>PT0.000000S</e:Expires></e:Subscribe>";u.PerformAjax(i+"</Body></Envelope>",a,o,t,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:se="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:m="http://x.com"')},u.ExecUnSubscribe=function(e,s,r,a,o){o="http://schemas.xmlsoap.org/ws/2004/08/eventing/Unsubscribe</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo>"+p(o)+"</Header><Body><e:Unsubscribe/>";u.PerformAjax(o+"</Body></Envelope>",s,r,a,'xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"')},u.ExecPut=function(e,s,r,a,o,t){s="http://schemas.xmlsoap.org/ws/2004/09/transfer/Put</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout>"+p(t)+"</Header><Body>"+function(e,s){if(!e||null==s)return"";var r,a=u.GetNameFromUrl(e),o="<r:"+a+' xmlns:r="'+e+'">';for(r in s)if(s.hasOwnProperty(r)&&0!==r.indexOf("__")&&0!==r.indexOf("@")&&void 0!==s[r]&&null!==s[r]&&"function"!=typeof s[r])if("object"==typeof s[r]&&s[r].ReferenceParameters){o+="<r:"+r+"><a:Address>"+s[r].Address+"</a:Address><a:ReferenceParameters><w:ResourceURI>"+s[r].ReferenceParameters.ResourceURI+"</w:ResourceURI><w:SelectorSet>";var t=s[r].ReferenceParameters.SelectorSet.Selector;if(Array.isArray(t))for(var n=0;n<t.length;n++)o+="<w:Selector"+l(t[n])+">"+t[n].Value+"</w:Selector>";else o+="<w:Selector"+l(t)+">"+t.Value+"</w:Selector>";o+="</w:SelectorSet></a:ReferenceParameters></r:"+r+">"}else if(Array.isArray(s[r]))for(n=0;n<s[r].length;n++)o+="<r:"+r+">"+s[r][n].toString()+"</r:"+r+">";else o+="<r:"+r+">"+s[r].toString()+"</r:"+r+">";return o+="</r:"+a+">"}(e,s);u.PerformAjax(s+"</Body></Envelope>",r,a,o)},u.ExecCreate=function(e,s,r,a,o,t){var n,l=u.GetNameFromUrl(e),d="http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(t)+"</Header><Body><g:"+l+' xmlns:g="'+e+'">';for(n in s)d+="<g:"+n+">"+s[n]+"</g:"+n+">";u.PerformAjax(d+"</g:"+l+"></Body></Envelope>",r,a,o)},u.ExecCreateXml=function(e,s,r,a,o){var t=u.GetNameFromUrl(e);u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Create</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60.000S</w:OperationTimeout></Header><Body><r:"+t+' xmlns:r="'+e+'">'+s+"</r:"+t+"></Body></Envelope>",r,a,o)},u.ExecDelete=function(e,s,r,a,o){s="http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(s)+"</Header><Body /></Envelope>";u.PerformAjax(s,r,a,o)},u.ExecGet=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body /></Envelope>",s,r,a)},u.ExecMethod=function(e,s,r,a,o,t,n){var l,d="";for(l in r)if(null!=r[l])if(Array.isArray(r[l]))for(var c in r[l])d+="<r:"+l+">"+r[l][c]+"</r:"+l+">";else d+="<r:"+l+">"+r[l]+"</r:"+l+">";u.ExecMethodXml(e,s,d,a,o,t,n)},u.ExecMethodXml=function(e,s,r,a,o,t,n){u.PerformAjax(e+"/"+s+"</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++"</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout>"+p(n)+"</Header><Body><r:"+s+'_INPUT xmlns:r="'+e+'">'+r+"</r:"+s+"_INPUT></Body></Envelope>",a,o,t)},u.ExecEnum=function(e,s,r,a){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Enumerate xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration" /></Body></Envelope>',s,r,a)},u.ExecPull=function(e,s,r,a,o){u.PerformAjax("http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</a:Action><a:To>"+u.Address+"</a:To><w:ResourceURI>"+e+"</w:ResourceURI><a:MessageID>"+u.NextMessageId+++'</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>PT60S</w:OperationTimeout></Header><Body><Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>'+s+"</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull></Body></Envelope>",r,a,o)},u.ParseWsman=function(s){try{s.childNodes||(s=function(e){{if(window.DOMParser)return(new DOMParser).parseFromString(e,"text/xml");var s=new ActiveXObject("Microsoft.XMLDOM");return s.async=!1,s.loadXML(e),s}}(s));var e={Header:{}},r=s.getElementsByTagName("Header")[0];if(!(r=r||s.getElementsByTagName("a:Header")[0]))return null;for(var a=0;a<r.childNodes.length;a++){var o=r.childNodes[a];e.Header[o.localName]=o.textContent}var t,n,l=s.getElementsByTagName("Body")[0];return(l=l||s.getElementsByTagName("a:Body")[0])?(0<l.childNodes.length&&(-1!=(n=(t=l.childNodes[0].localName).indexOf("_OUTPUT"))&&n==t.length-7&&(t=t.substring(0,t.length-7)),e.Header.Method=t,e.Body=function e(s){var r,a={};for(var o=0;o<s.childNodes.length;o++){var t=s.childNodes[o],n=r="false"==(r="true"==(r=0==t.childElementCount?t.textContent:e(t))?!0:r)?!1:r;if(0<t.attributes.length){n={Value:r};for(var l=0;l<t.attributes.length;l++)n["@"+t.attributes[l].name]=t.attributes[l].value}a[t.localName]instanceof Array?a[t.localName].push(n):null==a[t.localName]?a[t.localName]=n:a[t.localName]=[a[t.localName],n]}return a}(l.childNodes[0])),e):null}catch(e){return console.log("Unable to parse XML: "+s),null}},u}
\ No newline at end of file
public/scripts/charts-min.js
+1 -1
@@ -1 +1 @@
1 -!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function i(a,r,o){function s(n,t){if(!r[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw(e=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",e}e=r[n]={exports:{}},a[n][0].call(e.exports,function(t){var e=a[n][1][t];return s(e||t)},e,e.exports,i,a,r,o)}return r[n].exports}for(var l="function"==typeof require&&require,t=0;t<o.length;t++)s(o[t]);return s}({1:[function(t,e,n){var r=t(5);function i(t){if(t){var e=[0,0,0],n=1;if(i=t.match(/^#([a-fA-F0-9]{3})$/i))for(var i=i[1],a=0;a<e.length;a++)e[a]=parseInt(i[a]+i[a],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(a=0;a<e.length;a++)e[a]=parseInt(i.slice(2*a,2*a+2),16)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=r[i[1]]))return}for(a=0;a<e.length;a++)e[a]=d(e[a],0,255);return n=n||0==n?d(n,0,1):1,e[3]=n,e}}function a(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){t=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(t)?1:t,0,1)]}}}function o(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){t=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(t)?1:t,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:a,getRgb:function(t){t=i(t);return t&&t.slice(0,3)},getHsl:function(t){t=a(t);return t&&t.slice(0,3)},getHwb:o,getAlpha:function(t){var e=i(t);return(e=e||a(t))||(e=o(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+n+"%, "+e+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in r)f[r[c]]=c},{5:5}],2:[function(t,e,n){var d=t(4),i=t(1),o=function(t){return t instanceof o?t:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=i.getRgba(t))?this.setValues("rgb",e):(e=i.getHsla(t))?this.setValues("hsl",e):(e=i.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new o(t);var e};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,a=void 0===e?.5:e,t=2*a-1,e=n.alpha()-i.alpha(),t=(1+(t*e==-1?t:(t+e)/(1+t*e)))/2,e=1-t;return this.rgb(t*n.red()+e*i.red(),t*n.green()+e*i.green(),t*n.blue()+e*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n,i=new o,a=this.values,r=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?r[n]=t.slice(0):"[object Number]"===e?r[n]=t:console.error("unexpected color value:",t));return i}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[r[t][0]]){for(var l=r[t],u=0;u<t.length;u++)a[t][u]=e[l[u]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(o[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in r)i!==t&&(a[i]=d[t][i](a[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n===i[e]||(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{1:1,4:4}],3:[function(t,e,n){function a(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.min(n,i,a),o=Math.max(n,i,a),t=o-r;return o==r?e=0:n==o?e=(i-a)/t:i==o?e=2+(a-n)/t:a==o&&(e=4+(n-i)/t),(e=Math.min(60*e,360))<0&&(e+=360),i=(r+o)/2,[e,100*(o==r?0:i<=.5?t/(o+r):t/(2-o-r)),100*i]}function i(t){var e,n=t[0],i=t[1],a=t[2],r=Math.min(n,i,a),o=Math.max(n,i,a),s=o-r,t=0==o?0:s/o*1e3/10;return o==r?e=0:n==o?e=(i-a)/s:i==o?e=2+(a-n)/s:a==o&&(e=4+(n-i)/s),(e=Math.min(60*e,360))<0&&(e+=360),[e,t,o/255*1e3/10]}function o(t){var e=t[0],n=t[1],i=t[2];return[a(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(i=1-1/255*Math.max(e,Math.max(n,i)))]}function s(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,t=Math.min(1-e,1-n,1-i);return[100*((1-e-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]}function l(t){return D[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*n+.0722*t),100*(.0193*e+.1192*n+.9505*t)]}function d(t){var e=u(t),n=e[0],t=e[1],e=e[2];return t/=100,e/=108.883,n=.008856<(n/=95.047)?Math.pow(n,1/3):7.787*n+16/116,[116*(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116)-16,500*(n-t),200*(t-(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116))]}function h(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100;if(0==a)return[n=255*t,n,n];for(var r,o=2*t-(r=t<.5?t*(1+a):t+a-t*a),s=[0,0,0],l=0;l<3;l++)(e=i+1/3*-(l-1))<0&&e++,1<e&&e--,s[l]=255*(n=6*e<1?o+6*(r-o)*e:2*e<1?r:3*e<2?o+(r-o)*(2/3-e)*6:o);return s}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),a=255*i*(1-n),r=255*i*(1-n*e),o=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,o,a];case 1:return[r,i,a];case 2:return[a,i,o];case 3:return[a,r,i];case 4:return[o,a,i];case 5:return[i,a,r]}}function f(t){var e,n,i=t[0]/360,a=t[1]/100,o=t[2]/100,t=a+o;switch(1<t&&(a/=t,o/=t),i=6*i-(t=Math.floor(6*i)),n=a+(i=0!=(1&t)?1-i:i)*((e=1-o)-a),t){default:case 6:case 0:r=e,g=n,b=a;break;case 1:r=n,g=e,b=a;break;case 2:r=a,g=e,b=n;break;case 3:r=a,g=n,b=e;break;case 4:r=n,g=a,b=e;break;case 5:r=e,g=a,b=n}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t))]}function p(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=3.2406*e+-1.5372*n+-.4986*i,t=-.9689*e+1.8758*n+.0415*i,i=.0557*e+-.204*n+1.057*i;return a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:12.92*a,t=.0031308<t?1.055*Math.pow(t,1/2.4)-.055:12.92*t,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1)),255*(i=Math.min(Math.max(0,i),1))]}function v(t){var e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function y(t){var e,n=t[0],i=t[1],t=t[2],n=n<=8?(e=100*n/903.3)/100*7.787+16/116:(e=100*Math.pow((n+16)/116,3),Math.pow(e/100,1/3)),a=a/95.047<=.008856?95.047*(i/500+n-16/116)/7.787:95.047*Math.pow(i/500+n,3),r=r/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,r]}function x(t){var e=t[0],n=t[1],i=t[2],t=360*Math.atan2(i,n)/2/Math.PI;return t<0&&(t+=360),[e,Math.sqrt(n*n+i*i),t]}function _(t){return p(y(t))}function k(t){var e=t[0],n=t[1],t=t[2]/360*2*Math.PI;return[e,n*Math.cos(t),n*Math.sin(t)]}function w(t){return S[t]}e.exports={rgb2hsl:a,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],n=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(n*=(t*=2)<=1?t:2-t)/(t+n)),100*((t+n)/2)]:[0,0,0]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e=t[0],n=t[1]/100,i=t[2]/100;return t=n*i,[e,100*(t=(t/=(i=(2-n)*i)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return a(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return a(m(t))},cmyk2hsv:function(t){return i(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return a(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return _(k(t))}};var M,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},D={};for(M in S)D[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){function a(){return new l}var i,r=t(3);for(i in r){a[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(i);var o=/(\w+)2(\w+)/.exec(i),s=o[1],o=o[2];(a[s]=a[s]||{})[o]=a[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=r[i](t);if("string"==typeof e||void 0===e)return e;for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(i)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,n,i=this.convs[t];return i||(e=this.space,n=this.convs[e],i=a[e][t](n),this.convs[t]=i),i},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(xn,_n,t){var e,n;e=this,n=function(){"use strict";var t;function h(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return Ce(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=f(t),n=p.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function m(t){var e=d(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}var p=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},v=h.momentProperties=[];function y(t,e){var n,i,a;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)r(a=e[i=v[n]])||(t[i]=a);return t}var e=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,h.updateOffset(this),e=!1)}function x(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,t=0;return t=0!=e&&isFinite(e)?_(e):t}function w(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0,o=0;o<i;o++)(n&&t[o]!==e[o]||!n&&k(t[o])!==k(e[o]))&&r++;return r+a}function M(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(a,r){var o=!0;return u(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,a),o){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}M(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),o=!1}return r.apply(this,arguments)},r)}var S={};function D(t,e){null!=h.deprecationHandler&&h.deprecationHandler(t,e),S[t]||(M(e),S[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var n,i=u({},t);for(n in e)c(e,n)&&(s(t[n])&&s(e[n])?(i[n]={},u(i[n],t[n]),u(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)c(t,n)&&!c(e,n)&&s(t[n])&&(i[n]=u({},i[n]));return i}function T(t){null!=t&&this.set(t)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null;var O=Object.keys||function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var I={};function A(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function F(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)c(t,n)&&(e=F(n))&&(i[e]=t[n]);return i}var L={};function Y(t,e){L[t]=e}function W(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function B(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(V[t]=a),e&&(V[e[0]]=function(){return W(a.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function E(t,e){return t.isValid()?(e=j(e,t.localeData()),H[e]=H[e]||function(i){for(var t,a=i.match(N),e=0,r=a.length;e<r;e++)V[a[e]]?a[e]=V[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<r;n++)e+=C(a[n])?a[n].call(t,i):a[n];return e}}(e),H[e](t)):t.localeData().invalidDate()}function j(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;0<=n&&z.test(t);)t=t.replace(z,i),z.lastIndex=0,--n;return t}var U=/\d/,q=/\d\d/,G=/\d{3}/,Z=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,$=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st={};function lt(t,n,i){st[t]=C(n)?n:function(t,e){return t&&i?i:n}}function ut(t,e){return c(st,t)?st[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function ct(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),l(n)&&(i=function(t,e){e[n]=k(t)}),e=0;e<t.length;e++)ht[t[e]]=i}function ft(t,a){ct(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var gt=0,mt=1,pt=2,vt=3,yt=4,bt=5,xt=6,_t=7,kt=8;function wt(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}B("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),A("year","y"),Y("year",1),lt("Y",it),lt("YY",J,q),lt("YYYY",tt,Z),lt("YYYYY",et,X),lt("YYYYYY",et,X),ct(["YYYYY","YYYYYY"],gt),ct("YYYY",function(t,e){e[gt]=2===t.length?h.parseTwoDigitYear(t):k(t)}),ct("YY",function(t,e){e[gt]=h.parseTwoDigitYear(t)}),ct("Y",function(t,e){e[gt]=parseInt(t,10)}),h.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var St,Dt=Ct("FullYear",!0);function Ct(e,n){return function(t){return null!=t?(Tt(this,e,t),h.updateOffset(this,n),this):Pt(this,e)}}function Pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Tt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ot(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?Mt(t)?29:28:31-n%7%2}St=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),B("MMMM",0,0,function(t){return this.localeData().months(this,t)}),A("month","M"),Y("month",8),lt("M",J),lt("MM",J,q),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ct(["M","MM"],function(t,e){e[mt]=k(t)-1}),ct(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[mt]=i:f(n).invalidMonth=t});var It=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ft="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Lt(t){return null!=t?(Rt(this,t),h.updateOffset(this,!0),this):Pt(this,"Month")}var Yt=ot;var Wt=ot;function Nt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],r=0;r<12;r++)e=d([2e3,r]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),r=0;r<12;r++)n[r]=dt(n[r]),i[r]=dt(i[r]);for(r=0;r<24;r++)a[r]=dt(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function zt(t,e,n,i,a,r,o){o=new Date(t,e,n,i,a,r,o);return t<100&&0<=t&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function Ht(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Vt(t,e,n){n=7+e-n;return n-(7+Ht(t,0,n).getUTCDay()-e)%7-1}function Bt(t,e,n,i,a){var r,a=1+7*(e-1)+(7+n-i)%7+Vt(t,i,a),a=a<=0?wt(r=t-1)+a:a>wt(t)?(r=t+1,a-wt(t)):(r=t,a);return{year:r,dayOfYear:a}}function Et(t,e,n){var i,a,r=Vt(t.year(),e,n),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?i=r+jt(a=t.year()-1,e,n):r>jt(t.year(),e,n)?(i=r-jt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function jt(t,e,n){var i=Vt(t,e,n),n=Vt(t+1,e,n);return(wt(t)-i+n)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),Y("week",5),Y("isoWeek",5),lt("w",J),lt("ww",J,q),lt("W",J),lt("WW",J,q),ft(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)});B("d",0,"do","day"),B("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),B("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),B("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ft(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:f(n).invalidWeekday=t}),ft(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Gt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Zt=ot;var Xt=ot;var Jt=ot;function Kt(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=d([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),r.push(n),o.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),r.sort(t),o.sort(t),s.sort(t),l=0;l<7;l++)r[l]=dt(r[l]),o[l]=dt(o[l]),s[l]=dt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $t(){return this.hours()%12||12}function Qt(t,e){B(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,$t),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+$t.apply(this)+W(this.minutes(),2)}),B("hmmss",0,0,function(){return""+$t.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Qt("a",!0),Qt("A",!1),A("hour","h"),Y("hour",13),lt("a",te),lt("A",te),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,q),lt("hh",J,q),lt("kk",J,q),lt("hmm",K),lt("hmmss",$),lt("Hmm",K),lt("Hmmss",$),ct(["H","HH"],vt),ct(["k","kk"],function(t,e,n){t=k(t);e[vt]=24===t?0:t}),ct(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ct(["h","hh"],function(t,e,n){e[vt]=k(t),f(n).bigHour=!0}),ct("hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i)),f(n).bigHour=!0}),ct("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i,2)),e[bt]=k(t.substr(a)),f(n).bigHour=!0}),ct("Hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i))}),ct("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i,2)),e[bt]=k(t.substr(a))});var ee,ne=Ct("Hours",!0),ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Ft,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:Gt,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},ae={},re={};function oe(t){return t&&t.toLowerCase().replace("_","-")}function se(t){if(!ae[t]&&void 0!==_n&&_n&&_n.exports)try{var e=ee._abbr;xn("./locale/"+t),le(e)}catch(t){}return ae[t]}function le(t,e){var n;return(ee=t&&(n=r(e)?de(t):ue(t,e))?n:ee)._abbr}function ue(t,e){if(null===e)return delete ae[t],null;var n=ie;if(e.abbr=t,null!=ae[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ae[t]._config;else if(null!=e.parentLocale){if(null==ae[e.parentLocale])return re[e.parentLocale]||(re[e.parentLocale]=[]),re[e.parentLocale].push({name:t,config:e}),null;n=ae[e.parentLocale]._config}return ae[t]=new T(P(n,e)),re[t]&&re[t].forEach(function(t){ue(t.name,t.config)}),le(t),ae[t]}function de(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ee;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,n,i,a,r=0;r<t.length;){for(e=(a=oe(t[r]).split("-")).length,n=(n=oe(t[r+1]))?n.split("-"):null;0<e;){if(i=se(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&w(a,n,!0)>=e-1)break;e--}r++}return null}(t)}function he(t){var e=t._a;return e&&-2===f(t).overflow&&(e=e[mt]<0||11<e[mt]?mt:e[pt]<1||e[pt]>Ot(e[gt],e[mt])?pt:e[vt]<0||24<e[vt]||24===e[vt]&&(0!==e[yt]||0!==e[bt]||0!==e[xt])?vt:e[yt]<0||59<e[yt]?yt:e[bt]<0||59<e[bt]?bt:e[xt]<0||999<e[xt]?xt:-1,f(t)._overflowDayOfYear&&(e<gt||pt<e)&&(e=pt),f(t)._overflowWeeks&&-1===e&&(e=_t),f(t)._overflowWeekday&&-1===e&&(e=kt),f(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function fe(t){var e,n,i,a,r,o=[];if(!t._d){for(a=t,r=new Date(h.now()),n=a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],t._w&&null==t._a[pt]&&null==t._a[mt]&&function(t){var e,n,i,a,r,o,s;{var l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,o=4,n=ce(e.GG,t._a[gt],Et(Pe(),1,4).year),i=ce(e.W,1),((a=ce(e.E,1))<1||7<a)&&(s=!0)):(r=t._locale._week.dow,o=t._locale._week.doy,l=Et(Pe(),r,o),n=ce(e.gg,t._a[gt],l.year),i=ce(e.w,l.week),null!=e.d?((a=e.d)<0||6<a)&&(s=!0):null!=e.e?(a=e.e+r,(e.e<0||6<e.e)&&(s=!0)):a=r)}i<1||i>jt(n,r,o)?f(t)._overflowWeeks=!0:null!=s?f(t)._overflowWeekday=!0:(o=Bt(n,i,a,r,o),t._a[gt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(i=ce(t._a[gt],n[gt]),(t._dayOfYear>wt(i)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Ht(i,0,t._dayOfYear),t._a[mt]=i.getUTCMonth(),t._a[pt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&0===t._a[xt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Ht:zt).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(f(t).weekdayMismatch=!0)}}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ye=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],be=/^\/?Date\((\-?\d+)/i;function xe(t){var e,n,i,a,r,o,s=t._i,l=ge.exec(s)||me.exec(s);if(l){for(f(t).iso=!0,e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[1])){a=ve[e][0],i=!1!==ve[e][2];break}if(null!=a){if(l[3]){for(e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[3])){r=(l[2]||" ")+ye[e][0];break}if(null==r)return void(t._isValid=!1)}if(i||null==r){if(l[4]){if(!pe.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),Se(t)}else t._isValid=!1}else t._isValid=!1}else t._isValid=!1}var _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ke(t,e,n,i,a,r){a=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),Ft.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&a.push(parseInt(r,10)),a}var we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Me(t){var e,n,i,a,r=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());r?(e=ke(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],i=e,a=t,n&&qt.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(f(a).weekdayMismatch=!0,a._isValid=!1):(t._a=e,t._tzm=(a=r[8],e=r[9],r=r[10],a?we[a]:e?0:60*(((e=parseInt(r,10))-(r=e%100))/100)+r),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0)):t._isValid=!1}function Se(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],f(t).empty=!0;for(var e,n,i,a,r,o=""+t._i,s=o.length,l=0,u=j(t._f,t._locale).match(N)||[],d=0;d<u.length;d++)n=u[d],(e=(o.match(ut(n,t))||[])[0])&&(0<(a=o.substr(0,o.indexOf(e))).length&&f(t).unusedInput.push(a),o=o.slice(o.indexOf(e)+e.length),l+=e.length),V[n]?(e?f(t).empty=!1:f(t).unusedTokens.push(n),i=n,r=t,null!=(a=e)&&c(ht,i)&&ht[i](a,r._a,r,i)):t._strict&&!e&&f(t).unusedTokens.push(n);f(t).charsLeftOver=s-l,0<o.length&&f(t).unusedInput.push(o),t._a[vt]<=12&&!0===f(t).bigHour&&0<t._a[vt]&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((n=t.isPM(n))&&e<12&&(e+=12),e=n||12!==e?e:0):e}(t._locale,t._a[vt],t._meridiem),fe(t),he(t)}else Me(t);else xe(t)}function De(t){var e=t._i,n=t._f;return t._locale=t._locale||de(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new b(he(e)):(i(e)?t._d=e:o(n)?function(t){var e,n,i,a,r;if(0===t._f.length)return f(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)r=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Se(e),g(e)&&(r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,(null==i||r<i)&&(i=r,n=e));u(t,n||e)}(t):n?Se(t):r(n=(e=t)._i)?e._d=new Date(h.now()):i(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(t){var e=be.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Me(t),!1===t._isValid&&(delete t._isValid,h.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):o(n)?(e._a=a(n.slice(0),function(t){return parseInt(t,10)}),fe(e)):s(n)?function(t){var e;t._d||(e=R(t._i),t._a=a([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t))}(e):l(n)?e._d=new Date(n):h.createFromInputFallback(e),g(t)||(t._d=null),t))}function Ce(t,e,n,i,a){var r={};return!0!==n&&!1!==n||(i=n,n=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(t.hasOwnProperty(e))return;return 1}(t)||o(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=t,r._f=e,r._strict=i,(r=new b(he(De(r=r))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Pe(t,e,n,i){return Ce(t,e,n,i,!1)}h.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var Te=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Oe=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ie(t,e){var n,i;if(!(e=1===e.length&&o(e[0])?e[0]:e).length)return Pe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fe(t){var e=R(t),n=e.year||0,i=e.quarter||0,a=e.month||0,r=e.week||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,t=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===St.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ae.length;++i)if(t[Ae[i]]){if(n)return!1;parseFloat(t[Ae[i]])!==k(t[Ae[i]])&&(n=!0)}return!0}(e),this._milliseconds=+t+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=de(),this._bubble()}function Re(t){return t instanceof Fe}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,n){B(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+W(~~(t/60),2)+n+W(~~t%60,2)})}Ye("Z",":"),Ye("ZZ",""),lt("Z",rt),lt("ZZ",rt),ct(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ne(rt,t)});var We=/([\+\-]|\d\d)/gi;function Ne(t,e){e=(e||"").match(t);if(null===e)return null;t=((e[e.length-1]||[])+"").match(We)||["-",0,0],e=60*t[1]+k(t[2]);return 0===e?0:"+"===t[0]?e:-e}function ze(t,e){var n;return e._isUTC?(n=e.clone(),e=(x(t)||i(t)?t:Pe(t)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+e),h.updateOffset(n,!1),n):Pe(t).local()}function He(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ve(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var Be=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ee=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(t,e){var n,i=t,a=null;return Re(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(i={},e?i[e]=t:i.milliseconds=t):(a=Be.exec(t))?(n="-"===a[1]?-1:1,i={y:0,d:k(a[pt])*n,h:k(a[vt])*n,m:k(a[yt])*n,s:k(a[bt])*n,ms:k(Le(1e3*a[xt]))*n}):(a=Ee.exec(t))?(n="-"===a[1]?-1:(a[1],1),i={y:Ue(a[2],n),M:Ue(a[3],n),w:Ue(a[4],n),d:Ue(a[5],n),h:Ue(a[6],n),m:Ue(a[7],n),s:Ue(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(n=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=qe(t,e):((n=qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Pe(i.from),Pe(i.to)),(i={}).ms=n.milliseconds,i.M=n.months),i=new Fe(i),Re(t)&&c(t,"_locale")&&(i._locale=t._locale),i}function Ue(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ge(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(D(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ze(this,je(t="string"==typeof t?+t:t,e),i),this}}function Ze(t,e,n,i){var a=e._milliseconds,r=Le(e._days),e=Le(e._months);t.isValid()&&(i=null==i||i,e&&Rt(t,Pt(t,"Month")+e*n),r&&Tt(t,"Date",Pt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&h.updateOffset(t,r||e))}je.fn=Fe.prototype,je.invalid=function(){return je(NaN)};ot=Ge(1,"add"),K=Ge(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),i=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+i)||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=de(t))&&(this._locale=t),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";$=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Ke(){return this._locale}function $e(t,e){B(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var r;return null==t?Et(this,i,a).year:(r=jt(t,i,a),function(t,e,n,i,a){a=Bt(t,e,n,i,a),a=Ht(a.year,0,a.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e=r<e?r:e,n,i,a))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$e("gggg","weekYear"),$e("ggggg","weekYear"),$e("GGGG","isoWeekYear"),$e("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",J,q),lt("gg",J,q),lt("GGGG",tt,Z),lt("gggg",tt,Z),lt("GGGGG",et,X),lt("ggggg",et,X),ft(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),ft(["gg","GG"],function(t,e,n,i){e[i]=h.parseTwoDigitYear(t)}),B("Q",0,"Qo","quarter"),A("quarter","Q"),Y("quarter",7),lt("Q",U),ct("Q",function(t,e){e[mt]=3*(k(t)-1)}),B("D",["DD",2],"Do","date"),A("date","D"),Y("date",9),lt("D",J),lt("DD",J,q),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ct(["D","DD"],pt),ct("Do",function(t,e){e[pt]=k(t.match(J)[0])});At=Ct("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),Y("dayOfYear",4),lt("DDD",Q),lt("DDDD",G),ct(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),B("m",["mm",2],0,"minute"),A("minute","m"),Y("minute",14),lt("m",J),lt("mm",J,q),ct(["m","mm"],yt);Ut=Ct("Minutes",!1);B("s",["ss",2],0,"second"),A("second","s"),Y("second",15),lt("s",J),lt("ss",J,q),ct(["s","ss"],bt);var tn,Gt=Ct("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),Y("millisecond",16),lt("S",Q,U),lt("SS",Q,q),lt("SSS",Q,G),tn="SSSS";tn.length<=9;tn+="S")lt(tn,nt);function en(t,e){e[xt]=k(1e3*("0."+t))}for(tn="S";tn.length<=9;tn+="S")ct(tn,en);tt=Ct("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");Z=b.prototype;function nn(t){return t}Z.add=ot,Z.calendar=function(t,e){var n=t||Pe(),t=ze(n,this).startOf("day"),t=h.calendarFormat(this,t)||"sameElse",e=e&&(C(e[t])?e[t].call(this,n):e[t]);return this.format(e||this.localeData().calendar(t,this,Pe(n)))},Z.clone=function(){return new b(this)},Z.diff=function(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=ze(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=F(e)){case"year":r=Xe(this,i)/12;break;case"month":r=Xe(this,i);break;case"quarter":r=Xe(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:_(r)},Z.endOf=function(t){return void 0===(t=F(t))||"millisecond"===t?this:this.startOf(t="date"===t?"day":t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},Z.format=function(t){return t=t||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat),t=E(this,t),this.localeData().postformat(t)},Z.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Z.fromNow=function(t){return this.from(Pe(),t)},Z.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Z.toNow=function(t){return this.to(Pe(),t)},Z.get=function(t){return C(this[t=F(t)])?this[t]():this},Z.invalidAt=function(){return f(this).overflow},Z.isAfter=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(r(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},Z.isBefore=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(r(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},Z.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},Z.isSame=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(e||"millisecond"))?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},Z.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Z.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Z.isValid=function(){return g(this)},Z.lang=$,Z.locale=Je,Z.localeData=Ke,Z.max=Oe,Z.min=Te,Z.parsingFlags=function(){return u({},f(this))},Z.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)n.push({unit:e,priority:L[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(C(this[t=F(t)]))return this[t](e);return this},Z.startOf=function(t){switch(t=F(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Z.subtract=K,Z.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Z.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t;return(t=e?this.clone().utc():this).year()<0||9999<t.year()?E(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",E(t,"Z")):E(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+t+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.year=Dt,Z.isLeapYear=function(){return Mt(this.year())},Z.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Z.month=Lt,Z.daysInMonth=function(){return Ot(this.year(),this.month())},Z.week=Z.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Z.isoWeek=Z.isoWeeks=function(t){var e=Et(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Z.weeksInYear=function(){var t=this.localeData()._week;return jt(this.year(),t.dow,t.doy)},Z.isoWeeksInYear=function(){return jt(this.year(),1,4)},Z.date=At,Z.day=Z.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},Z.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Z.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e=(e=t,t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?e:e-7)},Z.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Z.hour=Z.hours=ne,Z.minute=Z.minutes=Ut,Z.second=Z.seconds=Gt,Z.millisecond=Z.milliseconds=tt,Z.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=Ne(rt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ze(this,je(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(t){return this.utcOffset(0,t)},Z.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},Z.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ne(at,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Ve,Z.isUTC=Ve,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=n("dates accessor is deprecated. Use date instead.",At),Z.months=n("months accessor is deprecated. Use month instead",Lt),Z.years=n("years accessor is deprecated. Use year instead",Dt),Z.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),Z.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=De(e))._a?(t=(e._isUTC?d:Pe)(e._a),this._isDSTShifted=this.isValid()&&0<w(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});et=T.prototype;function an(t,e,n,i){var a=de(),e=d().set(i,e);return a[n](e,t)}function rn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return an(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=an(t,a,n,"month");return i}function on(t,e,n,i){e=("boolean"==typeof t?l(e)&&(n=e,e=void 0):(e=t,t=!1,l(n=e)&&(n=e,e=void 0)),e||"");var a=de(),r=t?a._week.dow:0;if(null!=n)return an(e,(n+r)%7,i,"day");for(var o=[],s=0;s<7;s++)o[s]=an(e,(s+r)%7,i,"day");return o}et.calendar=function(t,e,n){return C(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},et.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},et.invalidDate=function(){return this._invalidDate},et.ordinal=function(t){return this._ordinal.replace("%d",t)},et.preparse=nn,et.postformat=nn,et.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return C(a)?a(t,e,n,i):a.replace(/%d/i,t)},et.pastFuture=function(t,e){return C(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},et.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},et.months=function(t,e){return t?(o(this._months)?this._months:this._months[(this._months.isFormat||It).test(e)?"format":"standalone"])[t.month()]:o(this._months)?this._months:this._months.standalone},et.monthsShort=function(t,e){return t?(o(this._monthsShort)?this._monthsShort:this._monthsShort[It.test(e)?"format":"standalone"])[t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},et.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=St.call(this._shortMonthsParse,t))?a:null:-1!==(a=St.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=St.call(this._shortMonthsParse,t))||-1!==(a=St.call(this._longMonthsParse,t))?a:null:-1!==(a=St.call(this._longMonthsParse,t))||-1!==(a=St.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},et.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},et.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Yt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},et.week=function(t){return Et(t,this._week.dow,this._week.doy).week},et.firstDayOfYear=function(){return this._week.doy},et.firstDayOfWeek=function(){return this._week.dow},et.weekdays=function(t,e){return t?(o(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},et.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},et.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},et.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=St.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=St.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._shortWeekdaysParse,t))||-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=St.call(this._shortWeekdaysParse,t))||-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:-1!==(a=St.call(this._minWeekdaysParse,t))||-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},et.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},et.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},et.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},et.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},et.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},le("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),h.lang=n("moment.lang is deprecated. Use moment.locale instead.",le),h.langData=n("moment.langData is deprecated. Use moment.localeData instead.",de);var sn=Math.abs;function ln(t,e,n,i){n=je(e,n);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function un(t){return t<0?Math.floor(t):Math.ceil(t)}function dn(t){return 4800*t/146097}function hn(t){return 146097*t/4800}function cn(t){return function(){return this.as(t)}}X=cn("ms"),U=cn("s"),q=cn("m"),Q=cn("h"),G=cn("d"),ot=cn("w"),Oe=cn("M"),Te=cn("y");function fn(t){return function(){return this.isValid()?this._data[t]:NaN}}K=fn("milliseconds"),ne=fn("seconds"),Ut=fn("minutes"),Gt=fn("hours"),tt=fn("days"),At=fn("months"),Dt=fn("years");var gn=Math.round,mn={ss:44,s:45,m:45,h:22,d:26,M:11};function pn(t,e,n){var i=je(t).abs(),a=gn(i.as("s")),r=gn(i.as("m")),o=gn(i.as("h")),s=gn(i.as("d")),l=gn(i.as("M")),i=gn(i.as("y")),i=(a<=mn.ss?["s",a]:a<mn.s&&["ss",a])||r<=1&&["m"]||r<mn.m&&["mm",r]||o<=1&&["h"]||o<mn.h&&["hh",o]||s<=1&&["d"]||s<mn.d&&["dd",s]||l<=1&&["M"]||l<mn.M&&["MM",l]||i<=1&&["y"]||["yy",i];return i[2]=e,i[3]=0<+t,i[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,i)}var vn=Math.abs;function yn(t){return(0<t)-(t<0)||+t}function bn(){if(!this.isValid())return this.localeData().invalidDate();var t=vn(this._milliseconds)/1e3,e=vn(this._days),n=vn(this._months),i=_(t/60),a=_(i/60);t%=60,i%=60;var r=_(n/12),o=n%=12,s=e,l=a,u=i,n=t?t.toFixed(3).replace(/\.?0+$/,""):"",e=this.asSeconds();if(!e)return"P0D";a=yn(this._months)!==yn(e)?"-":"",i=yn(this._days)!==yn(e)?"-":"",t=yn(this._milliseconds)!==yn(e)?"-":"";return(e<0?"-":"")+"P"+(r?a+r+"Y":"")+(o?a+o+"M":"")+(s?i+s+"D":"")+(l||u||n?"T":"")+(l?t+l+"H":"")+(u?t+u+"M":"")+(n?t+n+"S":"")}et=Fe.prototype;return et.isValid=function(){return this._isValid},et.abs=function(){var t=this._data;return this._milliseconds=sn(this._milliseconds),this._days=sn(this._days),this._months=sn(this._months),t.milliseconds=sn(t.milliseconds),t.seconds=sn(t.seconds),t.minutes=sn(t.minutes),t.hours=sn(t.hours),t.months=sn(t.months),t.years=sn(t.years),this},et.add=function(t,e){return ln(this,t,e,1)},et.subtract=function(t,e){return ln(this,t,e,-1)},et.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=F(t))||"year"===t)return e=this._days+i/864e5,n=this._months+dn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},et.asMilliseconds=X,et.asSeconds=U,et.asMinutes=q,et.asHours=Q,et.asDays=G,et.asWeeks=ot,et.asMonths=Oe,et.asYears=Te,et.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},et._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*un(hn(n)+e),n=e=0),i.milliseconds=t%1e3,t=_(t/1e3),i.seconds=t%60,t=_(t/60),i.minutes=t%60,t=_(t/60),i.hours=t%24,e+=_(t/24),n+=t=_(dn(e)),e-=un(hn(t)),t=_(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},et.clone=function(){return je(this)},et.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},et.milliseconds=K,et.seconds=ne,et.minutes=Ut,et.hours=Gt,et.days=tt,et.weeks=function(){return _(this.days()/7)},et.months=At,et.years=Dt,et.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},et.toISOString=bn,et.toString=bn,et.toJSON=bn,et.locale=Je,et.localeData=Ke,et.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),et.lang=$,B("X",0,0,"unix"),B("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),ct("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ct("x",function(t,e,n){n._d=new Date(k(t))}),h.version="2.20.1",t=Pe,h.fn=Z,h.min=function(){return Ie("isBefore",[].slice.call(arguments,0))},h.max=function(){return Ie("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=d,h.unix=function(t){return Pe(1e3*t)},h.months=function(t,e){return rn(t,e,"months")},h.isDate=i,h.locale=le,h.invalid=m,h.duration=je,h.isMoment=x,h.weekdays=function(t,e,n){return on(t,e,n,"weekdays")},h.parseZone=function(){return Pe.apply(null,arguments).parseZone()},h.localeData=de,h.isDuration=Re,h.monthsShort=function(t,e){return rn(t,e,"monthsShort")},h.weekdaysMin=function(t,e,n){return on(t,e,n,"weekdaysMin")},h.defineLocale=ue,h.updateLocale=function(t,e){var n,i;return null!=e?(n=ie,(e=new T(e=P(n=null!=(i=se(t))?i._config:n,e))).parentLocale=ae[t],ae[t]=e,le(t)):null!=ae[t]&&(null!=ae[t].parentLocale?ae[t]=ae[t].parentLocale:null!=ae[t]&&delete ae[t]),ae[t]},h.locales=function(){return O(ae)},h.weekdaysShort=function(t,e,n){return on(t,e,n,"weekdaysShort")},h.normalizeUnits=F,h.relativeTimeRounding=function(t){return void 0===t?gn:"function"==typeof t&&(gn=t,!0)},h.relativeTimeThreshold=function(t,e){return void 0!==mn[t]&&(void 0===e?mn[t]:(mn[t]=e,"s"===t&&(mn.ss=e-1),!0))},h.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},h.prototype=Z,h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},h},"object"==typeof t&&void 0!==_n?_n.exports=n():e.moment=n()},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.layouts=t(30),i.platform=t(48),i.plugins=t(31),i.Ticks=t(34),t(22)(i),t(23)(i),t(24)(i),t(33)(i),t(32)(i),t(35)(i),t(55)(i),t(53)(i),t(54)(i),t(56)(i),t(57)(i),t(58)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var a,r=t(49);for(a in r)r.hasOwnProperty(a)&&i.plugins.register(r[a]);i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.Legend=r.legend._element,i.Title=r.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(n){n.Bar=function(t,e){return e.type="bar",new n(t,e)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(n){n.Bubble=function(t,e){return e.type="bubble",new n(t,e)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(n){n.Doughnut=function(t,e){return e.type="doughnut",new n(t,e)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(n){n.Line=function(t,e){return e.type="line",new n(t,e)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(n){n.PolarArea=function(t,e){return e.type="polarArea",new n(t,e)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(n){n.Radar=function(t,e){return e.type="radar",new n(t,e)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(n){n.Scatter=function(t,e){return e.type="scatter",new n(t,e)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),a=t(40),h=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return 0<t.length&&(t[0].yLabel?n=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getMeta(),o=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(r.xAxisID),t._yScale=i.getScaleForId(r.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:o.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||h.valueAtIndexOrDefault(o.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||h.valueAtIndexOrDefault(o.borderColor,e,l.borderColor),borderWidth:s.borderWidth||h.valueAtIndexOrDefault(o.borderWidth,e,l.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,a=t._model,r=i.getValueScale(),o=r.getBasePixel(),s=r.isHorizontal(),t=i._ruler||i.getRuler(),r=i.calculateBarValuePixels(i.index,e),t=i.calculateBarIndexPixels(i.index,e,t);a.horizontal=s,a.base=n?o:r.base,a.x=s?n?o:r.head:t.center,a.y=s?t.center:n?o:r.head,a.height=s?t.size:void 0,a.width=s?void 0:t.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){for(var e,n=this.chart,i=this.getIndexScale().options.stacked,a=void 0===t?n.data.datasets.length:t+1,r=[],o=0;o<a;++o)(e=n.getDatasetMeta(o)).bar&&n.isDatasetVisible(o)&&(!1===i||!0===i&&-1===r.indexOf(e.stack)||void 0===i&&(void 0===e.stack||-1===r.indexOf(e.stack)))&&r.push(e.stack);return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=void 0!==e?t.indexOf(e):-1;return-1===e?t.length-1:e},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),n=this.index,i=t.isHorizontal(),a=i?t.left:t.top,i=a+(i?t.width:t.height),r=[],o=0,s=this.getMeta().data.length;o<s;++o)r.push(t.getPixelForValue(null,o,n));return{min:h.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,r=t.getTicks(),o=1,s=e.length;o<s;++o)a=Math.min(a,e[o]-e[o-1]);for(o=0,s=r.length;o<s;++o)i=t.getPixelForTick(o),a=0<o?Math.min(a,i-n):a,n=i;return a}(t,r):-1,pixels:r,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,r=this.chart,o=this.getMeta(),s=this.getValueScale(),l=r.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=o.stack,c=0;if(d||void 0===d&&void 0!==h)for(n=0;n<t;++n)(i=r.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&r.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),(u<0&&i<0||0<=u&&0<i)&&(c+=i));return a=s.getPixelForValue(c),{size:d=((o=s.getPixelForValue(c+u))-a)/2,base:a,head:o,center:o+d/2}},calculateBarIndexPixels:function(t,e,n){var i,a,r,o,s,l,u=n.scale.options,d="flex"===u.barThickness?(i=e,r=u,o=(l=(a=n).pixels)[i],s=0<i?l[i-1]:null,l=i<l.length-1?l[i+1]:null,i=r.categoryPercentage,null===s&&(s=o-(null===l?a.end-o:l-o)),{chunk:((l=null===l?o+o-s:l)-s)/2*i/a.stackCount,ratio:r.barPercentage,start:o-(o-s)/2*i}):(o=e,s=n,e=(i=u).barThickness,n=s.stackCount,o=s.pixels[o],e=h.isNullOrUndef(e)?(d=s.min*i.categoryPercentage,i.barPercentage):(d=e*n,1),{chunk:d/n,ratio:e,start:o-d/2}),t=this.getStackIndex(t,this.getMeta().stack),t=d.start+d.chunk*t+d.chunk/2,d=Math.min(h.valueOrDefault(u.maxBarThickness,1/0),d.chunk*d.ratio);return{base:t-d/2,head:t+d/2,center:t,size:d}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,r=0;for(h.canvas.clipArea(t.ctx,t.chartArea);r<a;++r)isNaN(e.getRightValue(i.data[r]))||n[r].draw();h.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.backgroundColor=i.hoverBackgroundColor||h.valueAtIndexOrDefault(e.hoverBackgroundColor,n,h.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||h.valueAtIndexOrDefault(e.hoverBorderColor,n,h.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||h.valueAtIndexOrDefault(e.hoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model,t=this.chart.options.elements.rectangle;a.backgroundColor=i.backgroundColor||h.valueAtIndexOrDefault(e.backgroundColor,n,t.backgroundColor),a.borderColor=i.borderColor||h.valueAtIndexOrDefault(e.borderColor,n,t.borderColor),a.borderWidth=i.borderWidth||h.valueAtIndexOrDefault(e.borderWidth,n,t.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:a.Point,update:function(n){var i=this,t=i.getMeta().data;f.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=t.custom||{},o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),l=i._resolveElementOptions(t,e),u=i.getDataset().data[e],a=i.index,i=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,a),u=n?s.getBasePixel():s.getPixelForValue(u,e,a);t._xScale=o,t._yScale=s,t._options=l,t._datasetIndex=a,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:r.skip||isNaN(i)||isNaN(u),x:i,y:u},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],r=t.custom||{},o=i.options.elements.point,s=f.options.resolve,t=a.data[e],l={},u={chart:i,dataIndex:e,dataset:a,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([r[n],a[n],o[n]],u,e);return l.radius=s([r.radius,t?t.r:void 0,a.radius,o.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var t=t.data,n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],r=a&&a.custom||{},o=y.valueAtIndexOrDefault,a=s.options.elements.arc;return{text:t,fillStyle:r.backgroundColor||o(i.backgroundColor,e,a.backgroundColor),strokeStyle:r.borderColor||o(i.borderColor,e,a.borderColor),lineWidth:r.borderWidth||o(i.borderWidth,e,a.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i]&&(n.data[i].hidden=!n.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],t=": "+e.datasets[t.datasetIndex].data[t.index];return y.isArray(n)?(n=n.slice())[0]+=t:n+=t,n}}}}),i._set("pie",y.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(n){var t,e,i,a,r,o=this,s=o.chart,l=s.chartArea,u=s.options,d=u.elements.arc,h=l.right-l.left-d.borderWidth,c=l.bottom-l.top-d.borderWidth,f=Math.min(h,c),g={x:0,y:0},m=o.getMeta(),p=u.cutoutPercentage,v=u.circumference;v<2*Math.PI&&(i=u.rotation%(2*Math.PI),r=(i+=2*Math.PI*(i>=Math.PI?-1:i<-Math.PI?1:0))+v,t=Math.cos(i),e=Math.sin(i),a=Math.cos(r),l=Math.sin(r),d=i<=0&&0<=r||i<=2*Math.PI&&2*Math.PI<=r,u=i<=.5*Math.PI&&.5*Math.PI<=r||i<=2.5*Math.PI&&2.5*Math.PI<=r,v=i<=-Math.PI&&-Math.PI<=r||i<=Math.PI&&Math.PI<=r,i=i<=.5*-Math.PI&&.5*-Math.PI<=r||i<=1.5*Math.PI&&1.5*Math.PI<=r,r=p/100,v=v?-1:Math.min(t*(t<0?1:r),a*(a<0?1:r)),i=i?-1:Math.min(e*(e<0?1:r),l*(l<0?1:r)),a=d?1:Math.max(t*(0<t?1:r),a*(0<a?1:r)),r=u?1:Math.max(e*(0<e?1:r),l*(0<l?1:r)),f=Math.min(h/(.5*(a-v)),c/(.5*(r-i))),g={x:-.5*(a+v),y:-.5*(r+i)}),s.borderWidth=o.getMaxBorderWidth(m.data),s.outerRadius=Math.max((f-s.borderWidth)/2,0),s.innerRadius=Math.max(p?s.outerRadius/100*p:0,0),s.radiusLength=(s.outerRadius-s.innerRadius)/s.getVisibleDatasetCount(),s.offsetX=g.x*s.outerRadius,s.offsetY=g.y*s.outerRadius,m.total=o.calculateTotal(),o.outerRadius=s.outerRadius-s.radiusLength*o.getRingIndex(o.index),o.innerRadius=Math.max(o.outerRadius-s.radiusLength,0),y.each(m.data,function(t,e){o.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d=o.rotation,h=o.rotation,c=i.getDataset(),f=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(c.data[e])*(o.circumference/(2*Math.PI)),g=n&&s.animateScale?0:i.innerRadius,m=n&&s.animateScale?0:i.outerRadius,r=y.valueAtIndexOrDefault;y.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:u+a.offsetY,startAngle:d,endAngle:h,circumference:f,outerRadius:m,innerRadius:g,label:r(c.label,e,a.data.labels[e])}});a=t._model;this.removeHoverStyle(t),n&&s.animateRotate||(a.startAngle=0===e?o.rotation:i.getMeta().data[e-1]._model.endAngle,a.endAngle=a.startAngle+a.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return y.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n=0,i=this.index,a=t.length,r=0;r<a;r++)n=(n=n<(e=t[r]._model?t[r]._model.borderWidth:0)?e:n)<(e=t[r]._chart?t[r]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function c(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.options,l=s.elements.line,u=i.getScaleForId(a.yAxisID),d=i.getDataset(),h=c(d,s);for(h&&(a=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=u,r._datasetIndex=i.index,r._children=o,r._model={spanGaps:d.spanGaps||s.spanGaps,tension:a.tension||f.valueOrDefault(d.lineTension,l.tension),backgroundColor:a.backgroundColor||d.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth||d.borderWidth||l.borderWidth,borderColor:a.borderColor||d.borderColor||l.borderColor,borderCapStyle:a.borderCapStyle||d.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash||d.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset||d.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle||d.borderJoinStyle||l.borderJoinStyle,fill:a.fill||(void 0!==d.fill?d:l).fill,steppedLine:a.steppedLine||f.valueOrDefault(d.steppedLine,l.stepped),cubicInterpolationMode:a.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,l.cubicInterpolationMode)},r.pivot()),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(h&&0!==r._model.tension&&i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),t=t.custom||{};return t.backgroundColor?n=t.backgroundColor:i.pointBackgroundColor?n=f.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),t=t.custom||{};return t.borderColor?n=t.borderColor:i.pointBorderColor?n=f.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(i.pointBorderWidth)||f.isArray(i.pointBorderWidth)?n=f.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=t.borderWidth,n},updateElement:function(t,e,n){var i,a=this,r=a.getMeta(),o=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(r.yAxisID),h=a.getScaleForId(r.xAxisID),c=a.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),i=h.getPixelForValue("object"==typeof u?u:NaN,e,l),u=n?d.getBasePixel():a.calculatePointY(u,e,l),t._xScale=h,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:i,y:u,skip:o.skip||isNaN(i)||isNaN(u),radius:o.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:o.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:r.dataset._model?r.dataset._model.tension:0,steppedLine:!!r.dataset._model&&r.dataset._model.steppedLine,hitRadius:o.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,r=this.getMeta(),o=this.getScaleForId(r.yAxisID),s=0,l=0;if(o.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===o.id&&a.isDatasetVisible(i)&&((d=Number(o.getRightValue(d.data[e])))<0?l+=d||0:s+=d||0)}r=Number(o.getRightValue(t));return r<0?o.getPixelForValue(l+r):o.getPixelForValue(s+r)}return o.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),r=this.chart.chartArea,o=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(o=o.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(o);else for(t=0,e=o.length;t<e;++t)n=o[t]._model,i=f.splineCurve(f.previousItem(o,t)._model,n,f.nextItem(o,t)._model,a.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=o.length;t<e;++t)(n=o[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,r.left,r.right),n.controlPointPreviousY=s(n.controlPointPreviousY,r.top,r.bottom),n.controlPointNextX=s(n.controlPointNextX,r.left,r.right),n.controlPointNextY=s(n.controlPointNextY,r.top,r.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),n=e.data||[],i=t.chartArea,a=n.length,r=0;for(f.canvas.clipArea(t.ctx,i),c(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);r<a;++r)n[r].draw(i)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},r=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),r.radius=a.radius||f.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),r.backgroundColor=e.getPointBackgroundColor(t,i),r.borderColor=e.getPointBorderColor(t,i),r.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var t=t.data,n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},r=y.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i].hidden=!n.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,update:function(n){var i=this,t=i.chart,e=t.chartArea,a=i.getMeta(),r=t.options,o=r.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-o.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),i.outerRadius=t.outerRadius-t.radiusLength*i.index,i.innerRadius=i.outerRadius-t.radiusLength,a.count=i.countVisibleElements(),y.each(a.data,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){for(var i=this,a=i.chart,r=i.getDataset(),o=a.options,s=o.animation,l=a.scale,u=a.data.labels,d=i.calculateCircumference(r.data[e]),h=l.xCenter,c=l.yCenter,f=0,g=i.getMeta(),m=0;m<e;++m)isNaN(r.data[m])||g.data[m].hidden||++f;var p=o.startAngle,v=t.hidden?0:l.getDistanceFromCenterForValue(r.data[e]),a=p+d*f,o=a+(t.hidden?0:d),d=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[e]);y.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:h,y:c,innerRadius:0,outerRadius:n?d:v,startAngle:n&&s.animateRotate?p:a,endAngle:n&&s.animateRotate?p:o,label:y.valueAtIndexOrDefault(u,e,u[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return y.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),u=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:u.noop,update:function(n){var i=this,t=i.getMeta(),e=t.dataset,a=t.data,r=e.custom||{},o=i.getDataset(),s=i.chart.options.elements.line,e=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:e,_children:a,_loop:!0,_model:{tension:r.tension||u.valueOrDefault(o.lineTension,s.tension),backgroundColor:r.backgroundColor||o.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth||o.borderWidth||s.borderWidth,borderColor:r.borderColor||o.borderColor||s.borderColor,fill:r.fill||(void 0!==o.fill?o:s).fill,borderCapStyle:r.borderCapStyle||o.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash||o.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset||o.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle||o.borderJoinStyle||s.borderJoinStyle}}),t.dataset.pivot(),u.each(a,function(t,e){i.updateElement(t,e,n)},i),i.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},r=i.getDataset(),o=i.chart.scale,s=i.chart.options.elements.point,l=o.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:o,_model:{x:n?o.xCenter:l.x,y:n?o.yCenter:l.y,tension:a.tension||u.valueOrDefault(r.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(r.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(r.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(r.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(r.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(r.pointStyle,e,s.pointStyle),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(r.pointHitRadius,e,s.hitRadius)}}),t._model.skip=a.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var i=this.chart.chartArea,a=this.getMeta();u.each(a.data,function(t,e){var n=t._model,e=u.splineCurve(u.previousItem(a.data,e,!0)._model,n,u.nextItem(a.data,e,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(e.previous.x,i.right),i.left),n.controlPointPreviousY=Math.max(Math.min(e.previous.y,i.bottom),i.top),n.controlPointNextX=Math.max(Math.min(e.next.x,i.right),i.left),n.controlPointNextY=Math.max(Math.min(e.next.y,i.bottom),i.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model;t.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model,t=this.chart.options.elements.point;a.radius=n.radius||u.valueAtIndexOrDefault(e.pointRadius,i,t.radius),a.backgroundColor=n.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,i,t.backgroundColor),a.borderColor=n.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,i,t.borderColor),a.borderWidth=n.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,i,t.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t)return void(o[a]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;1<t.dropFrames&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);n=Date.now();t.dropFrames+=(n-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a<i.length;)n=(e=i[a]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[n,e],n),r.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),h=t(45),i=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(u){function d(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},h.extend(u.prototype,{construct:function(t,e){var n=this;(a=(r=(r=e)||{}).data=r.data||{}).datasets=a.datasets||[],a.labels=a.labels||[],r.options=h.configMerge(o.global,o[r.type],r.options||{});var i=s.acquireContext(t,e=r),a=i&&i.canvas,t=a&&a.height,r=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=r,n.height=t,n.aspectRatio=t?r/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,u.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?r/a:h.getMaximumHeight(i)));e.width===r&&e.height===a||(i.width=e.width=r,i.height=e.height=a,i.style.width=r+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t||(l.notify(e,"resize",[a={width:r,height:a}]),e.options.onResize&&e.options.onResize(e,a),e.stop(),e.update(e.options.responsiveAnimationDuration)))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype);d(e.position)!==d(t.dposition)&&(e.position=t.dposition),l[n]=!0;var a=null;if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=o.ctx,a.chart=o;else{var r=u.scaleService.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(o.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),o.scales=s,u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],r=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=u.controllers[n.type];if(void 0===t)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),r.push(n.controller)}},i),r},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(u.defaults.global,u.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),l._invalidate(i),!1!==l.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e=this,n=(t=!t||"object"!=typeof t?{duration:t,lazy:arguments[1]}:t).duration,i=t.lazy;if(!1!==l.notify(e,"beforeRender")){var a=e.options.animation,r=function(t){l.notify(e,"afterRender"),h.callback(a&&a.onComplete,[t],e)};return a&&(void 0!==n&&0!==n||void 0===n&&0!==a.duration)?(t=new u.Animation({numSteps:(n||a.duration)/16.66,easing:t.easing||a.easing,render:function(t,e){var n=h.easing.effects[e.easing],i=e.currentStep,e=i/e.numSteps;t.draw(n(e),e,i)},onAnimationProgress:a.onProgress,onAnimationComplete:r}),u.animationService.addAnimation(e,t,n,i)):(e.draw(),r(new u.Animation({numSteps:0,chart:e}))),e}},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),l.notify(this,"afterTooltipDraw",[t]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){e=i.modes[e];return"function"==typeof e?e(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],t=n._meta&&n._meta[e];t&&(t.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),h.canvas.clear(n),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete u.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new u.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){s.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},s.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,h.each(t,function(t,e){s.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",r=0,o=t.length;r<o;++r)(i=t[r])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==l.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),l.notify(e,"afterEvent",[t]);t=e._bufferedRequest;return t?e.render(t):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},a=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,a.mode,a),h.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),e=!h.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),u.Controller=u}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function r(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(i.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],n=t.data,i=0,a=e.length;i<a;++i)n[i]=n[i]||this.createMetaData(i);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var a,t=this,e=t.getDataset(),n=e.data||(e.data=[]);t._data!==n&&(t._data&&r(t._data,t),e=t,(a=n)._chartjs?a._chartjs.listeners.push(e):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),i.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return o.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),t._data=n),t.resyncElements()},update:o.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},r=o.valueAtIndexOrDefault,t=t._model;t.backgroundColor=a.backgroundColor||r(n.backgroundColor,i,e.backgroundColor),t.borderColor=a.borderColor||r(n.borderColor,i,e.borderColor),t.borderWidth=a.borderWidth||r(n.borderWidth,i,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=o.valueAtIndexOrDefault,r=o.getHoverColor,t=t._model;t.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,r(t.backgroundColor)),t.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,r(t.borderColor)),t.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,t.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,e=e.length;e<n?t.data.splice(e,n-e):n<e&&this.insertElements(n,e-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=o.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var f=t(2),i=t(45);t=function(t){i.extend(this,t),this.initialize.apply(this,arguments)};i.extend(t.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;return n&&1!==t?(a=a||(e._view={}),function(t,e,n,i){for(var a,r,o,s,l,u,d=Object.keys(n),h=0,c=d.length;h<c;++h)if(o=n[a=d[h]],e.hasOwnProperty(a)||(e[a]=o),(l=e[a])!==o&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=l),(s=typeof o)==typeof(r=t[a]))if("string"==s){if((l=f(r)).valid&&(u=f(o)).valid){e[a]=u.mix(l,i).rgbString();continue}}else if("number"==s&&isFinite(r)&&isFinite(o)){e[a]=r+(o-r)*i;continue}e[a]=o}}(i=i||(e._start={}),a,n,t)):(e._view=n,e._start=null),e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),t.extend=i.inherits,e.exports=t},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),a=t(25),c=t(45);e.exports=function(l){function u(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function d(t){return null!=t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=t.parentNode,r=i.getComputedStyle(t)[e],o=i.getComputedStyle(a)[e],s=d(r),i=d(o),e=Number.POSITIVE_INFINITY;return s||i?Math.min(s?u(r,t,n):e,i?u(o,a,n):e):"none"}c.configMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){var a=e[t]||{},r=n[t];"scales"===t?e[t]=c.scaleMerge(a,r):"scale"===t?e[t]=c.merge(a,[l.scaleService.getScaleDefaults(r.type),r]):c._merger(t,e,n,i)}})},c.scaleMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)o=n[t][a],r=c.valueOrDefault(o.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?c.merge(e[t][a],[l.scaleService.getScaleDefaults(r),o]):c.merge(e[t][a],o)}else c._merger(t,e,n,i)}})},c.where=function(t,e){if(c.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return c.each(t,function(t){e(t)&&n.push(t)}),n},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},c.findNextWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?-1:n)+1;i<t.length;i++){var a=t[i];if(e(a))return a}},c.findPreviousWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?t.length:n)-1;0<=i;i--){var a=t[i];if(e(a))return a}},c.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},c.almostEquals=function(t,e,n){return Math.abs(t-e)<n},c.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},c.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},c.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},c.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},c.toRadians=function(t){return t*(Math.PI/180)},c.toDegrees=function(t){return t*(180/Math.PI)},c.getAngleFromPoint=function(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e),n=Math.atan2(e,n);return n<-.5*Math.PI&&(n+=2*Math.PI),{angle:n,distance:t}},c.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.aliasPixel=function(t){return t%2==0?0:.5},c.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,t=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),e=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),n=t/(t+e),e=e/(t+e),n=i*(n=isNaN(n)?0:n),e=i*(e=isNaN(e)?0:e);return{previous:{x:r.x-n*(o.x-a.x),y:r.y-n*(o.y-a.y)},next:{x:r.x+e*(o.x-a.x),y:r.y+e*(o.y-a.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,r,o,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,(i=h<d-1?u[h+1]:null)&&!i.model.skip&&(e=i.model.x-a.model.x,a.deltaK=0!=e?(i.model.y-a.model.y)/e:0),!n||n.model.skip?a.mK=a.deltaK:!i||i.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(h=0;h<d-1;++h)a=u[h],i=u[h+1],a.model.skip||i.model.skip||(c.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=i.mK=0:(r=a.mK/a.deltaK,o=i.mK/a.deltaK,(s=Math.pow(r,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(s),a.mK=r*s*a.deltaK,i.mK=o*s*a.deltaK)));for(h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,i=h<d-1?u[h+1]:null,n&&!n.model.skip&&(l=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-l,a.model.controlPointPreviousY=a.model.y-l*a.mK),i&&!i.model.skip&&(l=(i.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+l,a.model.controlPointNextY=a.model.y+l*a.mK))},c.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),t=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return t*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,i=t.currentTarget||t.srcElement,a=i.getBoundingClientRect(),r=n.touches,o=r&&0<r.length?(l=r[0].clientX,r[0].clientY):(l=n.clientX,n.clientY),s=parseFloat(c.getStyle(i,"padding-left")),t=parseFloat(c.getStyle(i,"padding-top")),r=parseFloat(c.getStyle(i,"padding-right")),n=parseFloat(c.getStyle(i,"padding-bottom")),r=a.right-a.left-s-r,n=a.bottom-a.top-t-n,l=Math.round((l-a.left-s)/r*i.width/e.currentDevicePixelRatio);return{x:l,y:o=Math.round((o-a.top-t)/n*i.height/e.currentDevicePixelRatio)}},c.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},c.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},c.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(c.getStyle(e,"padding-left"),10),i=parseInt(c.getStyle(e,"padding-right"),10),i=e.clientWidth-n-i,t=c.getConstraintWidth(t);return isNaN(t)?i:Math.min(i,t)},c.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(c.getStyle(e,"padding-top"),10),i=parseInt(c.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-i,t=c.getConstraintHeight(t);return isNaN(t)?i:Math.min(i,t)},c.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},c.retinaScale=function(t,e){var n,i,a=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;1!==a&&(n=t.canvas,i=t.height,e=t.width,n.height=i*a,n.width=e*a,t.ctx.scale(a,a),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=e+"px"))},c.fontString=function(t,e,n){return e+" "+t+"px "+n},c.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(a=i.data={},r=i.garbageCollect=[],i.font=t),e.font=t;var o=0;c.each(n,function(t){null!=t&&!0!==c.isArray(t)?o=c.measureText(e,a,r,o,t):c.isArray(t)&&c.each(t,function(t){null==t||c.isArray(t)||(o=c.measureText(e,a,r,o,t))})});var s=r.length/2;if(s>n.length){for(var l=0;l<s;l++)delete a[r[l]];r.splice(0,s)}return o},c.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),i=i<r?r:i},c.numberOfLabelLines=function(t){var e=1;return c.each(t,function(t){c.isArray(t)&&t.length>e&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function o(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,r=0,o=t.data.datasets.length;r<o;++r)if(t.isDatasetVisible(r))for(i=0,a=(n=t.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function l(t,e){var n=[];return s(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function u(t,n,i,a){var r=Number.POSITIVE_INFINITY,o=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<r?(o=[t],r=e):e===r&&o.push(t))}),o}function d(t){var i=-1!==t.indexOf("x"),a=-1!==t.indexOf("y");return function(t,e){var n=i?Math.abs(t.x-e.x):0,e=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(e,2))}}function a(n,t,e){var i=o(t,n);e.axis=e.axis||"x";var t=d(e.axis),a=e.intersect?l(n,i):u(n,i,!1,t),r=[];return a.length?(n.data.datasets.forEach(function(t,e){!n.isDatasetVisible(e)||(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&r.push(e)}),r):[]}e.exports={modes:{single:function(t,e){var n=o(e,t),i=[];return s(t,function(t){return t.inRange(n.x,n.y)&&(i.push(t),i)}),i.slice(0,1)},label:a,index:a,dataset:function(t,e,n){var i=o(e,t);n.axis=n.axis||"xy";e=d(n.axis),e=n.intersect?l(t,i):u(t,i,!1,e);return e=0<e.length?t.getDatasetMeta(e[0]._datasetIndex).data:e},"x-axis":function(t,e){return a(t,e,{intersect:!1})},point:function(t,e){return l(t,o(e,t))},nearest:function(t,e,n){var i=o(e,t);n.axis=n.axis||"xy";e=d(n.axis),e=u(t,i,n.intersect,e);return 1<e.length&&e.sort(function(t,e){var n=t.getArea()-e.getArea();return n=0===n?t._datasetIndex-e._datasetIndex:n}),e.slice(0,1)},x:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a},y:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,n){"use strict";var R=t(45);function L(t,e){return R.where(t,function(t){return t.position===e})}function Y(t,i){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=i?e:t,e=i?t:e;return n.weight===e.weight?n._tmpIndex_-e._tmpIndex_:n.weight-e.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)n.hasOwnProperty(i=a[o])&&(e[i]=n[i])},update:function(e,n,t){var i,a,r,o,s,l,u,d,h,c,f,g,m,p,v,y,b,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,y),right:Math.max(w,b),top:0,bottom:0},e.update(e.fullWidth?h:m,c/2,t)):e.update(n.minSize.width,p))}function F(t){t.isHorizontal()?(t.left=t.fullWidth?i:k,t.right=t.fullWidth?n-a:k+m,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=O,t.right=O+t.width,t.top=M,t.bottom=M+p,O=t.right)}e&&(d=e.options.layout||{},D=R.options.toPadding(d.padding),i=D.left,a=D.right,r=D.top,C=D.bottom,o=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),Y(o,!0),Y(s,!1),Y(l,!0),Y(u,!1),f=(n-(h=n-i-a)/2)/(o.length+s.length),g=(t-(c=t-r-C)/2)/(l.length+u.length),m=h,p=c,v=[],R.each(o.concat(s,l,u),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?h:m,g),p-=e.height):(e=t.update(f,p),m-=e.width),v.push({horizontal:n,minSize:e,box:t})}),_=x=b=y=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),y=Math.max(y,t.left),b=Math.max(b,t.right))}),R.each(o.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=r,S=C,R.each(o.concat(s),A),R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l.concat(u),A),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),R.each(o.concat(s),function(e){var t=R.findNextWhere(v,function(t){return t.box===e});t&&e.update(t.minSize.width,p,{left:0,right:0,top:M,bottom:S})}),k=i,w=a,M=r,S=C,R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),D=Math.max(y-k,0),k+=D,w+=Math.max(b-w,0),C=Math.max(x-M,0),M+=C,S+=Math.max(_-S,0),P=t-M-S,(T=n-k-w)===m&&P===p||(R.each(o,function(t){t.height=P}),R.each(s,function(t){t.height=P}),R.each(l,function(t){t.fullWidth||(t.width=T)}),R.each(u,function(t){t.fullWidth||(t.width=T)}),p=P,m=T),O=i+D,I=r+C,R.each(o.concat(l),F),O+=m,I+=p,R.each(s,F),R.each(u,F),e.chartArea={left:k,top:M,right:k+m,bottom:M+p},R.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,p)}))}}},{45:45}],31:[function(t,e,n){"use strict";var o=t(25),s=t(45);o._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){for(var i,a,r,o,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if("function"==typeof(o=(a=(i=s[u]).plugin)[e])&&((r=[t].concat(n||[])).push(i.options),!1===o.apply(a,r)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],t=t&&t.config||{},r=t.options&&t.options.plugins||{};return this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=r[e])&&(!0===n&&(n=s.clone(o.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}})))}),e.descriptors=a,e.id=this._cacheId,a},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var p=t(25),i=t(26),N=t(45),t=t(34);function f(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].label);return e}function z(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}p._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=function(t){function c(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function g(t){var e=N.valueOrDefault,n=p.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),n=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:n,font:N.fontString(i,a,n)}}function m(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,p.global.defaultFontSize))}t.Scale=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,o,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=N.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),r=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=r).length;i<a;++i)o=r[i],(l=s[i])?l.label=o:s.push(l={label:o,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){N.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){N.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=f(t._ticks),a=g(n);e.font=a.font;var r=n.minRotation||0;if(i.length&&t.options.display&&t.isHorizontal())for(var o=N.longestText(e,a.font,i,t.longestTextCache),s=o,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&r<n.maxRotation;){var u=N.toRadians(r),d=Math.cos(u);if(Math.sin(u)*o>t.maxHeight){r--;break}r++,s=d*o}t.labelRotation=r},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=f(e._ticks),a=e.options,r=a.ticks,o=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=g(r),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,o.display&&l&&(t=m(o)+N.options.toPadding(o.padding).height,u?n.height+=t:n.width+=t),r.display&&l&&(s=N.longestText(e.ctx,d.font,i,e.longestTextCache),h=N.numberOfLabelLines(i),o=.5*d.size,t=e.options.ticks.padding,u?(e.longestLabelWidth=s,l=N.toRadians(e.labelRotation),u=Math.cos(l),h=Math.sin(l)*s+d.size*h+o*(h-1)+o,n.height=Math.min(e.maxHeight,n.height+h+t),e.ctx.font=d.font,h=c(e.ctx,i[0],d.font),i=c(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?u*h+3:u*o+3,e.paddingRight="bottom"===a.position?u*o+3:u*i+3):(e.paddingLeft=h/2+3,e.paddingRight=i/2+3)):(r.mirror?s=0:s+=t+o,n.width=Math.min(e.maxWidth,n.width+s),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=i*t+e.paddingLeft;n&&(a+=i/2);a=e.left+Math.round(a);return a+=e.isFullWidth()?e.margins.left:0}a=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(a/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+Math.round(n);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.isHorizontal(),s=r.options.ticks.minor,l=t.length,u=N.toRadians(r.labelRotation),u=Math.cos(u),u=r.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),o&&(e=!1,(u+s.autoSkipPadding)*l>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),a&&a<l&&(e=Math.max(e,Math.floor(l/a)))),n=0;n<l;n++)i=t[n],(1<e&&0<n%e||n%e==0&&l<=n+e)&&n!==l-1&&delete i.label,d.push(i);return d},draw:function(_){var o,k,w,M,S,D,C,s,l,u,d,P,t,T,O,I,A,F,R,L,e,n,i,a,r,h,c,f,Y=this,W=Y.options;W.display&&(o=Y.ctx,k=p.global,w=W.ticks.minor,n=W.ticks.major||w,M=W.gridLines,f=W.scaleLabel,S=0!==Y.labelRotation,D=Y.isHorizontal(),C=w.autoSkip?Y._autoSkip(Y.getTicks()):Y.getTicks(),s=N.valueOrDefault(w.fontColor,k.defaultFontColor),l=g(w),u=N.valueOrDefault(n.fontColor,k.defaultFontColor),d=g(n),P=M.drawTicks?M.tickMarkLength:0,h=N.valueOrDefault(f.fontColor,k.defaultFontColor),c=g(f),t=N.options.toPadding(f.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.right:Y.right-I-P,F="right"===W.position?Y.right+P:Y.right,R="bottom"===W.position?Y.top+I:Y.bottom-P-I,L="bottom"===W.position?Y.top+I+P:Y.bottom+I,N.each(C,function(t,e){var n,i,a,r,o,s,l,u,d,h,c,f,g,m,p,v,y,b,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,r=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),r=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",x=w.padding,D?(p=P+x,v="bottom"===W.position?(m=S?"middle":"top",g=S?"right":"center",Y.top+p):(m=S?"middle":"bottom",g=S?"left":"center",Y.bottom-p),(y=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),y+=N.aliasPixel(i),b=Y.getPixelForTick(e)+w.labelOffset,o=l=d=c=y,s=R,u=L,h=_.top,p=_.bottom+I):(y="left"===W.position,x=w.mirror?(g=y?"left":"right",x):(g=y?"right":"left",P+x),b=y?Y.right-x:Y.left+x,(x=z(Y,e,M.offsetGridLines&&1<C.length))<Y.top&&(a="rgba(0,0,0,0)"),x+=N.aliasPixel(i),v=Y.getPixelForTick(e)+w.labelOffset,o=A,l=F,d=_.left,c=_.right+I,s=u=h=p=x),O.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:c,y2:p,labelX:b,labelY:v,glWidth:i,glColor:a,glBorderDash:r,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),M.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),w.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=(t.major?d:l).font,o.fillStyle=t.major?u:s,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var n=e.length,i=1.5*l.size,a=Y.isHorizontal()?0:-i*(n-1)/2,r=0;r<n;++r)o.fillText(""+e[r],0,a),a+=i;else o.fillText(e,0,0);o.restore()}}),f.display&&(r=0,e=m(f)/2,D?(i=Y.left+(Y.right-Y.left)/2,a="bottom"===W.position?Y.bottom-e-t.bottom:Y.top+e+t.top):(i=(n="left"===W.position)?Y.left+e+t.top:Y.right-e-t.top,a=Y.top+(Y.bottom-Y.top)/2,r=n?-.5*Math.PI:.5*Math.PI),o.save(),o.translate(i,a),o.rotate(r),o.textAlign="center",o.textBaseline="middle",o.fillStyle=h,o.font=c.font,o.fillText(f.labelString,0,0),o.restore()),M.drawBorder&&(o.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),o.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,r=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(o.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=r="left"===W.position?Y.right:Y.left,a+=f,r+=f),o.beginPath(),o.moveTo(a,h),o.lineTo(r,c),o.stroke()))}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=a.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=a.extend(this.defaults[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,r.addBox(e,t)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var a=t(45);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){n=3<n.length?n[2]-n[1]:n[1]-n[0];1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t));n=a.log10(Math.abs(n));return 0!==t?(n=-1*Math.floor(n),n=Math.max(Math.min(n,20),0),t.toFixed(n)):"0"},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(a.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),A=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:A.noop,title:function(t,e){var n="",i=e.labels,e=i?i.length:0;return 0<t.length&&((t=t[0]).xLabel?n=t.xLabel:0<e&&t.index<e&&(n=i[t.index])),n},afterTitle:A.noop,beforeBody:A.noop,beforeLabel:A.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){t=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:t.borderColor,backgroundColor:t.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:A.noop,afterBody:A.noop,beforeFooter:A.noop,footer:A.noop,afterFooter:A.noop}}}),e.exports=function(T){function h(t,e){t=A.color(t);return t.alpha(e*t.alpha()).rgbaString()}function o(t,e){return e&&(A.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function O(t){var e=i.global,n=A.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function I(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,r=e.body,o=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,t=e.footerFontSize;i+=s*u,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=o*d,i+=o?(o-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*t,i+=l?(l-1)*e.footerSpacing:0;function h(t){a=Math.max(a,n.measureText(t).width+c)}var c=0;return n.font=A.fontString(u,e._titleFontStyle,e._titleFontFamily),A.each(e.title,h),n.font=A.fontString(d,e._bodyFontStyle,e._bodyFontFamily),A.each(e.beforeBody.concat(e.afterBody),h),c=e.displayColors?d+2:0,A.each(r,function(t){A.each(t.before,h),A.each(t.lines,h),A.each(t.after,h)}),c=0,n.font=A.fontString(t,e._footerFontStyle,e._footerFontFamily),A.each(e.footer,h),{width:a+=2*e.xPadding,height:i}}T.Tooltip=a.extend({initialize:function(){this._model=O(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),i=t.afterTitle.apply(this,arguments),t=o(t=[],e);return t=o(t,n),t=o(t,i)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return A.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,n){var i=this,a=i._options.callbacks,r=[];return A.each(t,function(t){var e={before:[],lines:[],after:[]};o(e.before,a.beforeLabel.call(i,t,n)),o(e.lines,a.label.call(i,t,n)),o(e.after,a.afterLabel.call(i,t,n)),r.push(e)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return A.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),t=o(t=[],e);return t=o(t,n),t=o(t,i)},update:function(t){var e,n,i,a,r,o,s,l,u,d,h,c,f,g=this,m=g._options,p=g._model,v=g._model=O(m),y=g._active,b=g._data,x={xAlign:p.xAlign,yAlign:p.yAlign},_={x:p.x,y:p.y},k={width:p.width,height:p.height},w={x:p.caretX,y:p.caretY};if(y.length){v.opacity=1;for(var M=[],S=[],w=T.Tooltip.positioners[m.position].call(g,y,g._eventPosition),D=[],C=0,P=y.length;C<P;++C)D.push((u=y[C],f=c=h=d=void 0,d=u._xScale,h=u._yScale||u._scale,c=u._index,f=u._datasetIndex,{xLabel:d?d.getLabelForIndex(c,f):"",yLabel:h?h.getLabelForIndex(c,f):"",index:c,datasetIndex:f,x:u._model.x,y:u._model.y}));m.filter&&(D=D.filter(function(t){return m.filter(t,b)})),m.itemSort&&(D=D.sort(function(t,e){return m.itemSort(t,e,b)})),A.each(D,function(t){M.push(m.callbacks.labelColor.call(g,t,g._chart)),S.push(m.callbacks.labelTextColor.call(g,t,g._chart))}),v.title=g.getTitle(D,b),v.beforeBody=g.getBeforeBody(D,b),v.body=g.getBody(D,b),v.afterBody=g.getAfterBody(D,b),v.footer=g.getFooter(D,b),v.x=Math.round(w.x),v.y=Math.round(w.y),v.caretPadding=m.caretPadding,v.labelColors=M,v.labelTextColors=S,v.dataPoints=D,x=function(t,e){var n,i=t._model,a=t._chart,r=t._chart.chartArea,o="center",s="center";i.y<e.height?s="top":i.y>a.height-e.height&&(s="bottom");var l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d="center"===s?(n=function(t){return t<=l},function(t){return l<t}):(n=function(t){return t<=e.width/2},function(t){return t>=a.width-e.width/2}),h=function(t){return t+e.width+i.caretSize+i.caretPadding>a.width},c=function(t){return t-e.width-i.caretSize-i.caretPadding<0},r=function(t){return t<=u?"top":"bottom"};return n(i.x)?(o="left",h(i.x)&&(o="center",s=r(i.y))):d(i.x)&&(o="right",c(i.x)&&(o="center",s=r(i.y))),{xAlign:(t=t._options).xAlign||o,yAlign:t.yAlign||s}}(this,k=I(this,v)),e=v,n=k,i=x,a=g._chart,r=e.x,o=e.y,s=e.caretSize,l=e.caretPadding,p=e.cornerRadius,e=i.xAlign,i=i.yAlign,s+=l,l=p+l,"right"===e?r-=n.width:"center"===e&&(r=(r-=n.width/2)+n.width>a.width?a.width-n.width:r)<0&&(r=0),"top"===i?o+=s:o-="bottom"===i?n.height+s:n.height/2,"center"===i?"left"===e?r+=s:"right"===e&&(r-=s):"left"===e?r-=l:"right"===e&&(r+=l),_={x:r,y:o}}else v.opacity=0;return v.xAlign=x.xAlign,v.yAlign=x.yAlign,v.x=_.x,v.y=_.y,v.width=k.width,v.height=k.height,v.caretX=w.x,v.caretY=w.y,g._model=v,t&&m.custom&&m.custom.call(g,v),g},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,i=this.getCaretPosition(t,e,i);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,g=t.y,t=e.width,e=e.height;return"center"===c?(r=g+e/2,o="left"===h?(i=(l=f)-u,s=l,a=r+u,r-u):(i=(l=f+t)+u,s=l,a=r-u,r+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+t-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(r=(a=g)-u,o=a):(r=(a=g+e)+u,o=a,u=s,s=l,l=u)),{x1:l,x2:i,x3:s,y1:a,y2:r,y3:o}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var r,o,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=A.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,o=a.length;r<o;++r)n.fillText(a[r],t.x,t.y),t.y+=s+l,r+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,r,o){var s=a.bodyFontSize,e=a.bodySpacing,t=a.body;r.textAlign=a._bodyAlign,r.textBaseline="top",r.font=A.fontString(s,a._bodyFontStyle,a._bodyFontFamily);function l(t){r.fillText(t,i.x+n,i.y),i.y+=s+e}var n=0;r.fillStyle=h(a.bodyFontColor,o),A.each(a.beforeBody,l);var u=a.displayColors,n=u?s+2:0;A.each(t,function(t,e){var n=h(a.labelTextColors[e],o);r.fillStyle=n,A.each(t.before,l),A.each(t.lines,function(t){u&&(r.fillStyle=h(a.legendColorBackground,o),r.fillRect(i.x,i.y,s,s),r.lineWidth=1,r.strokeStyle=h(a.labelColors[e].borderColor,o),r.strokeRect(i.x,i.y,s,s),r.fillStyle=h(a.labelColors[e].backgroundColor,o),r.fillRect(i.x+1,i.y+1,s-2,s-2),r.fillStyle=n),l(t)}),A.each(t.after,l)}),n=0,A.each(a.afterBody,l),i.y-=e},drawFooter:function(e,n,i,t){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=h(n.footerFontColor,t),i.font=A.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),A.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i,a){n.fillStyle=h(e.backgroundColor,a),n.strokeStyle=h(e.borderColor,a),n.lineWidth=e.borderWidth;var r=e.xAlign,o=e.yAlign,s=t.x,l=t.y,u=i.width,d=i.height,a=e.cornerRadius;n.beginPath(),n.moveTo(s+a,l),"top"===o&&this.drawCaret(t,i),n.lineTo(s+u-a,l),n.quadraticCurveTo(s+u,l,s+u,l+a),"center"===o&&"right"===r&&this.drawCaret(t,i),n.lineTo(s+u,l+d-a),n.quadraticCurveTo(s+u,l+d,s+u-a,l+d),"bottom"===o&&this.drawCaret(t,i),n.lineTo(s+a,l+d),n.quadraticCurveTo(s,l+d,s,l+d-a),"center"===o&&"left"===r&&this.drawCaret(t,i),n.lineTo(s,l+a),n.quadraticCurveTo(s,l,s+a,l),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,r=this._view;0!==r.opacity&&(t={width:r.width,height:r.height},e={x:r.x,y:r.y},n=Math.abs(r.opacity<.001)?0:r.opacity,i=r.title.length||r.beforeBody.length||r.body.length||r.afterBody.length||r.footer.length,this._options.enabled&&i&&(this.drawBackground(e,r,a,t,n),e.x+=r.xPadding,e.y+=r.yPadding,this.drawTitle(e,r,a,n),this.drawBody(e,r,a,n),this.drawFooter(e,r,a,n)))},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!A.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),T.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,r=t.length;a<r;++a){var o=t[a];o&&o.hasValue()&&(e+=(o=o.tooltipPosition()).x,n+=o.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,r=e.y,o=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=A.distanceBetweenPoints(e,u))<o&&(o=u,n=d))}return n&&(a=(i=n.tooltipPosition()).x,r=i.y),{x:a,y:r}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),a=t(26),o=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var e=o.getAngleFromPoint(n,{x:t,y:e}),i=e.angle,e=e.distance,a=n.startAngle,r=n.endAngle;r<a;)r+=2*Math.PI;for(;r<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;n=e>=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=r&&n}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),d=t(45),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,o=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=a.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||l.borderDash),r.lineDashOffset=a.borderDashOffset||l.borderDashOffset,r.lineJoin=a.borderJoinStyle||l.borderJoinStyle,r.lineWidth=a.borderWidth||l.borderWidth,r.strokeStyle=a.borderColor||h.defaultColor,r.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(r.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!o||-1===u?r.moveTo(i.x,i.y):d.canvas.lineTo(r,n._view,e._view),u=t));r.stroke(),r.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var d=t(25),i=t(26),h=t(45),c=d.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:c,borderColor:c,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:a,inXRange:a,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,a=e.pointStyle,r=e.radius,o=e.x,s=e.y,l=h.color,u=0;e.skip||(i.strokeStyle=e.borderColor||c,i.lineWidth=h.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||c,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?u=(o-n.x)/(t.left-n.x):1.01*t.right<n.x?u=(n.x-o)/(n.x-t.right):n.y<t.top?u=(s-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(u=(n.y-s)/(n.y-t.bottom)),u=Math.round(100*u)/100,i.strokeStyle=l(i.strokeStyle).alpha(u).rgbString(),i.fillStyle=l(i.fillStyle).alpha(u).rgbString()),h.canvas.drawPoint(i,a,r,o,s))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),t=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,a,r=t._view;return a=o(t)?(i=r.width/2,e=r.x-i,n=r.x+i,i=Math.min(r.y,r.base),Math.max(r.y,r.base)):(a=r.height/2,e=Math.min(r.x,r.base),n=Math.max(r.x,r.base),i=r.y-a,r.y+a),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,r,o,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,o=t<e?1:-1,r=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,o=1,r=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom");h&&(a=(h=(l=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?l:h)/2,s=n+("top"!==c?a*r:0),l=i+("bottom"!==c?-a*r:0),(r=t+("left"!==c?a*o:0))!==(o=e+("right"!==c?-a*o:0))&&(n=s,i=l),s!==l&&(t=r,e=o)),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=h;var f=[[t,i],[t,n],[e,n],[e,i]],g=["bottom","left","top","right"].indexOf(c,0);function m(t){return f[(g+t)%4]}-1===g&&(g=0);var p=m(0);u.moveTo(p[0],p[1]);for(var v=1;v<4;v++)p=m(v),u.lineTo(p[0],p[1]);u.fill(),h&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n,i=!1;return i=this._view?t>=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){if(!this._view)return!1;var n=a(this);return o(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=o(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";t=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){var o;r?(o=Math.min(r,i/2),r=Math.min(r,a/2),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+r),t.lineTo(e+i,n+a-r),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-r),t.lineTo(e,n+r),t.quadraticCurveTo(e,n,e+o,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var r,o,s,l;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),h=(d=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-d/2,a+h/3),t.lineTo(i+d/2,a+h/3),t.lineTo(i,a-2*h/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-l,a-l,2*l,2*l),t.strokeRect(i-l,a-l,2*l,2*l);break;case"rectRounded":var u=n/Math.SQRT2,d=i-u,h=a-u,u=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,h,u,u,n/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-l,a),t.lineTo(i,a+l),t.lineTo(i+l,a),t.lineTo(i,a-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),o=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-o,a-s),t.lineTo(i+o,a+s),t.moveTo(i-o,a+s),t.lineTo(i+o,a-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),o=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-o,a-s),t.lineTo(i+o,a+s),t.moveTo(i-o,a+s),t.lineTo(i+o,a-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(d.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(d.isObject(t))for(r=(o=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[o[a]],o[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!d.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=d.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],n=n[t];d.isObject(a)&&d.isObject(n)?d.merge(a,n,i):e[t]=d.clone(n)},_mergerIf:function(t,e,n){var i=e[t],n=n[t];d.isObject(i)&&d.isObject(n)?d.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=d.clone(n))},merge:function(t,e,n){var i,a,r,o,s,l=d.isArray(e)?e:[e],u=l.length;if(!d.isObject(t))return t;for(i=(n=n||{}).merger||d._merger,a=0;a<u;++a)if(e=l[a],d.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)i(r[s],t,e,n);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)d.each(arguments[e],t);return n},inherits:function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=d.inherits,t&&d.extend(i.prototype,t),i.__super__=n.prototype,i}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var t=t(42),i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};e.exports={effects:i},t.easingEffects=i},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},resolve:function(t,e,n){for(var i,a=0,r=t.length;a<r;++a)if(void 0!==(i=t[a])&&(void 0!==e&&"function"==typeof i&&(i=i(e)),void 0!==(i=void 0!==n&&o.isArray(i)?i[n]:i)))return i}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var f=t(45),g="$chartjs",m="chartjs-",p=m+"render-monitor",v=m+"render-animation",y=["animationstart","webkitAnimationStart"],o={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){e=f.getStyle(t,e),e=e&&e.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):void 0}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function b(t,e,n){t.addEventListener(e,n,i)}function r(t,e,n){t.removeEventListener(e,n,i)}function x(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function l(e,t,n){var i,a,r,o,s,l,u,d,h=e[g]||(e[g]={}),c=h.resizer=function(t){var e=document.createElement("div"),n=m+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=i,e.className=n,e.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var a=e.childNodes[0],r=e.childNodes[1];return e._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6},b(a,"scroll",(i=function(){e._reset(),t()}).bind(a,"expand")),b(r,"scroll",i.bind(r,"shrink")),e}((i=function(){if(h.resizer)return t(x("resize",n))},o=!1,function(){r=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,f.requestAnimFrame.call(window,function(){o=!1,i.apply(a,r)}))}));l=function(){var t;h.resizer&&((t=e.parentNode)&&t!==c.parentNode&&t.insertBefore(c,t.firstChild),c._reset())},u=(s=e)[g]||(s[g]={}),d=u.renderProxy=function(t){t.animationName===v&&l()},f.each(y,function(t){b(s,t,d)}),u.reflow=!!s.offsetParent,s.classList.add(p)}function a(t){var e,n,i=t[g]||{},a=i.resizer;delete i.resizer,t=(e=t)[g]||{},(n=t.renderProxy)&&(f.each(y,function(t){r(e,t,n)}),delete t.renderProxy),e.classList.remove(p),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+v+"{"+n+"}@keyframes "+v+"{"+n+"}."+p+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}",n=(t=this)._style||document.createElement("style"),t._style||(e="/* Chart.js */\n"+e,(t._style=n).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,r,o=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(i=e,r=(n=t).style,e=n.getAttribute("height"),t=n.getAttribute("width"),n[g]={initial:{height:e,width:t,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null!==t&&""!==t||void 0!==(a=s(n,"width"))&&(n.width=a),null!==e&&""!==e||(""===n.style.height?n.height=n.width/(i.options.aspectRatio||2):(i=s(n,"height"),void 0!==a&&(n.height=i))),o):null},releaseContext:function(t){var n,i=t.canvas;i[g]&&(n=i[g].initial,["height","width"].forEach(function(t){var e=n[t];f.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),f.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[g])},addEventListener:function(a,t,r){var e,n=a.canvas;"resize"!==t?b(n,t,((e=r[g]||(r[g]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;r((n=a,i=o[(e=t).type]||e.type,t=f.getRelativePosition(e,n),x(i,n,t.x,t.y,e)))}):l(n,r,a)},removeEventListener:function(t,e,n){var i=t.canvas;"resize"!==e?(t=((n[g]||{}).proxies||{})[t.id+"_"+e])&&r(i,e,t):a(i)}},f.addEvent=b,f.removeEvent=r},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),t=t(47),a=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var s=t(25),c=t(40),l=t(45);s._set("global",{plugins:{filler:{propagate:!0}}});var f={dataset:function(t){var e=t.fill,n=t.chart,t=n.getDatasetMeta(e),i=t&&n.isDatasetVisible(e)&&t.dataset._children||[],a=i.length||0;return a?function(t,e){return e<a&&i[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,n=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===n?t.y:n}}}};function y(t){return t&&!t.skip}function b(t,e,n,i,a){var r;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)l.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;0<r;--r)l.canvas.lineTo(t,n[r],n[r-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,r,o,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],h=0;h<l;++h)a=null,(i=(n=t.getDatasetMeta(h)).dataset)&&i._model&&i instanceof c.Line&&(a={visible:t.isDatasetVisible(h),fill:function(t,e,n){var i=(t=t._model||{}).fill;if(!1===(i=void 0===i?!!t.backgroundColor:i)||null===i)return!1;if(!0===i)return"origin";if(t=parseFloat(i,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"===i[0]||"+"===i[0]?e+t:t)===e||t<0||n<=t)&&t;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}(i,h,l),chart:t,el:i}),n.$filler=a,d.push(a);for(h=0;h<l;++h)(a=d[h])&&(a.fill=function(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}(d,h,u),a.boundary=function(t){var e=t.el._model||{},n=t.el._scale||{},i=t.fill,t=null;if(isFinite(i))return null;if("start"===i?t=void 0===e.scaleBottom?n.bottom:e.scaleBottom:"end"===i?t=void 0===e.scaleTop?n.top:e.scaleTop:void 0!==e.scaleZero?t=e.scaleZero:n.getBasePosition?t=n.getBasePosition():n.getBasePixel&&(t=n.getBasePixel()),null!=t){if(void 0!==t.x&&void 0!==t.y)return t;if("number"==typeof t&&isFinite(t))return{x:(n=n.isHorizontal())?t:null,y:n?null:t}}return null}(a),a.mapper=(s=o=void 0,o=(r=a).fill,!(s="dataset")===o?null:(isFinite(o)||(s="boundary"),f[s](r))))},beforeDatasetDraw:function(t,e){var n,i,a,r,o=e.meta.$filler;o&&(n=t.ctx,a=(i=o.el)._view,r=i._children||[],e=o.mapper,o=a.backgroundColor||s.global.defaultColor,e&&o&&r.length&&(l.canvas.clipArea(n,t.chartArea),function(t,e,n,i,a,r){var o,s,l,u,d,h,c=e.length,f=i.spanGaps,g=[],m=[],p=0,v=0;for(t.beginPath(),o=0,s=c+!!r;o<s;++o)u=n(l=e[h=o%c]._view,h,i),d=y(l),h=y(u),d&&h?(p=g.push(l),v=m.push(u)):p&&v&&(f?(d&&g.push(l),h&&m.push(u)):(b(t,g,m,p,v),p=v=0,g=[],m=[]));b(t,g,m,p,v),t.closePath(),t.fillStyle=a,t.fill()}(n,r,e,a,o,i._loop),l.canvas.unclipArea(n)))}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var C=t(25),i=t(26),P=t(45),a=t(30),t=P.noop;function T(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}C._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,e=i.getDatasetMeta(n);e.hidden=null===e.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return P.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:P.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var r=i.extend({initialize:function(t){P.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=P.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,r,o,s,l,u=this,t=u.options,d=t.labels,e=t.display,h=u.ctx,c=C.global,f=P.valueOrDefault,g=f(d.fontSize,c.defaultFontSize),t=f(d.fontStyle,c.defaultFontStyle),c=f(d.fontFamily,c.defaultFontFamily),t=P.fontString(g,t,c),m=u.legendHitBoxes=[],p=u.minSize,c=u.isHorizontal();c?(p.width=u.maxWidth,p.height=e?10:0):(p.width=e?10:0,p.height=u.maxHeight),e&&(h.font=t,c?(n=u.lineWidths=[0],i=u.legendItems.length?g+d.padding:0,h.textAlign="left",h.textBaseline="top",P.each(u.legendItems,function(t,e){t=T(d,g)+g/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=g+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:g},n[n.length-1]+=t+d.padding}),p.height+=i):(c=d.padding,a=u.columnWidths=[],r=d.padding,s=o=0,l=g+c,P.each(u.legendItems,function(t,e){t=T(d,g)+g/2+h.measureText(t.text).width;s+l>p.height&&(r+=o+d.padding,a.push(o),s=o=0),o=Math.max(o,t),s+=l,m[e]={left:0,top:0,width:t,height:g}}),r+=o,a.push(o),p.width+=r)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c,f,t,g,e,n,m,p,v,y,b,x=this,_=x.options,k=_.labels,w=C.global,M=w.elements.line,S=x.width,D=x.lineWidths;_.display&&(c=x.ctx,t=(f=P.valueOrDefault)(k.fontColor,w.defaultFontColor),g=f(k.fontSize,w.defaultFontSize),e=f(k.fontStyle,w.defaultFontStyle),n=f(k.fontFamily,w.defaultFontFamily),n=P.fontString(g,e,n),c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=t,c.fillStyle=t,c.font=n,m=T(k,g),p=x.legendHitBoxes,v=x.isHorizontal(),y=v?{x:x.left+(S-D[0])/2,y:x.top+k.padding,line:0}:{x:x.left+k.padding,y:x.top+k.padding,line:0},b=g+k.padding,P.each(x.legendItems,function(t,e){var n,i,a,r,o,s,l=c.measureText(t.text).width,u=m+g/2+l,d=y.x,h=y.y;v?S<=d+u&&(h=y.y+=b,y.line++,d=y.x=x.left+(S-D[y.line])/2):h+b>x.bottom&&(d=y.x=d+x.columnWidths[y.line]+k.padding,h=y.y=x.top+k.padding,y.line++),n=d,i=h,a=t,isNaN(m)||m<=0||(c.save(),c.fillStyle=f(a.fillStyle,w.defaultColor),c.lineCap=f(a.lineCap,M.borderCapStyle),c.lineDashOffset=f(a.lineDashOffset,M.borderDashOffset),c.lineJoin=f(a.lineJoin,M.borderJoinStyle),c.lineWidth=f(a.lineWidth,M.borderWidth),c.strokeStyle=f(a.strokeStyle,w.defaultColor),r=0===f(a.lineWidth,M.borderWidth),c.setLineDash&&c.setLineDash(f(a.lineDash,M.borderDash)),_.labels&&_.labels.usePointStyle?(s=(o=g*Math.SQRT2/2)/Math.SQRT2,P.canvas.drawPoint(c,a.pointStyle,o,n+s,i+s)):(r||c.strokeRect(n,i,m,g),c.fillRect(n,i,m,g)),c.restore()),p[e].left=d,p[e].top=h,e=t,t=l,d=m+(l=g/2)+(d=d),l=h+l,c.fillText(e.text,d,l),e.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(d,l),c.lineTo(d+t,l),c.stroke()),v?y.x+=u+k.padding:y.y+=b}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(r>=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:r,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(P.mergeIf(e,C.global.legend),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var y=t(25),i=t(26),b=t(45),a=t(30),t=b.noop;y._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var r=i.extend({initialize:function(t){b.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=b.valueOrDefault,e=this.options,n=e.display,i=t(e.fontSize,y.global.defaultFontSize),a=this.minSize,t=b.isArray(e.text)?e.text.length:1,i=b.options.toLineHeight(e.lineHeight,i),e=n?t*i+2*e.padding:0;this.isHorizontal()?(a.width=this.maxWidth,a.height=e):(a.width=e,a.height=this.maxHeight),this.width=a.width,this.height=a.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=b.valueOrDefault,n=this.options,i=y.global;if(n.display){var a,r,o,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),d=b.fontString(s,l,u),h=b.options.toLineHeight(n.lineHeight,s),c=h/2+n.padding,f=0,g=this.top,l=this.left,u=this.bottom,s=this.right;t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=d,this.isHorizontal()?(r=l+(s-l)/2,o=g+c,a=s-l):(r="left"===n.position?l+c:s-c,o=g+(u-g)/2,a=u-g,f=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(f),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(b.isArray(m))for(var p=0,v=0;v<m.length;++v)t.fillText(m[v],0,p,a),p+=h;else t.fillText(m,0,0,a);t.restore()}}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:r,beforeInit:function(t){var e=t.options.title;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(b.mergeIf(e,y.global.title),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);if((void 0!==(n=null!=t?i.isHorizontal()?t.x:t.y:n)||void 0!==t&&isNaN(e))&&(e=-1!==(o=i.getLabels().indexOf(t=n||t))?o:e),i.isHorizontal()){var t=i.width/r,o=t*(e-i.minIndex);return a&&(o+=t/2),i.left+Math.round(o)}r=i.height/r,e=r*(e-i.minIndex);return a&&(e+=r/2),i.top+Math.round(e)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),n=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=n/2),(t<=0?0:Math.round(t/n))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),h=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var o=this,s=o.options,l=o.chart,t=l.data.datasets,e=o.isHorizontal();function u(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null;var d,i=s.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join(".");void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]});var a=d[i].positiveValues,r=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,r[e]=r[e]||0,s.relativePoints?a[e]=100:t<0?r[e]+=t:a[e]+=t)})}),h.each(d,function(t){var e=t.positiveValues.concat(t.negativeValues),t=h.min(e),e=h.max(e);o.min=null===o.min?t:Math.min(o.min,t),o.max=null===o.max?e:Math.max(o.max,e)})):h.each(t,function(t,e){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||((null===o.min||t<o.min)&&(o.min=t),(null===o.max||t>o.max)&&(o.max=t))})}),o.min=isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=isFinite(o.max)&&!isNaN(o.max)?o.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,n=+this.getRightValue(t),t=this.end-e,e=this.isHorizontal()?this.left+this.width/t*(n-e):this.bottom-this.height/t*(n-e);return e},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,n=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var u=t(45);e.exports=function(e){var t=u.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0));var n=void 0!==e.min||void 0!==e.suggestedMin,i=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),n!=i&&t.min>=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i,a=[];i=t.stepSize&&0<t.stepSize?t.stepSize:(n=u.niceNum(e.max-e.min,!1),u.niceNum(n/(t.maxTicks-1),!0));var r=Math.floor(e.min/i)*i,e=Math.ceil(e.max/i)*i;t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(r=t.min,e=t.max);var o=u.almostEquals(o=(e-r)/i,Math.round(o),i/1e3)?Math.round(o):Math.ceil(o),s=1;i<1&&(s=Math.pow(10,i.toString().length-2),r=Math.round(r*s)/s,e=Math.round(e*s)/s),a.push(void 0!==t.min?t.min:r);for(var l=1;l<o;++l)a.push(Math.round((r+l*i)*s)/s);return a.push(void 0!==t.max?t.max:e),a}(n,t);t.handleDirectionalChanges(),t.max=u.max(n),t.min=u.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var h=t(45),i=t(34);e.exports=function(d){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},e=d.Scale.extend({determineDataLimits:function(){var r=this,n=r.options,o=r.chart,t=o.data.datasets,e=r.isHorizontal();function s(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null,r.minNotZero=null;var l,i=n.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=o.getDatasetMeta(e),o.isDatasetVisible(e)&&s(n)&&void 0!==n.stack&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=o.getDatasetMeta(e),a=[i.type,void 0===n.stacked&&void 0===i.stack?e:"",i.stack].join(".");o.isDatasetVisible(e)&&s(i)&&(void 0===l[a]&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+r.getRightValue(t);isNaN(t)||i.data[e].hidden||t<0||(n[e]=n[e]||0,n[e]+=t)}))}),h.each(l,function(t){var e;0<t.length&&(e=h.min(t),t=h.max(t),r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t))})):h.each(t,function(t,e){var n=o.getDatasetMeta(e);o.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===r.min||t<r.min)&&(r.min=t),(null===r.max||t>r.max)&&(r.max=t),0!=t&&(null===r.minNotZero||t<r.minNotZero)&&(r.minNotZero=t))})}),this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=h.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(h.log10(t.min))-1),t.max=Math.pow(10,Math.floor(h.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(h.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(h.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(h.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:e.min,max:e.max},i=t.ticks=function(t,e){var n,i,a=[],r=h.valueOrDefault,o=r(t.min,Math.pow(10,Math.floor(h.log10(e.min)))),s=Math.floor(h.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s));0===o?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(o),o=i*Math.pow(10,n)):(n=Math.floor(h.log10(o)),i=Math.floor(o/Math.pow(10,n)));for(var u=n<0?Math.pow(10,Math.abs(n)):1;a.push(o),10===++i&&(i=1,u=0<=++n?1:u),o=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return t=r(t.max,o),a.push(t),a}(i,t);t.max=h.max(i),t.min=h.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),d.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(h.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,r=this,o=r.options.ticks.reverse,s=h.log10,l=r._getFirstTickValue(r.minNotZero),u=0;return t=+r.getRightValue(t),a=o?(n=r.end,i=r.start,-1):(n=r.start,i=r.end,1),o=r.isHorizontal()?(e=r.width,o?r.right:r.left):(e=r.height,a*=-1,o?r.top:r.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(r.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),o+=a*u),o},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,r=h.log10,o=i._getFirstTickValue(i.minNotZero),s=a?(n=i.end,i.start):(n=i.start,i.end),t=i.isHorizontal()?(e=i.width,a?i.right-t:t-i.left):(e=i.height,a?t-i.top:i.bottom-t);return t!==n&&(0===n&&(t-=i=h.getValueOrDefault(i.options.ticks.fontSize,d.defaults.global.defaultFontSize),e-=i,n=o),t*=r(s)-r(n),t/=e,t=Math.pow(10,r(n)+t)),t}});d.scaleService.registerScaleType("logarithmic",e,t)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var r=t(25),p=t(45),s=t(34);e.exports=function(t){var c=r.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function f(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function g(t){var e=t.options.pointLabels,n=p.valueOrDefault(e.fontSize,c.defaultFontSize),t=p.valueOrDefault(e.fontStyle,c.defaultFontStyle),e=p.valueOrDefault(e.fontFamily,c.defaultFontFamily);return{size:n,style:t,family:e,font:p.fontString(n,t,e)}}function m(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function n(t){var e,n=g(t),i=Math.min(t.height/2,t.width/2),a={r:t.width,l:0,t:t.height,b:0},r={};t.ctx.font=n.font,t._pointLabelSizes=[];for(var o=f(t),s=0;s<o;s++){e=t.getPointPosition(s,i),l=t.ctx,d=n.size,u=t.pointLabels[s]||"",h=p.isArray(u)?{w:p.longestText(l,l.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:l.measureText(u).width,h:d},t._pointLabelSizes[s]=h;var l=t.getIndexAngle(s),u=p.toDegrees(l)%360,d=m(u,e.x,h.w,0,180),h=m(u,e.y,h.h,90,270);d.start<a.l&&(a.l=d.start,r.l=l),d.end>a.r&&(a.r=d.end,r.r=l),h.start<a.t&&(a.t=h.start,r.t=l),h.end>a.b&&(a.b=h.end,r.b=l)}t.setReductions(i,a,r)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels;e.lineWidth=i.lineWidth,e.strokeStyle=i.color;var r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=g(t);e.textBaseline="top";for(var s,l,u,d,h=f(t)-1;0<=h;h--)i.display&&(u=t.getPointPosition(h,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display&&(s=t.getPointPosition(h,r+5),d=p.valueAtIndexOrDefault(a.fontColor,h,c.defaultFontColor),e.font=o.font,e.fillStyle=d,l=t.getIndexAngle(h),u=p.toDegrees(l),e.textAlign=0===(d=u)||180===d?"center":d<180?"left":"right",l=u,d=t._pointLabelSizes[h],u=s,90===l||270===l?u.y-=d.h/2:(270<l||l<90)&&(u.y-=d.h),function(t,e,n,i){if(p.isArray(e))for(var a=n.y,r=1.5*i,o=0;o<e.length;++o)t.fillText(e[o],n.x,a),a+=r;else t.fillText(e,n.x,n.y)}(e,t.pointLabels[h]||"",s,o.size))}function o(t){return p.isNumber(t)?t:0}var a=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var i=p.min([t.height,t.width]),a=p.valueOrDefault(n.fontSize,c.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;p.each(a.data.datasets,function(t,e){var n;a.isDatasetVisible(e)&&(n=a.getDatasetMeta(e),p.each(t.data,function(t,e){t=+i.getRightValue(t);isNaN(t)||n.data[e].hidden||(r=Math.min(t,r),o=Math.max(t,o))}))}),i.min=r===Number.POSITIVE_INFINITY?0:r,i.max=o===Number.NEGATIVE_INFINITY?0:o,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=p.valueOrDefault(t.fontSize,c.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?n(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),n=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=o(i),a=o(a),r=o(r),n=o(n);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(r+n)/2)),this.setCenterPoint(i,a,r,n)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,t=t+a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/f(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var a,r,o,t,e,s,l=this,n=l.options,u=n.gridLines,d=n.ticks,h=p.valueOrDefault;n.display&&(a=l.ctx,r=this.getIndexAngle(0),o=h(d.fontSize,c.defaultFontSize),t=h(d.fontStyle,c.defaultFontStyle),e=h(d.fontFamily,c.defaultFontFamily),s=p.fontString(o,t,e),p.each(l.ticks,function(t,e){var n,i;(0<e||d.reverse)&&(n=l.getDistanceFromCenterForValue(l.ticksAsNumbers[e]),u.display&&0!==e&&function(t,e,n,i){var a=t.ctx;if(a.strokeStyle=p.valueAtIndexOrDefault(e.color,i-1),a.lineWidth=p.valueAtIndexOrDefault(e.lineWidth,i-1),t.options.gridLines.circular)a.beginPath(),a.arc(t.xCenter,t.yCenter,n,0,2*Math.PI),a.closePath(),a.stroke();else{var r=f(t);if(0!==r){a.beginPath();var o=t.getPointPosition(0,n);a.moveTo(o.x,o.y);for(var s=1;s<r;s++)o=t.getPointPosition(s,n),a.lineTo(o.x,o.y);a.closePath(),a.stroke()}}}(l,u,n,e),d.display&&(i=h(d.fontColor,c.defaultFontColor),a.font=s,a.save(),a.translate(l.xCenter,l.yCenter),a.rotate(r),d.showLabelBackdrop&&(e=a.measureText(t).width,a.fillStyle=d.backdropColor,a.fillRect(-e/2-d.backdropPaddingX,-n-o/2-d.backdropPaddingY,e+2*d.backdropPaddingX,o+2*d.backdropPaddingY)),a.textAlign="center",a.textBaseline="middle",a.fillStyle=i,a.fillText(t,0,-n),a.restore()))}),(n.angleLines.display||n.pointLabels.display)&&i(l))}});t.scaleService.registerScaleType("radialLinear",a,e)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var b="function"==typeof(b=t(6))?b:window.moment,a=t(25),m=t(45),p=Number.MIN_SAFE_INTEGER||-9007199254740991,v=Number.MAX_SAFE_INTEGER||9007199254740991,x={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},_=Object.keys(x);function y(t,e){return t-e}function k(t){for(var e,n={},i=[],a=0,r=t.length;a<r;++a)n[e=t[a]]||(n[e]=!0,i.push(e));return i}function w(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;0<=o&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)o=1+i;else{if(!(a[e]>n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-r[e],t=t?(n-r[e])/t:0,t=(a[i]-r[i])*t;return r[i]+t}function M(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?b(t,e):!(t=!(t instanceof b)?b(t):t).isValid()&&"function"==typeof e?e(t):t}function S(t,e){if(m.isNullOrUndef(t))return null;var n=e.options.time,t=M(e.getRightValue(t),n);return t.isValid()?(n.round&&t.startOf(n.round),t.valueOf()):null}function D(t){for(var e=_.indexOf(t)+1,n=_.length;e<n;++e)if(x[_[e]].common)return _[e]}function C(t,e,n,i){var a,r=i.time,o=r.unit||function(t,e,n,i){for(var a,r,o=_.length,s=_.indexOf(t);s<o-1;++s)if(r=(a=x[_[s]]).steps?a.steps[a.steps.length-1]:v,a.common&&Math.ceil((n-e)/(r*a.size))<=i)return _[s];return _[o-1]}(r.minUnit,t,e,n),s=D(o),l=m.valueOrDefault(r.stepSize,r.unitStepSize),u="week"===o&&r.isoWeekday,d=i.ticks.major.enabled,h=x[o],i=b(t),c=b(e),f=[],l=l||function(t,e,n,i){var a,r,o,s=e-t,l=(n=x[n]).size,u=n.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,r=u.length;a<r&&(o=u[a],!(Math.ceil(s/(l*o))<=i));++a);return o}(t,e,o,n);for(u&&(i=i.isoWeekday(u),c=c.isoWeekday(u)),i=i.startOf(u?"day":o),(c=c.startOf(u?"day":o))<e&&c.add(1,o),a=b(i),d&&s&&!u&&!r.round&&(a.startOf(s),a.add(~~((i-a)/(h.size*l))*l,o));a<c;a.add(l,o))f.push(+a);return f.push(+a),f}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!b)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,r=a.chart,o=a.options.time,s=o.unit||"day",l=v,u=p,d=[],h=[],c=[],f=0,g=r.data.labels.length;f<g;++f)c.push(S(r.data.labels[f],a));for(f=0,g=(r.data.datasets||[]).length;f<g;++f)if(r.isDatasetVisible(f))if(n=r.data.datasets[f].data,m.isObject(n[0]))for(h[f]=[],t=0,e=n.length;t<e;++t)i=S(n[t],a),d.push(i),h[f][t]=i;else d.push.apply(d,c),h[f]=c.slice(0);else h[f]=[];c.length&&(c=k(c).sort(y),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=k(d).sort(y),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=S(o.min,a)||l,u=S(o.max,a)||u,l=l===v?+b().startOf(s):l,u=u===p?+b().endOf(s)+1:u,a.min=Math.min(l,u),a.max=Math.max(l+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:h,labels:c}},buildTicks:function(){var t,e,n,i,a,r,o,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,v=[],y=[];switch(m.ticks.source){case"data":v=c._timestamps.data;break;case"labels":v=c._timestamps.labels;break;case"auto":default:v=C(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&v.length&&(f=v[0],g=v[v.length-1]),f=S(p.min,c)||f,g=S(p.max,c)||g,t=0,e=v.length;t<e;++t)f<=(n=v[t])&&n<=g&&y.push(n);return c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,r=b.duration(b(i).diff(b(n))),o=_.length-1;o>=_.indexOf(e);o--)if(a=_[o],x[a].common&&r.as(a)>=t.length)return a;return _[e?_.indexOf(e):0]}(y,p.minUnit,c.min,c.max),c._majorUnit=D(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,r,o,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(r=t[u])&&r<n&&l.push(r);for(l.push(n),u=0,d=l.length;u<d;++u)o=l[u+1],a=l[u-1],r=l[u],void 0!==a&&void 0!==o&&Math.round((o+a)/2)===r||s.push({time:r,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=y,r=f,o=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:o,u=a[0],d=(w(i,"time",l,"pos")-w(i,"time",u,"pos"))/2),s.time.max||(l=a[a.length-1],u=1<a.length?a[a.length-2]:r,h=(w(i,"time",l,"pos")-w(i,"time",u,"pos"))/2)),{left:d,right:h}),c._labelFormat=function(t,e){for(var n,i,a=t.length,r=0;r<a;r++){if(0!==(n=M(t[r],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(c._timestamps.data,p),function(t,e){for(var n,i,a=[],r=0,o=t.length;r<o;++r)n=t[r],i=!!e&&n===+b(n).startOf(e),a.push({value:n,major:i});return a}(y,c._majorUnit)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",t=n.datasets[e].data[t];return m.isObject(t)&&(a=this.getRightValue(t)),i.tooltipFormat?M(a,i).format(i.tooltipFormat):"string"==typeof a?a:M(a,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var a=this.options,r=t.valueOf(),o=a.time.displayFormats,s=o[this._unit],l=this._majorUnit,u=o[l],d=t.clone().startOf(l).valueOf(),o=a.ticks.major,d=o.enabled&&l&&u&&r===d,s=t.format(i||(d?u:s)),a=d?o:a.ticks.minor,a=m.valueOrDefault(a.callback,a.userCallback);return a?a(s,e,n):s},convertTicksToLabels:function(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(this.tickFormatFunction(b(t[n].value),n,t));return e},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=w(e._table,"time",t,"pos");return i+n*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(null!==(i=null===(i=void 0!==e&&void 0!==n?this._timestamps.datasets[n][e]:i)?S(t,this):i))return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,n=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,n=w(e._table,"pos",n,"time");return b(n)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=m.toRadians(e.maxRotation),t=Math.cos(i),i=Math.sin(i);return n*t+m.valueOrDefault(e.fontSize,a.global.defaultFontSize)*i},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,t=this.tickFormatFunction(b(t),0,[],e),e=this.getLabelWidth(t),t=this.isHorizontal()?this.width:this.height,e=Math.floor(t/e);return 0<e?e:1}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)})
\ No newline at end of file
1 +!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function i(a,r,o){function s(n,t){if(!r[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw(e=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",e}e=r[n]={exports:{}},a[n][0].call(e.exports,function(t){var e=a[n][1][t];return s(e||t)},e,e.exports,i,a,r,o)}return r[n].exports}for(var l="function"==typeof require&&require,t=0;t<o.length;t++)s(o[t]);return s}({1:[function(t,e,n){var r=t(5);function i(t){if(t){var e=[0,0,0],n=1;if(i=t.match(/^#([a-fA-F0-9]{3})$/i))for(var i=i[1],a=0;a<e.length;a++)e[a]=parseInt(i[a]+i[a],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(a=0;a<e.length;a++)e[a]=parseInt(i.slice(2*a,2*a+2),16)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=r[i[1]]))return}for(a=0;a<e.length;a++)e[a]=d(e[a],0,255);return n=n||0==n?d(n,0,1):1,e[3]=n,e}}function a(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){t=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(t)?1:t,0,1)]}}}function o(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){t=parseFloat(e[4]);return[d(parseInt(e[1]),0,360),d(parseFloat(e[2]),0,100),d(parseFloat(e[3]),0,100),d(isNaN(t)?1:t,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:a,getRgb:function(t){t=i(t);return t&&t.slice(0,3)},getHsl:function(t){t=a(t);return t&&t.slice(0,3)},getHwb:o,getAlpha:function(t){var e=i(t);return(e=e||a(t))||(e=o(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var n=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+n+"%, "+e+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in r)f[r[c]]=c},{5:5}],2:[function(t,e,n){var d=t(4),i=t(1),o=function(t){return t instanceof o?t:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=i.getRgba(t))?this.setValues("rgb",e):(e=i.getHsla(t))?this.setValues("hsl",e):(e=i.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new o(t);var e};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,a=void 0===e?.5:e,t=2*a-1,e=n.alpha()-i.alpha(),t=(1+(t*e==-1?t:(t+e)/(1+t*e)))/2,e=1-t;return this.rgb(t*n.red()+e*i.red(),t*n.green()+e*i.green(),t*n.blue()+e*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n,i=new o,a=this.values,r=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?r[n]=t.slice(0):"[object Number]"===e?r[n]=t:console.error("unexpected color value:",t));return i}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[r[t][0]]){for(var l=r[t],u=0;u<t.length;u++)a[t][u]=e[l[u]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(o[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in r)i!==t&&(a[i]=d[t][i](a[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n===i[e]||(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{1:1,4:4}],3:[function(t,e,n){function a(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.min(n,i,a),o=Math.max(n,i,a),t=o-r;return o==r?e=0:n==o?e=(i-a)/t:i==o?e=2+(a-n)/t:a==o&&(e=4+(n-i)/t),(e=Math.min(60*e,360))<0&&(e+=360),i=(r+o)/2,[e,100*(o==r?0:i<=.5?t/(o+r):t/(2-o-r)),100*i]}function i(t){var e,n=t[0],i=t[1],a=t[2],r=Math.min(n,i,a),o=Math.max(n,i,a),s=o-r,t=0==o?0:s/o*1e3/10;return o==r?e=0:n==o?e=(i-a)/s:i==o?e=2+(a-n)/s:a==o&&(e=4+(n-i)/s),(e=Math.min(60*e,360))<0&&(e+=360),[e,t,o/255*1e3/10]}function o(t){var e=t[0],n=t[1],i=t[2];return[a(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(i=1-1/255*Math.max(e,Math.max(n,i)))]}function s(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,t=Math.min(1-e,1-n,1-i);return[100*((1-e-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]}function l(t){return D[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*n+.0722*t),100*(.0193*e+.1192*n+.9505*t)]}function d(t){var e=u(t),n=e[0],t=e[1],e=e[2];return t/=100,e/=108.883,n=.008856<(n/=95.047)?Math.pow(n,1/3):7.787*n+16/116,[116*(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116)-16,500*(n-t),200*(t-(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116))]}function h(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100;if(0==a)return[n=255*t,n,n];for(var r,o=2*t-(r=t<.5?t*(1+a):t+a-t*a),s=[0,0,0],l=0;l<3;l++)(e=i+1/3*-(l-1))<0&&e++,1<e&&e--,n=6*e<1?o+6*(r-o)*e:2*e<1?r:3*e<2?o+(r-o)*(2/3-e)*6:o,s[l]=255*n;return s}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),a=255*i*(1-n),r=255*i*(1-n*e),o=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,o,a];case 1:return[r,i,a];case 2:return[a,i,o];case 3:return[a,r,i];case 4:return[o,a,i];case 5:return[i,a,r]}}function f(t){var e,n,i=t[0]/360,a=t[1]/100,o=t[2]/100,t=a+o;switch(1<t&&(a/=t,o/=t),i=6*i-(t=Math.floor(6*i)),n=a+(i=0!=(1&t)?1-i:i)*((e=1-o)-a),t){default:case 6:case 0:r=e,g=n,b=a;break;case 1:r=n,g=e,b=a;break;case 2:r=a,g=e,b=n;break;case 3:r=a,g=n,b=e;break;case 4:r=n,g=a,b=e;break;case 5:r=e,g=a,b=n}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t))]}function p(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=3.2406*e+-1.5372*n+-.4986*i,t=-.9689*e+1.8758*n+.0415*i,i=.0557*e+-.204*n+1.057*i;return a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:12.92*a,t=.0031308<t?1.055*Math.pow(t,1/2.4)-.055:12.92*t,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(a=Math.min(Math.max(0,a),1)),255*(t=Math.min(Math.max(0,t),1)),255*(i=Math.min(Math.max(0,i),1))]}function v(t){var e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function y(t){var e,n=t[0],i=t[1],t=t[2],n=n<=8?(e=100*n/903.3)/100*7.787+16/116:(e=100*Math.pow((n+16)/116,3),Math.pow(e/100,1/3)),a=a/95.047<=.008856?95.047*(i/500+n-16/116)/7.787:95.047*Math.pow(i/500+n,3),r=r/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,r]}function x(t){var e=t[0],n=t[1],i=t[2],t=360*Math.atan2(i,n)/2/Math.PI;return t<0&&(t+=360),[e,Math.sqrt(n*n+i*i),t]}function _(t){return p(y(t))}function k(t){var e=t[0],n=t[1],t=t[2]/360*2*Math.PI;return[e,n*Math.cos(t),n*Math.sin(t)]}function w(t){return S[t]}e.exports={rgb2hsl:a,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],n=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(n*=(t*=2)<=1?t:2-t)/(t+n)),100*((t+n)/2)]:[0,0,0]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e=t[0],n=t[1]/100,i=t[2]/100;return t=n*i,[e,100*(t=(t/=(i=(2-n)*i)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return a(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return a(m(t))},cmyk2hsv:function(t){return i(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return a(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return _(k(t))}};var M,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},D={};for(M in S)D[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){function a(){return new l}var i,r=t(3);for(i in r){a[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(i);var o=/(\w+)2(\w+)/.exec(i),s=o[1],o=o[2];(a[s]=a[s]||{})[o]=a[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=r[i](t);if("string"==typeof e||void 0===e)return e;for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(i)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,n,i=this.convs[t];return i||(e=this.space,n=this.convs[e],i=a[e][t](n),this.convs[t]=i),i},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=a},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(xn,_n,t){var e,n;e=this,n=function(){"use strict";var t;function h(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return Ce(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=f(t),n=p.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function m(t){var e=d(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}var p=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},v=h.momentProperties=[];function y(t,e){var n,i,a;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=f(e)),r(e._locale)||(t._locale=e._locale),0<v.length)for(n=0;n<v.length;n++)r(a=e[i=v[n]])||(t[i]=a);return t}var e=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,h.updateOffset(this),e=!1)}function x(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,t=0;return t=0!=e&&isFinite(e)?_(e):t}function w(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0,o=0;o<i;o++)(n&&t[o]!==e[o]||!n&&k(t[o])!==k(e[o]))&&r++;return r+a}function M(t){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(a,r){var o=!0;return u(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,a),o){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}M(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),o=!1}return r.apply(this,arguments)},r)}var S={};function D(t,e){null!=h.deprecationHandler&&h.deprecationHandler(t,e),S[t]||(M(e),S[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var n,i=u({},t);for(n in e)c(e,n)&&(s(t[n])&&s(e[n])?(i[n]={},u(i[n],t[n]),u(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)c(t,n)&&!c(e,n)&&s(t[n])&&(i[n]=u({},i[n]));return i}function T(t){null!=t&&this.set(t)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null;var O=Object.keys||function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var I={};function A(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function F(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)c(t,n)&&(e=F(n))&&(i[e]=t[n]);return i}var L={};function Y(t,e){L[t]=e}function W(t,e,n){var i=""+Math.abs(t),e=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+i}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function B(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(V[t]=a),e&&(V[e[0]]=function(){return W(a.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function E(t,e){return t.isValid()?(e=j(e,t.localeData()),H[e]=H[e]||function(i){for(var t,a=i.match(N),e=0,r=a.length;e<r;e++)V[a[e]]?a[e]=V[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<r;n++)e+=C(a[n])?a[n].call(t,i):a[n];return e}}(e),H[e](t)):t.localeData().invalidDate()}function j(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;0<=n&&z.test(t);)t=t.replace(z,i),z.lastIndex=0,--n;return t}var U=/\d/,q=/\d\d/,G=/\d{3}/,Z=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,$=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,ot=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st={};function lt(t,n,i){st[t]=C(n)?n:function(t,e){return t&&i?i:n}}function ut(t,e){return c(st,t)?st[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function ct(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),l(n)&&(i=function(t,e){e[n]=k(t)}),e=0;e<t.length;e++)ht[t[e]]=i}function ft(t,a){ct(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var gt=0,mt=1,pt=2,vt=3,yt=4,bt=5,xt=6,_t=7,kt=8;function wt(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}B("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),A("year","y"),Y("year",1),lt("Y",it),lt("YY",J,q),lt("YYYY",tt,Z),lt("YYYYY",et,X),lt("YYYYYY",et,X),ct(["YYYYY","YYYYYY"],gt),ct("YYYY",function(t,e){e[gt]=2===t.length?h.parseTwoDigitYear(t):k(t)}),ct("YY",function(t,e){e[gt]=h.parseTwoDigitYear(t)}),ct("Y",function(t,e){e[gt]=parseInt(t,10)}),h.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var St,Dt=Ct("FullYear",!0);function Ct(e,n){return function(t){return null!=t?(Tt(this,e,t),h.updateOffset(this,n),this):Pt(this,e)}}function Pt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Tt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ot(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,n=(e%(n=12)+n)%n;return t+=(e-n)/12,1==n?Mt(t)?29:28:31-n%7%2}St=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),B("MMMM",0,0,function(t){return this.localeData().months(this,t)}),A("month","M"),Y("month",8),lt("M",J),lt("MM",J,q),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ct(["M","MM"],function(t,e){e[mt]=k(t)-1}),ct(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[mt]=i:f(n).invalidMonth=t});var It=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ft="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Lt(t){return null!=t?(Rt(this,t),h.updateOffset(this,!0),this):Pt(this,"Month")}var Yt=ot;var Wt=ot;function Nt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],r=0;r<12;r++)e=d([2e3,r]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),r=0;r<12;r++)n[r]=dt(n[r]),i[r]=dt(i[r]);for(r=0;r<24;r++)a[r]=dt(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function zt(t,e,n,i,a,r,o){o=new Date(t,e,n,i,a,r,o);return t<100&&0<=t&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function Ht(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Vt(t,e,n){n=7+e-n;return n-(7+Ht(t,0,n).getUTCDay()-e)%7-1}function Bt(t,e,n,i,a){var r,a=1+7*(e-1)+(7+n-i)%7+Vt(t,i,a),a=a<=0?wt(r=t-1)+a:a>wt(t)?(r=t+1,a-wt(t)):(r=t,a);return{year:r,dayOfYear:a}}function Et(t,e,n){var i,a,r=Vt(t.year(),e,n),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?i=r+jt(a=t.year()-1,e,n):r>jt(t.year(),e,n)?(i=r-jt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function jt(t,e,n){var i=Vt(t,e,n),n=Vt(t+1,e,n);return(wt(t)-i+n)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),Y("week",5),Y("isoWeek",5),lt("w",J),lt("ww",J,q),lt("W",J),lt("WW",J,q),ft(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)});B("d",0,"do","day"),B("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),B("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),B("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),lt("d",J),lt("e",J),lt("E",J),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ft(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:f(n).invalidWeekday=t}),ft(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Gt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Zt=ot;var Xt=ot;var Jt=ot;function Kt(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=d([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),r.push(n),o.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),r.sort(t),o.sort(t),s.sort(t),l=0;l<7;l++)r[l]=dt(r[l]),o[l]=dt(o[l]),s[l]=dt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function $t(){return this.hours()%12||12}function Qt(t,e){B(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,$t),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+$t.apply(this)+W(this.minutes(),2)}),B("hmmss",0,0,function(){return""+$t.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Qt("a",!0),Qt("A",!1),A("hour","h"),Y("hour",13),lt("a",te),lt("A",te),lt("H",J),lt("h",J),lt("k",J),lt("HH",J,q),lt("hh",J,q),lt("kk",J,q),lt("hmm",K),lt("hmmss",$),lt("Hmm",K),lt("Hmmss",$),ct(["H","HH"],vt),ct(["k","kk"],function(t,e,n){t=k(t);e[vt]=24===t?0:t}),ct(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ct(["h","hh"],function(t,e,n){e[vt]=k(t),f(n).bigHour=!0}),ct("hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i)),f(n).bigHour=!0}),ct("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i,2)),e[bt]=k(t.substr(a)),f(n).bigHour=!0}),ct("Hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i))}),ct("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[vt]=k(t.substr(0,i)),e[yt]=k(t.substr(i,2)),e[bt]=k(t.substr(a))});var ee,ne=Ct("Hours",!0),ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:Ft,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:Gt,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},ae={},re={};function oe(t){return t&&t.toLowerCase().replace("_","-")}function se(t){if(!ae[t]&&void 0!==_n&&_n&&_n.exports)try{var e=ee._abbr;xn("./locale/"+t),le(e)}catch(t){}return ae[t]}function le(t,e){var n;return(ee=t&&(n=r(e)?de(t):ue(t,e))?n:ee)._abbr}function ue(t,e){if(null===e)return delete ae[t],null;var n=ie;if(e.abbr=t,null!=ae[t])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ae[t]._config;else if(null!=e.parentLocale){if(null==ae[e.parentLocale])return re[e.parentLocale]||(re[e.parentLocale]=[]),re[e.parentLocale].push({name:t,config:e}),null;n=ae[e.parentLocale]._config}return ae[t]=new T(P(n,e)),re[t]&&re[t].forEach(function(t){ue(t.name,t.config)}),le(t),ae[t]}function de(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return ee;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,n,i,a,r=0;r<t.length;){for(e=(a=oe(t[r]).split("-")).length,n=(n=oe(t[r+1]))?n.split("-"):null;0<e;){if(i=se(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&w(a,n,!0)>=e-1)break;e--}r++}return null}(t)}function he(t){var e=t._a;return e&&-2===f(t).overflow&&(e=e[mt]<0||11<e[mt]?mt:e[pt]<1||e[pt]>Ot(e[gt],e[mt])?pt:e[vt]<0||24<e[vt]||24===e[vt]&&(0!==e[yt]||0!==e[bt]||0!==e[xt])?vt:e[yt]<0||59<e[yt]?yt:e[bt]<0||59<e[bt]?bt:e[xt]<0||999<e[xt]?xt:-1,f(t)._overflowDayOfYear&&(e<gt||pt<e)&&(e=pt),f(t)._overflowWeeks&&-1===e&&(e=_t),f(t)._overflowWeekday&&-1===e&&(e=kt),f(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function fe(t){var e,n,i,a,r,o=[];if(!t._d){for(a=t,r=new Date(h.now()),n=a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()],t._w&&null==t._a[pt]&&null==t._a[mt]&&function(t){var e,n,i,a,r,o,s;{var l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,o=4,n=ce(e.GG,t._a[gt],Et(Pe(),1,4).year),i=ce(e.W,1),((a=ce(e.E,1))<1||7<a)&&(s=!0)):(r=t._locale._week.dow,o=t._locale._week.doy,l=Et(Pe(),r,o),n=ce(e.gg,t._a[gt],l.year),i=ce(e.w,l.week),null!=e.d?((a=e.d)<0||6<a)&&(s=!0):null!=e.e?(a=e.e+r,(e.e<0||6<e.e)&&(s=!0)):a=r)}i<1||i>jt(n,r,o)?f(t)._overflowWeeks=!0:null!=s?f(t)._overflowWeekday=!0:(o=Bt(n,i,a,r,o),t._a[gt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(i=ce(t._a[gt],n[gt]),(t._dayOfYear>wt(i)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Ht(i,0,t._dayOfYear),t._a[mt]=i.getUTCMonth(),t._a[pt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&0===t._a[xt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Ht:zt).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(f(t).weekdayMismatch=!0)}}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ye=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],be=/^\/?Date\((\-?\d+)/i;function xe(t){var e,n,i,a,r,o,s=t._i,l=ge.exec(s)||me.exec(s);if(l){for(f(t).iso=!0,e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[1])){a=ve[e][0],i=!1!==ve[e][2];break}if(null!=a){if(l[3]){for(e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[3])){r=(l[2]||" ")+ye[e][0];break}if(null==r)return void(t._isValid=!1)}if(i||null==r){if(l[4]){if(!pe.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),Se(t)}else t._isValid=!1}else t._isValid=!1}else t._isValid=!1}var _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ke(t,e,n,i,a,r){a=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),Ft.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&a.push(parseInt(r,10)),a}var we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Me(t){var e,n,i,a,r=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());r?(e=ke(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],i=e,a=t,n&&qt.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(f(a).weekdayMismatch=!0,a._isValid=!1):(t._a=e,t._tzm=(a=r[8],e=r[9],r=r[10],a?we[a]:e?0:60*(((e=parseInt(r,10))-(r=e%100))/100)+r),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0)):t._isValid=!1}function Se(t){if(t._f!==h.ISO_8601)if(t._f!==h.RFC_2822){t._a=[],f(t).empty=!0;for(var e,n,i,a,r,o=""+t._i,s=o.length,l=0,u=j(t._f,t._locale).match(N)||[],d=0;d<u.length;d++)n=u[d],(e=(o.match(ut(n,t))||[])[0])&&(0<(a=o.substr(0,o.indexOf(e))).length&&f(t).unusedInput.push(a),o=o.slice(o.indexOf(e)+e.length),l+=e.length),V[n]?(e?f(t).empty=!1:f(t).unusedTokens.push(n),i=n,r=t,null!=(a=e)&&c(ht,i)&&ht[i](a,r._a,r,i)):t._strict&&!e&&f(t).unusedTokens.push(n);f(t).charsLeftOver=s-l,0<o.length&&f(t).unusedInput.push(o),t._a[vt]<=12&&!0===f(t).bigHour&&0<t._a[vt]&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((n=t.isPM(n))&&e<12&&(e+=12),e=!n&&12===e?0:e):e}(t._locale,t._a[vt],t._meridiem),fe(t),he(t)}else Me(t);else xe(t)}function De(t){var e=t._i,n=t._f;return t._locale=t._locale||de(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new b(he(e)):(i(e)?t._d=e:o(n)?function(t){var e,n,i,a,r;if(0===t._f.length)return f(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)r=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Se(e),g(e)&&(r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,(null==i||r<i)&&(i=r,n=e));u(t,n||e)}(t):n?Se(t):r(n=(e=t)._i)?e._d=new Date(h.now()):i(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(t){var e=be.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,Me(t),!1===t._isValid&&(delete t._isValid,h.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):o(n)?(e._a=a(n.slice(0),function(t){return parseInt(t,10)}),fe(e)):s(n)?function(t){var e;t._d||(e=R(t._i),t._a=a([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t))}(e):l(n)?e._d=new Date(n):h.createFromInputFallback(e),g(t)||(t._d=null),t))}function Ce(t,e,n,i,a){var r={};return!0!==n&&!1!==n||(i=n,n=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(t.hasOwnProperty(e))return;return 1}(t)||o(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=t,r._f=e,r._strict=i,(r=new b(he(De(r=r))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Pe(t,e,n,i){return Ce(t,e,n,i,!1)}h.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var Te=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Oe=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ie(t,e){var n,i;if(!(e=1===e.length&&o(e[0])?e[0]:e).length)return Pe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fe(t){var e=R(t),n=e.year||0,i=e.quarter||0,a=e.month||0,r=e.week||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,t=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===St.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ae.length;++i)if(t[Ae[i]]){if(n)return!1;parseFloat(t[Ae[i]])!==k(t[Ae[i]])&&(n=!0)}return!0}(e),this._milliseconds=+t+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=de(),this._bubble()}function Re(t){return t instanceof Fe}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ye(t,n){B(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+W(~~(t/60),2)+n+W(~~t%60,2)})}Ye("Z",":"),Ye("ZZ",""),lt("Z",rt),lt("ZZ",rt),ct(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ne(rt,t)});var We=/([\+\-]|\d\d)/gi;function Ne(t,e){e=(e||"").match(t);if(null===e)return null;t=((e[e.length-1]||[])+"").match(We)||["-",0,0],e=60*t[1]+k(t[2]);return 0===e?0:"+"===t[0]?e:-e}function ze(t,e){var n;return e._isUTC?(n=e.clone(),e=(x(t)||i(t)?t:Pe(t)).valueOf()-n.valueOf(),n._d.setTime(n._d.valueOf()+e),h.updateOffset(n,!1),n):Pe(t).local()}function He(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ve(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var Be=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ee=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function je(t,e){var n,i=t,a=null;return Re(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(i={},e?i[e]=t:i.milliseconds=t):(a=Be.exec(t))?(n="-"===a[1]?-1:1,i={y:0,d:k(a[pt])*n,h:k(a[vt])*n,m:k(a[yt])*n,s:k(a[bt])*n,ms:k(Le(1e3*a[xt]))*n}):(a=Ee.exec(t))?(n="-"===a[1]?-1:(a[1],1),i={y:Ue(a[2],n),M:Ue(a[3],n),w:Ue(a[4],n),d:Ue(a[5],n),h:Ue(a[6],n),m:Ue(a[7],n),s:Ue(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(n=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=ze(e,t),t.isBefore(e)?n=qe(t,e):((n=qe(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Pe(i.from),Pe(i.to)),(i={}).ms=n.milliseconds,i.M=n.months),i=new Fe(i),Re(t)&&c(t,"_locale")&&(i._locale=t._locale),i}function Ue(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ge(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(D(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ze(this,je(t="string"==typeof t?+t:t,e),i),this}}function Ze(t,e,n,i){var a=e._milliseconds,r=Le(e._days),e=Le(e._months);t.isValid()&&(i=null==i||i,e&&Rt(t,Pt(t,"Month")+e*n),r&&Tt(t,"Date",Pt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&h.updateOffset(t,r||e))}je.fn=Fe.prototype,je.invalid=function(){return je(NaN)};ot=Ge(1,"add"),K=Ge(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),i=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+i)||0}function Je(t){return void 0===t?this._locale._abbr:(null!=(t=de(t))&&(this._locale=t),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";$=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Ke(){return this._locale}function $e(t,e){B(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var r;return null==t?Et(this,i,a).year:(r=jt(t,i,a),function(t,e,n,i,a){a=Bt(t,e,n,i,a),a=Ht(a.year,0,a.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e=r<e?r:e,n,i,a))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$e("gggg","weekYear"),$e("ggggg","weekYear"),$e("GGGG","isoWeekYear"),$e("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",J,q),lt("gg",J,q),lt("GGGG",tt,Z),lt("gggg",tt,Z),lt("GGGGG",et,X),lt("ggggg",et,X),ft(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),ft(["gg","GG"],function(t,e,n,i){e[i]=h.parseTwoDigitYear(t)}),B("Q",0,"Qo","quarter"),A("quarter","Q"),Y("quarter",7),lt("Q",U),ct("Q",function(t,e){e[mt]=3*(k(t)-1)}),B("D",["DD",2],"Do","date"),A("date","D"),Y("date",9),lt("D",J),lt("DD",J,q),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ct(["D","DD"],pt),ct("Do",function(t,e){e[pt]=k(t.match(J)[0])});At=Ct("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),Y("dayOfYear",4),lt("DDD",Q),lt("DDDD",G),ct(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),B("m",["mm",2],0,"minute"),A("minute","m"),Y("minute",14),lt("m",J),lt("mm",J,q),ct(["m","mm"],yt);Ut=Ct("Minutes",!1);B("s",["ss",2],0,"second"),A("second","s"),Y("second",15),lt("s",J),lt("ss",J,q),ct(["s","ss"],bt);var tn,Gt=Ct("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),A("millisecond","ms"),Y("millisecond",16),lt("S",Q,U),lt("SS",Q,q),lt("SSS",Q,G),tn="SSSS";tn.length<=9;tn+="S")lt(tn,nt);function en(t,e){e[xt]=k(1e3*("0."+t))}for(tn="S";tn.length<=9;tn+="S")ct(tn,en);tt=Ct("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");Z=b.prototype;function nn(t){return t}Z.add=ot,Z.calendar=function(t,e){var n=t||Pe(),t=ze(n,this).startOf("day"),t=h.calendarFormat(this,t)||"sameElse",e=e&&(C(e[t])?e[t].call(this,n):e[t]);return this.format(e||this.localeData().calendar(t,this,Pe(n)))},Z.clone=function(){return new b(this)},Z.diff=function(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=ze(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=F(e)){case"year":r=Xe(this,i)/12;break;case"month":r=Xe(this,i);break;case"quarter":r=Xe(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:_(r)},Z.endOf=function(t){return void 0===(t=F(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},Z.format=function(t){return t=t||(this.isUtc()?h.defaultFormatUtc:h.defaultFormat),t=E(this,t),this.localeData().postformat(t)},Z.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Z.fromNow=function(t){return this.from(Pe(),t)},Z.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Z.toNow=function(t){return this.to(Pe(),t)},Z.get=function(t){return C(this[t=F(t)])?this[t]():this},Z.invalidAt=function(){return f(this).overflow},Z.isAfter=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(r(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},Z.isBefore=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(r(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},Z.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},Z.isSame=function(t,e){return t=x(t)?t:Pe(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=F(e||"millisecond"))?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},Z.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Z.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Z.isValid=function(){return g(this)},Z.lang=$,Z.locale=Je,Z.localeData=Ke,Z.max=Oe,Z.min=Te,Z.parsingFlags=function(){return u({},f(this))},Z.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)n.push({unit:e,priority:L[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(C(this[t=F(t)]))return this[t](e);return this},Z.startOf=function(t){switch(t=F(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},Z.subtract=K,Z.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Z.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Z.toDate=function(){return new Date(this.valueOf())},Z.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t;return(t=e?this.clone().utc():this).year()<0||9999<t.year()?E(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",E(t,"Z")):E(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Z.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e=e+'[")]';return this.format(n+t+"-MM-DD[T]HH:mm:ss.SSS"+e)},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Z.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Z.year=Dt,Z.isLeapYear=function(){return Mt(this.year())},Z.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Z.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Z.quarter=Z.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Z.month=Lt,Z.daysInMonth=function(){return Ot(this.year(),this.month())},Z.week=Z.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Z.isoWeek=Z.isoWeeks=function(t){var e=Et(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Z.weeksInYear=function(){var t=this.localeData()._week;return jt(this.year(),t.dow,t.doy)},Z.isoWeeksInYear=function(){return jt(this.year(),1,4)},Z.date=At,Z.day=Z.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},Z.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Z.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e=(e=t,t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?e:e-7)},Z.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Z.hour=Z.hours=ne,Z.minute=Z.minutes=Ut,Z.second=Z.seconds=Gt,Z.millisecond=Z.milliseconds=tt,Z.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=Ne(rt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ze(this,je(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this},Z.utc=function(t){return this.utcOffset(0,t)},Z.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},Z.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ne(at,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},Z.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Z.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Z.isLocal=function(){return!!this.isValid()&&!this._isUTC},Z.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Z.isUtc=Ve,Z.isUTC=Ve,Z.zoneAbbr=function(){return this._isUTC?"UTC":""},Z.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Z.dates=n("dates accessor is deprecated. Use date instead.",At),Z.months=n("months accessor is deprecated. Use month instead",Lt),Z.years=n("years accessor is deprecated. Use year instead",Dt),Z.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),Z.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=De(e))._a?(t=(e._isUTC?d:Pe)(e._a),this._isDSTShifted=this.isValid()&&0<w(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted});et=T.prototype;function an(t,e,n,i){var a=de(),e=d().set(i,e);return a[n](e,t)}function rn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return an(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=an(t,a,n,"month");return i}function on(t,e,n,i){e=("boolean"==typeof t?l(e)&&(n=e,e=void 0):(e=t,t=!1,l(n=e)&&(n=e,e=void 0)),e||"");var a=de(),r=t?a._week.dow:0;if(null!=n)return an(e,(n+r)%7,i,"day");for(var o=[],s=0;s<7;s++)o[s]=an(e,(s+r)%7,i,"day");return o}et.calendar=function(t,e,n){return C(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},et.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},et.invalidDate=function(){return this._invalidDate},et.ordinal=function(t){return this._ordinal.replace("%d",t)},et.preparse=nn,et.postformat=nn,et.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return C(a)?a(t,e,n,i):a.replace(/%d/i,t)},et.pastFuture=function(t,e){return C(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},et.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},et.months=function(t,e){return t?(o(this._months)?this._months:this._months[(this._months.isFormat||It).test(e)?"format":"standalone"])[t.month()]:o(this._months)?this._months:this._months.standalone},et.monthsShort=function(t,e){return t?(o(this._monthsShort)?this._monthsShort:this._monthsShort[It.test(e)?"format":"standalone"])[t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},et.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=St.call(this._shortMonthsParse,t))?a:null:-1!==(a=St.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=St.call(this._shortMonthsParse,t))||-1!==(a=St.call(this._longMonthsParse,t))?a:null:-1!==(a=St.call(this._longMonthsParse,t))||-1!==(a=St.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},et.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},et.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Yt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},et.week=function(t){return Et(t,this._week.dow,this._week.doy).week},et.firstDayOfYear=function(){return this._week.doy},et.firstDayOfWeek=function(){return this._week.dow},et.weekdays=function(t,e){return t?(o(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},et.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},et.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},et.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=St.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=St.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._shortWeekdaysParse,t))||-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=St.call(this._shortWeekdaysParse,t))||-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._minWeekdaysParse,t))?a:null:-1!==(a=St.call(this._minWeekdaysParse,t))||-1!==(a=St.call(this._weekdaysParse,t))||-1!==(a=St.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},et.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},et.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},et.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},et.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},et.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},le("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),h.lang=n("moment.lang is deprecated. Use moment.locale instead.",le),h.langData=n("moment.langData is deprecated. Use moment.localeData instead.",de);var sn=Math.abs;function ln(t,e,n,i){n=je(e,n);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function un(t){return t<0?Math.floor(t):Math.ceil(t)}function dn(t){return 4800*t/146097}function hn(t){return 146097*t/4800}function cn(t){return function(){return this.as(t)}}X=cn("ms"),U=cn("s"),q=cn("m"),Q=cn("h"),G=cn("d"),ot=cn("w"),Oe=cn("M"),Te=cn("y");function fn(t){return function(){return this.isValid()?this._data[t]:NaN}}K=fn("milliseconds"),ne=fn("seconds"),Ut=fn("minutes"),Gt=fn("hours"),tt=fn("days"),At=fn("months"),Dt=fn("years");var gn=Math.round,mn={ss:44,s:45,m:45,h:22,d:26,M:11};function pn(t,e,n){var i=je(t).abs(),a=gn(i.as("s")),r=gn(i.as("m")),o=gn(i.as("h")),s=gn(i.as("d")),l=gn(i.as("M")),i=gn(i.as("y")),i=(a<=mn.ss?["s",a]:a<mn.s&&["ss",a])||r<=1&&["m"]||r<mn.m&&["mm",r]||o<=1&&["h"]||o<mn.h&&["hh",o]||s<=1&&["d"]||s<mn.d&&["dd",s]||l<=1&&["M"]||l<mn.M&&["MM",l]||i<=1&&["y"]||["yy",i];return i[2]=e,i[3]=0<+t,i[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,i)}var vn=Math.abs;function yn(t){return(0<t)-(t<0)||+t}function bn(){if(!this.isValid())return this.localeData().invalidDate();var t=vn(this._milliseconds)/1e3,e=vn(this._days),n=vn(this._months),i=_(t/60),a=_(i/60);t%=60,i%=60;var r=_(n/12),o=n%=12,s=e,l=a,u=i,n=t?t.toFixed(3).replace(/\.?0+$/,""):"",e=this.asSeconds();if(!e)return"P0D";a=e<0?"-":"",i=yn(this._months)!==yn(e)?"-":"",t=yn(this._days)!==yn(e)?"-":"",e=yn(this._milliseconds)!==yn(e)?"-":"";return a+"P"+(r?i+r+"Y":"")+(o?i+o+"M":"")+(s?t+s+"D":"")+(l||u||n?"T":"")+(l?e+l+"H":"")+(u?e+u+"M":"")+(n?e+n+"S":"")}et=Fe.prototype;return et.isValid=function(){return this._isValid},et.abs=function(){var t=this._data;return this._milliseconds=sn(this._milliseconds),this._days=sn(this._days),this._months=sn(this._months),t.milliseconds=sn(t.milliseconds),t.seconds=sn(t.seconds),t.minutes=sn(t.minutes),t.hours=sn(t.hours),t.months=sn(t.months),t.years=sn(t.years),this},et.add=function(t,e){return ln(this,t,e,1)},et.subtract=function(t,e){return ln(this,t,e,-1)},et.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=F(t))||"year"===t)return e=this._days+i/864e5,n=this._months+dn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(hn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},et.asMilliseconds=X,et.asSeconds=U,et.asMinutes=q,et.asHours=Q,et.asDays=G,et.asWeeks=ot,et.asMonths=Oe,et.asYears=Te,et.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},et._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*un(hn(n)+e),n=e=0),i.milliseconds=t%1e3,t=_(t/1e3),i.seconds=t%60,t=_(t/60),i.minutes=t%60,t=_(t/60),i.hours=t%24,e+=_(t/24),n+=t=_(dn(e)),e-=un(hn(t)),t=_(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},et.clone=function(){return je(this)},et.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},et.milliseconds=K,et.seconds=ne,et.minutes=Ut,et.hours=Gt,et.days=tt,et.weeks=function(){return _(this.days()/7)},et.months=At,et.years=Dt,et.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},et.toISOString=bn,et.toString=bn,et.toJSON=bn,et.locale=Je,et.localeData=Ke,et.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),et.lang=$,B("X",0,0,"unix"),B("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),ct("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ct("x",function(t,e,n){n._d=new Date(k(t))}),h.version="2.20.1",t=Pe,h.fn=Z,h.min=function(){return Ie("isBefore",[].slice.call(arguments,0))},h.max=function(){return Ie("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=d,h.unix=function(t){return Pe(1e3*t)},h.months=function(t,e){return rn(t,e,"months")},h.isDate=i,h.locale=le,h.invalid=m,h.duration=je,h.isMoment=x,h.weekdays=function(t,e,n){return on(t,e,n,"weekdays")},h.parseZone=function(){return Pe.apply(null,arguments).parseZone()},h.localeData=de,h.isDuration=Re,h.monthsShort=function(t,e){return rn(t,e,"monthsShort")},h.weekdaysMin=function(t,e,n){return on(t,e,n,"weekdaysMin")},h.defineLocale=ue,h.updateLocale=function(t,e){var n,i;return null!=e?(n=ie,(e=new T(e=P(n=null!=(i=se(t))?i._config:n,e))).parentLocale=ae[t],ae[t]=e,le(t)):null!=ae[t]&&(null!=ae[t].parentLocale?ae[t]=ae[t].parentLocale:null!=ae[t]&&delete ae[t]),ae[t]},h.locales=function(){return O(ae)},h.weekdaysShort=function(t,e,n){return on(t,e,n,"weekdaysShort")},h.normalizeUnits=F,h.relativeTimeRounding=function(t){return void 0===t?gn:"function"==typeof t&&(gn=t,!0)},h.relativeTimeThreshold=function(t,e){return void 0!==mn[t]&&(void 0===e?mn[t]:(mn[t]=e,"s"===t&&(mn.ss=e-1),!0))},h.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},h.prototype=Z,h.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},h},"object"==typeof t&&void 0!==_n?_n.exports=n():e.moment=n()},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.layouts=t(30),i.platform=t(48),i.plugins=t(31),i.Ticks=t(34),t(22)(i),t(23)(i),t(24)(i),t(33)(i),t(32)(i),t(35)(i),t(55)(i),t(53)(i),t(54)(i),t(56)(i),t(57)(i),t(58)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var a,r=t(49);for(a in r)r.hasOwnProperty(a)&&i.plugins.register(r[a]);i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.Legend=r.legend._element,i.Title=r.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(n){n.Bar=function(t,e){return e.type="bar",new n(t,e)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(n){n.Bubble=function(t,e){return e.type="bubble",new n(t,e)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(n){n.Doughnut=function(t,e){return e.type="doughnut",new n(t,e)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(n){n.Line=function(t,e){return e.type="line",new n(t,e)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(n){n.PolarArea=function(t,e){return e.type="polarArea",new n(t,e)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(n){n.Radar=function(t,e){return e.type="radar",new n(t,e)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(n){n.Scatter=function(t,e){return e.type="scatter",new n(t,e)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),a=t(40),c=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return 0<t.length&&(t[0].yLabel?n=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getMeta(),o=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(r.xAxisID),t._yScale=i.getScaleForId(r.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:o.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||c.valueAtIndexOrDefault(o.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||c.valueAtIndexOrDefault(o.borderColor,e,l.borderColor),borderWidth:s.borderWidth||c.valueAtIndexOrDefault(o.borderWidth,e,l.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,a=t._model,r=i.getValueScale(),o=r.getBasePixel(),s=r.isHorizontal(),t=i._ruler||i.getRuler(),r=i.calculateBarValuePixels(i.index,e),t=i.calculateBarIndexPixels(i.index,e,t);a.horizontal=s,a.base=n?o:r.base,a.x=s?n?o:r.head:t.center,a.y=s?t.center:n?o:r.head,a.height=s?t.size:void 0,a.width=s?void 0:t.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){for(var e,n=this.chart,i=this.getIndexScale().options.stacked,a=void 0===t?n.data.datasets.length:t+1,r=[],o=0;o<a;++o)(e=n.getDatasetMeta(o)).bar&&n.isDatasetVisible(o)&&(!1===i||!0===i&&-1===r.indexOf(e.stack)||void 0===i&&(void 0===e.stack||-1===r.indexOf(e.stack)))&&r.push(e.stack);return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=void 0!==e?t.indexOf(e):-1;return-1===e?t.length-1:e},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),n=this.index,i=t.isHorizontal(),a=i?t.left:t.top,i=a+(i?t.width:t.height),r=[],o=0,s=this.getMeta().data.length;o<s;++o)r.push(t.getPixelForValue(null,o,n));return{min:c.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,r=t.getTicks(),o=1,s=e.length;o<s;++o)a=Math.min(a,e[o]-e[o-1]);for(o=0,s=r.length;o<s;++o)i=t.getPixelForTick(o),a=0<o?Math.min(a,i-n):a,n=i;return a}(t,r):-1,pixels:r,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,r=this.chart,o=this.getMeta(),s=this.getValueScale(),l=r.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=o.stack,c=0;if(d||void 0===d&&void 0!==h)for(n=0;n<t;++n)(i=r.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&r.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),(u<0&&i<0||0<=u&&0<i)&&(c+=i));return a=s.getPixelForValue(c),{size:d=((o=s.getPixelForValue(c+u))-a)/2,base:a,head:o,center:o+d/2}},calculateBarIndexPixels:function(t,e,n){var i,a,r,o,s,l,u,d=n.scale.options,h="flex"===d.barThickness?(i=e,r=d,o=(u=(a=n).pixels)[i],s=0<i?u[i-1]:null,l=i<u.length-1?u[i+1]:null,u=r.categoryPercentage,i=o-(o-(s=null===s?o-(null===l?a.end-o:l-o):s))/2*u,{chunk:((l=null===l?o+o-s:l)-s)/2*u/a.stackCount,ratio:r.barPercentage,start:i}):(a=e,r=n,e=(i=d).barThickness,n=r.stackCount,a=r.pixels[a],e=c.isNullOrUndef(e)?(h=r.min*i.categoryPercentage,i.barPercentage):(h=e*n,1),{chunk:h/n,ratio:e,start:a-h/2}),t=this.getStackIndex(t,this.getMeta().stack),t=h.start+h.chunk*t+h.chunk/2,h=Math.min(c.valueOrDefault(d.maxBarThickness,1/0),h.chunk*h.ratio);return{base:t-h/2,head:t+h/2,center:t,size:h}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,r=0;for(c.canvas.clipArea(t.ctx,t.chartArea);r<a;++r)isNaN(e.getRightValue(i.data[r]))||n[r].draw();c.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.backgroundColor=i.hoverBackgroundColor||c.valueAtIndexOrDefault(e.hoverBackgroundColor,n,c.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||c.valueAtIndexOrDefault(e.hoverBorderColor,n,c.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||c.valueAtIndexOrDefault(e.hoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model,t=this.chart.options.elements.rectangle;a.backgroundColor=i.backgroundColor||c.valueAtIndexOrDefault(e.backgroundColor,n,t.backgroundColor),a.borderColor=i.borderColor||c.valueAtIndexOrDefault(e.borderColor,n,t.borderColor),a.borderWidth=i.borderWidth||c.valueAtIndexOrDefault(e.borderWidth,n,t.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:a.Point,update:function(n){var i=this,t=i.getMeta().data;f.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=t.custom||{},o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),l=i._resolveElementOptions(t,e),u=i.getDataset().data[e],a=i.index,i=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,a),u=n?s.getBasePixel():s.getPixelForValue(u,e,a);t._xScale=o,t._yScale=s,t._options=l,t._datasetIndex=a,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:r.skip||isNaN(i)||isNaN(u),x:i,y:u},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],r=t.custom||{},o=i.options.elements.point,s=f.options.resolve,t=a.data[e],l={},u={chart:i,dataIndex:e,dataset:a,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([r[n],a[n],o[n]],u,e);return l.radius=s([r.radius,t?t.r:void 0,a.radius,o.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var t=t.data,n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],r=a&&a.custom||{},o=y.valueAtIndexOrDefault,a=s.options.elements.arc;return{text:t,fillStyle:r.backgroundColor||o(i.backgroundColor,e,a.backgroundColor),strokeStyle:r.borderColor||o(i.borderColor,e,a.borderColor),lineWidth:r.borderWidth||o(i.borderWidth,e,a.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i]&&(n.data[i].hidden=!n.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],t=": "+e.datasets[t.datasetIndex].data[t.index];return y.isArray(n)?(n=n.slice())[0]+=t:n+=t,n}}}}),i._set("pie",y.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(n){var t,e,i,a,r,o=this,s=o.chart,l=s.chartArea,u=s.options,d=u.elements.arc,h=l.right-l.left-d.borderWidth,c=l.bottom-l.top-d.borderWidth,f=Math.min(h,c),g={x:0,y:0},m=o.getMeta(),p=u.cutoutPercentage,v=u.circumference;v<2*Math.PI&&(e=u.rotation%(2*Math.PI),r=(e+=2*Math.PI*(e>=Math.PI?-1:e<-Math.PI?1:0))+v,i=Math.cos(e),t=Math.sin(e),a=Math.cos(r),l=Math.sin(r),d=e<=0&&0<=r||e<=2*Math.PI&&2*Math.PI<=r,u=e<=.5*Math.PI&&.5*Math.PI<=r||e<=2.5*Math.PI&&2.5*Math.PI<=r,v=e<=-Math.PI&&-Math.PI<=r||e<=Math.PI&&Math.PI<=r,e=e<=.5*-Math.PI&&.5*-Math.PI<=r||e<=1.5*Math.PI&&1.5*Math.PI<=r,r=p/100,v=v?-1:Math.min(i*(i<0?1:r),a*(a<0?1:r)),e=e?-1:Math.min(t*(t<0?1:r),l*(l<0?1:r)),a=.5*((i=d?1:Math.max(i*(0<i?1:r),a*(0<a?1:r)))-v),r=.5*((l=u?1:Math.max(t*(0<t?1:r),l*(0<l?1:r)))-e),f=Math.min(h/a,c/r),g={x:-.5*(i+v),y:-.5*(l+e)}),s.borderWidth=o.getMaxBorderWidth(m.data),s.outerRadius=Math.max((f-s.borderWidth)/2,0),s.innerRadius=Math.max(p?s.outerRadius/100*p:0,0),s.radiusLength=(s.outerRadius-s.innerRadius)/s.getVisibleDatasetCount(),s.offsetX=g.x*s.outerRadius,s.offsetY=g.y*s.outerRadius,m.total=o.calculateTotal(),o.outerRadius=s.outerRadius-s.radiusLength*o.getRingIndex(o.index),o.innerRadius=Math.max(o.outerRadius-s.radiusLength,0),y.each(m.data,function(t,e){o.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d=o.rotation,h=o.rotation,c=i.getDataset(),f=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(c.data[e])*(o.circumference/(2*Math.PI)),g=n&&s.animateScale?0:i.innerRadius,m=n&&s.animateScale?0:i.outerRadius,r=y.valueAtIndexOrDefault;y.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:u+a.offsetY,startAngle:d,endAngle:h,circumference:f,outerRadius:m,innerRadius:g,label:r(c.label,e,a.data.labels[e])}});a=t._model;this.removeHoverStyle(t),n&&s.animateRotate||(a.startAngle=0===e?o.rotation:i.getMeta().data[e-1]._model.endAngle,a.endAngle=a.startAngle+a.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return y.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n=0,i=this.index,a=t.length,r=0;r<a;r++)n=(n=n<(e=t[r]._model?t[r]._model.borderWidth:0)?e:n)<(e=t[r]._chart?t[r]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function c(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.options,l=s.elements.line,u=i.getScaleForId(a.yAxisID),d=i.getDataset(),h=c(d,s);for(h&&(a=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=u,r._datasetIndex=i.index,r._children=o,r._model={spanGaps:d.spanGaps||s.spanGaps,tension:a.tension||f.valueOrDefault(d.lineTension,l.tension),backgroundColor:a.backgroundColor||d.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth||d.borderWidth||l.borderWidth,borderColor:a.borderColor||d.borderColor||l.borderColor,borderCapStyle:a.borderCapStyle||d.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash||d.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset||d.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle||d.borderJoinStyle||l.borderJoinStyle,fill:a.fill||(void 0!==d.fill?d:l).fill,steppedLine:a.steppedLine||f.valueOrDefault(d.steppedLine,l.stepped),cubicInterpolationMode:a.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,l.cubicInterpolationMode)},r.pivot()),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(h&&0!==r._model.tension&&i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),t=t.custom||{};return t.backgroundColor?n=t.backgroundColor:i.pointBackgroundColor?n=f.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),t=t.custom||{};return t.borderColor?n=t.borderColor:i.pointBorderColor?n=f.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(i.pointBorderWidth)||f.isArray(i.pointBorderWidth)?n=f.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=t.borderWidth,n},updateElement:function(t,e,n){var i,a=this,r=a.getMeta(),o=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(r.yAxisID),h=a.getScaleForId(r.xAxisID),c=a.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(s.pointHitRadius=s.hitRadius),i=h.getPixelForValue("object"==typeof u?u:NaN,e,l),u=n?d.getBasePixel():a.calculatePointY(u,e,l),t._xScale=h,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:i,y:u,skip:o.skip||isNaN(i)||isNaN(u),radius:o.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:o.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:r.dataset._model?r.dataset._model.tension:0,steppedLine:!!r.dataset._model&&r.dataset._model.steppedLine,hitRadius:o.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,r=this.getMeta(),o=this.getScaleForId(r.yAxisID),s=0,l=0;if(o.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===o.id&&a.isDatasetVisible(i)&&((d=Number(o.getRightValue(d.data[e])))<0?l+=d||0:s+=d||0)}r=Number(o.getRightValue(t));return r<0?o.getPixelForValue(l+r):o.getPixelForValue(s+r)}return o.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),r=this.chart.chartArea,o=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(o=o.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(o);else for(t=0,e=o.length;t<e;++t)n=o[t]._model,i=f.splineCurve(f.previousItem(o,t)._model,n,f.nextItem(o,t)._model,a.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=o.length;t<e;++t)(n=o[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,r.left,r.right),n.controlPointPreviousY=s(n.controlPointPreviousY,r.top,r.bottom),n.controlPointNextX=s(n.controlPointNextX,r.left,r.right),n.controlPointNextY=s(n.controlPointNextY,r.top,r.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),n=e.data||[],i=t.chartArea,a=n.length,r=0;for(f.canvas.clipArea(t.ctx,i),c(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);r<a;++r)n[r].draw(i)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},r=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),r.radius=a.radius||f.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),r.backgroundColor=e.getPointBackgroundColor(t,i),r.borderColor=e.getPointBorderColor(t,i),r.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var t=t.data,n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},r=y.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i].hidden=!n.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,update:function(n){var i=this,t=i.chart,e=t.chartArea,a=i.getMeta(),r=t.options,o=r.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-o.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),i.outerRadius=t.outerRadius-t.radiusLength*i.index,i.innerRadius=i.outerRadius-t.radiusLength,a.count=i.countVisibleElements(),y.each(a.data,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){for(var i=this,a=i.chart,r=i.getDataset(),o=a.options,s=o.animation,l=a.scale,u=a.data.labels,d=i.calculateCircumference(r.data[e]),h=l.xCenter,c=l.yCenter,f=0,g=i.getMeta(),m=0;m<e;++m)isNaN(r.data[m])||g.data[m].hidden||++f;var p=o.startAngle,v=t.hidden?0:l.getDistanceFromCenterForValue(r.data[e]),a=p+d*f,o=a+(t.hidden?0:d),d=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[e]);y.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:h,y:c,innerRadius:0,outerRadius:n?d:v,startAngle:n&&s.animateRotate?p:a,endAngle:n&&s.animateRotate?p:o,label:y.valueAtIndexOrDefault(u,e,u[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return y.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),u=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:u.noop,update:function(n){var i=this,t=i.getMeta(),e=t.dataset,a=t.data,r=e.custom||{},o=i.getDataset(),s=i.chart.options.elements.line,e=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:e,_children:a,_loop:!0,_model:{tension:r.tension||u.valueOrDefault(o.lineTension,s.tension),backgroundColor:r.backgroundColor||o.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth||o.borderWidth||s.borderWidth,borderColor:r.borderColor||o.borderColor||s.borderColor,fill:r.fill||(void 0!==o.fill?o:s).fill,borderCapStyle:r.borderCapStyle||o.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash||o.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset||o.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle||o.borderJoinStyle||s.borderJoinStyle}}),t.dataset.pivot(),u.each(a,function(t,e){i.updateElement(t,e,n)},i),i.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},r=i.getDataset(),o=i.chart.scale,s=i.chart.options.elements.point,l=o.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:o,_model:{x:n?o.xCenter:l.x,y:n?o.yCenter:l.y,tension:a.tension||u.valueOrDefault(r.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(r.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(r.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(r.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(r.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(r.pointStyle,e,s.pointStyle),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(r.pointHitRadius,e,s.hitRadius)}}),t._model.skip=a.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var i=this.chart.chartArea,a=this.getMeta();u.each(a.data,function(t,e){var n=t._model,e=u.splineCurve(u.previousItem(a.data,e,!0)._model,n,u.nextItem(a.data,e,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(e.previous.x,i.right),i.left),n.controlPointPreviousY=Math.max(Math.min(e.previous.y,i.bottom),i.top),n.controlPointNextX=Math.max(Math.min(e.next.x,i.right),i.left),n.controlPointNextY=Math.max(Math.min(e.next.y,i.bottom),i.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model;t.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model,t=this.chart.options.elements.point;a.radius=n.radius||u.valueAtIndexOrDefault(e.pointRadius,i,t.radius),a.backgroundColor=n.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,i,t.backgroundColor),a.borderColor=n.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,i,t.borderColor),a.borderWidth=n.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,i,t.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t)return void(o[a]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;1<t.dropFrames&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);n=Date.now();t.dropFrames+=(n-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a<i.length;)n=(e=i[a]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[n,e],n),r.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),h=t(45),i=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(u){function d(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},h.extend(u.prototype,{construct:function(t,e){var n=this;(a=(r=(r=e)||{}).data=r.data||{}).datasets=a.datasets||[],a.labels=a.labels||[],r.options=h.configMerge(o.global,o[r.type],r.options||{}),e=r;var i=s.acquireContext(t,e),a=i&&i.canvas,r=a&&a.height,t=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=t,n.height=r,n.aspectRatio=r?t/r:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,u.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?r/a:h.getMaximumHeight(i)));e.width===r&&e.height===a||(i.width=e.width=r,i.height=e.height=a,i.style.width=r+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t||(a={width:r,height:a},l.notify(e,"resize",[a]),e.options.onResize&&e.options.onResize(e,a),e.stop(),e.update(e.options.responsiveAnimationDuration)))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype);d(e.position)!==d(t.dposition)&&(e.position=t.dposition),l[n]=!0;var a=null;if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=o.ctx,a.chart=o;else{var r=u.scaleService.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(o.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),o.scales=s,u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],r=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=u.controllers[n.type];if(void 0===t)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),r.push(n.controller)}},i),r},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(u.defaults.global,u.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),l._invalidate(i),!1!==l.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e=this,n=(t=!t||"object"!=typeof t?{duration:t,lazy:arguments[1]}:t).duration,i=t.lazy;if(!1!==l.notify(e,"beforeRender")){var a=e.options.animation,r=function(t){l.notify(e,"afterRender"),h.callback(a&&a.onComplete,[t],e)};return a&&(void 0!==n&&0!==n||void 0===n&&0!==a.duration)?(t=new u.Animation({numSteps:(n||a.duration)/16.66,easing:t.easing||a.easing,render:function(t,e){var n=h.easing.effects[e.easing],i=e.currentStep,e=i/e.numSteps;t.draw(n(e),e,i)},onAnimationProgress:a.onProgress,onAnimationComplete:r}),u.animationService.addAnimation(e,t,n,i)):(e.draw(),r(new u.Animation({numSteps:0,chart:e}))),e}},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),l.notify(this,"afterTooltipDraw",[t]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){e=i.modes[e];return"function"==typeof e?e(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],t=n._meta&&n._meta[e];t&&(t.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),h.canvas.clear(n),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete u.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new u.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){s.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},s.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,h.each(t,function(t,e){s.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",r=0,o=t.length;r<o;++r)(i=t[r])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==l.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),l.notify(e,"afterEvent",[t]);t=e._bufferedRequest;return t?e.render(t):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},a=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,a.mode,a),h.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),e=!h.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),u.Controller=u}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function r(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(i.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],n=t.data,i=0,a=e.length;i<a;++i)n[i]=n[i]||this.createMetaData(i);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var a,t=this,e=t.getDataset(),n=e.data||(e.data=[]);t._data!==n&&(t._data&&r(t._data,t),e=t,(a=n)._chartjs?a._chartjs.listeners.push(e):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),i.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return o.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),t._data=n),t.resyncElements()},update:o.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},r=o.valueAtIndexOrDefault,t=t._model;t.backgroundColor=a.backgroundColor||r(n.backgroundColor,i,e.backgroundColor),t.borderColor=a.borderColor||r(n.borderColor,i,e.borderColor),t.borderWidth=a.borderWidth||r(n.borderWidth,i,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=o.valueAtIndexOrDefault,r=o.getHoverColor,t=t._model;t.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,r(t.backgroundColor)),t.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,r(t.borderColor)),t.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,t.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,e=e.length;e<n?t.data.splice(e,n-e):n<e&&this.insertElements(n,e-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=o.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var f=t(2),i=t(45);t=function(t){i.extend(this,t),this.initialize.apply(this,arguments)};i.extend(t.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;return n&&1!==t?(a=a||(e._view={}),function(t,e,n,i){for(var a,r,o,s,l,u,d=Object.keys(n),h=0,c=d.length;h<c;++h)if(o=n[a=d[h]],e.hasOwnProperty(a)||(e[a]=o),(l=e[a])!==o&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=l),(s=typeof o)==typeof(r=t[a]))if("string"==s){if(l=f(r),l.valid&&(u=f(o)).valid){e[a]=u.mix(l,i).rgbString();continue}}else if("number"==s&&isFinite(r)&&isFinite(o)){e[a]=r+(o-r)*i;continue}e[a]=o}}(i=i||(e._start={}),a,n,t)):(e._view=n,e._start=null),e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),t.extend=i.inherits,e.exports=t},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),a=t(25),c=t(45);e.exports=function(l){function u(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function d(t){return null!=t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=t.parentNode,r=i.getComputedStyle(t)[e],o=i.getComputedStyle(a)[e],s=d(r),i=d(o),e=Number.POSITIVE_INFINITY;return s||i?Math.min(s?u(r,t,n):e,i?u(o,a,n):e):"none"}c.configMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){var a=e[t]||{},r=n[t];"scales"===t?e[t]=c.scaleMerge(a,r):"scale"===t?e[t]=c.merge(a,[l.scaleService.getScaleDefaults(r.type),r]):c._merger(t,e,n,i)}})},c.scaleMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)o=n[t][a],r=c.valueOrDefault(o.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?c.merge(e[t][a],[l.scaleService.getScaleDefaults(r),o]):c.merge(e[t][a],o)}else c._merger(t,e,n,i)}})},c.where=function(t,e){if(c.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return c.each(t,function(t){e(t)&&n.push(t)}),n},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},c.findNextWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?-1:n)+1;i<t.length;i++){var a=t[i];if(e(a))return a}},c.findPreviousWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?t.length:n)-1;0<=i;i--){var a=t[i];if(e(a))return a}},c.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},c.almostEquals=function(t,e,n){return Math.abs(t-e)<n},c.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},c.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},c.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},c.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},c.toRadians=function(t){return t*(Math.PI/180)},c.toDegrees=function(t){return t*(180/Math.PI)},c.getAngleFromPoint=function(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e),n=Math.atan2(e,n);return n<-.5*Math.PI&&(n+=2*Math.PI),{angle:n,distance:t}},c.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.aliasPixel=function(t){return t%2==0?0:.5},c.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,t=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),e=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),n=t/(t+e),e=e/(t+e),n=i*(n=isNaN(n)?0:n),e=i*(e=isNaN(e)?0:e);return{previous:{x:r.x-n*(o.x-a.x),y:r.y-n*(o.y-a.y)},next:{x:r.x+e*(o.x-a.x),y:r.y+e*(o.y-a.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,r,o,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,(i=h<d-1?u[h+1]:null)&&!i.model.skip&&(e=i.model.x-a.model.x,a.deltaK=0!=e?(i.model.y-a.model.y)/e:0),!n||n.model.skip?a.mK=a.deltaK:!i||i.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(h=0;h<d-1;++h)a=u[h],i=u[h+1],a.model.skip||i.model.skip||(c.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=i.mK=0:(r=a.mK/a.deltaK,o=i.mK/a.deltaK,(s=Math.pow(r,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(s),a.mK=r*s*a.deltaK,i.mK=o*s*a.deltaK)));for(h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,i=h<d-1?u[h+1]:null,n&&!n.model.skip&&(l=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-l,a.model.controlPointPreviousY=a.model.y-l*a.mK),i&&!i.model.skip&&(l=(i.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+l,a.model.controlPointNextY=a.model.y+l*a.mK))},c.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),t=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return t*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,i=t.currentTarget||t.srcElement,a=i.getBoundingClientRect(),r=n.touches,o=r&&0<r.length?(l=r[0].clientX,r[0].clientY):(l=n.clientX,n.clientY),s=parseFloat(c.getStyle(i,"padding-left")),t=parseFloat(c.getStyle(i,"padding-top")),r=parseFloat(c.getStyle(i,"padding-right")),n=parseFloat(c.getStyle(i,"padding-bottom")),r=a.right-a.left-s-r,n=a.bottom-a.top-t-n,l=Math.round((l-a.left-s)/r*i.width/e.currentDevicePixelRatio);return{x:l,y:o=Math.round((o-a.top-t)/n*i.height/e.currentDevicePixelRatio)}},c.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},c.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},c.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(c.getStyle(e,"padding-left"),10),i=parseInt(c.getStyle(e,"padding-right"),10),i=e.clientWidth-n-i,t=c.getConstraintWidth(t);return isNaN(t)?i:Math.min(i,t)},c.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(c.getStyle(e,"padding-top"),10),i=parseInt(c.getStyle(e,"padding-bottom"),10),i=e.clientHeight-n-i,t=c.getConstraintHeight(t);return isNaN(t)?i:Math.min(i,t)},c.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},c.retinaScale=function(t,e){var n,i,a=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;1!==a&&(n=t.canvas,i=t.height,e=t.width,n.height=i*a,n.width=e*a,t.ctx.scale(a,a),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=e+"px"))},c.fontString=function(t,e,n){return e+" "+t+"px "+n},c.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(a=i.data={},r=i.garbageCollect=[],i.font=t),e.font=t;var o=0;c.each(n,function(t){null!=t&&!0!==c.isArray(t)?o=c.measureText(e,a,r,o,t):c.isArray(t)&&c.each(t,function(t){null==t||c.isArray(t)||(o=c.measureText(e,a,r,o,t))})});var s=r.length/2;if(s>n.length){for(var l=0;l<s;l++)delete a[r[l]];r.splice(0,s)}return o},c.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),i=i<r?r:i},c.numberOfLabelLines=function(t){var e=1;return c.each(t,function(t){c.isArray(t)&&t.length>e&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function o(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,r=0,o=t.data.datasets.length;r<o;++r)if(t.isDatasetVisible(r))for(i=0,a=(n=t.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function l(t,e){var n=[];return s(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function u(t,n,i,a){var r=Number.POSITIVE_INFINITY,o=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<r?(o=[t],r=e):e===r&&o.push(t))}),o}function d(t){var i=-1!==t.indexOf("x"),a=-1!==t.indexOf("y");return function(t,e){var n=i?Math.abs(t.x-e.x):0,e=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(e,2))}}function a(n,t,e){var i=o(t,n);e.axis=e.axis||"x";var t=d(e.axis),a=e.intersect?l(n,i):u(n,i,!1,t),r=[];return a.length?(n.data.datasets.forEach(function(t,e){!n.isDatasetVisible(e)||(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&r.push(e)}),r):[]}e.exports={modes:{single:function(t,e){var n=o(e,t),i=[];return s(t,function(t){return t.inRange(n.x,n.y)&&(i.push(t),i)}),i.slice(0,1)},label:a,index:a,dataset:function(t,e,n){var i=o(e,t);n.axis=n.axis||"xy";e=d(n.axis),e=n.intersect?l(t,i):u(t,i,!1,e);return e=0<e.length?t.getDatasetMeta(e[0]._datasetIndex).data:e},"x-axis":function(t,e){return a(t,e,{intersect:!1})},point:function(t,e){return l(t,o(e,t))},nearest:function(t,e,n){var i=o(e,t);n.axis=n.axis||"xy";e=d(n.axis),e=u(t,i,n.intersect,e);return 1<e.length&&e.sort(function(t,e){var n=t.getArea()-e.getArea();return n=0===n?t._datasetIndex-e._datasetIndex:n}),e.slice(0,1)},x:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a},y:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,n){"use strict";var R=t(45);function L(t,e){return R.where(t,function(t){return t.position===e})}function Y(t,i){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=i?e:t,e=i?t:e;return n.weight===e.weight?n._tmpIndex_-e._tmpIndex_:n.weight-e.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)i=a[o],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(e,n,t){var i,a,r,o,s,l,u,d,h,c,f,g,m,p,v,y,b,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,y),right:Math.max(w,b),top:0,bottom:0},e.update(e.fullWidth?h:m,c/2,t)):e.update(n.minSize.width,p))}function F(t){t.isHorizontal()?(t.left=t.fullWidth?i:k,t.right=t.fullWidth?n-a:k+m,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=O,t.right=O+t.width,t.top=M,t.bottom=M+p,O=t.right)}e&&(d=e.options.layout||{},D=R.options.toPadding(d.padding),i=D.left,a=D.right,r=D.top,C=D.bottom,o=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),Y(o,!0),Y(s,!1),Y(l,!0),Y(u,!1),D=(c=t-r-C)/2,f=(n-(h=n-i-a)/2)/(o.length+s.length),g=(t-D)/(l.length+u.length),m=h,p=c,v=[],R.each(o.concat(s,l,u),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?h:m,g),p-=e.height):(e=t.update(f,p),m-=e.width),v.push({horizontal:n,minSize:e,box:t})}),_=x=b=y=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),y=Math.max(y,t.left),b=Math.max(b,t.right))}),R.each(o.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=r,S=C,R.each(o.concat(s),A),R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l.concat(u),A),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),R.each(o.concat(s),function(e){var t=R.findNextWhere(v,function(t){return t.box===e}),n={left:0,right:0,top:M,bottom:S};t&&e.update(t.minSize.width,p,n)}),k=i,w=a,M=r,S=C,R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),D=Math.max(y-k,0),k+=D,w+=Math.max(b-w,0),C=Math.max(x-M,0),M+=C,S+=Math.max(_-S,0),P=t-M-S,(T=n-k-w)===m&&P===p||(R.each(o,function(t){t.height=P}),R.each(s,function(t){t.height=P}),R.each(l,function(t){t.fullWidth||(t.width=T)}),R.each(u,function(t){t.fullWidth||(t.width=T)}),p=P,m=T),O=i+D,I=r+C,R.each(o.concat(l),F),O+=m,I+=p,R.each(s,F),R.each(u,F),e.chartArea={left:k,top:M,right:k+m,bottom:M+p},R.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,p)}))}}},{45:45}],31:[function(t,e,n){"use strict";var o=t(25),s=t(45);o._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){for(var i,a,r,o,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if(i=s[u],a=i.plugin,o=a[e],"function"==typeof o&&((r=[t].concat(n||[])).push(i.options),!1===o.apply(a,r)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],t=t&&t.config||{},r=t.options&&t.options.plugins||{};return this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=r[e])&&(!0===n&&(n=s.clone(o.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}})))}),e.descriptors=a,e.id=this._cacheId,a},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var p=t(25),i=t(26),N=t(45),t=t(34);function f(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].label);return e}function z(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}p._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=function(t){function c(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function g(t){var e=N.valueOrDefault,n=p.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),n=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:n,font:N.fontString(i,a,n)}}function m(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,p.global.defaultFontSize))}t.Scale=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,o,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=N.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),r=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=r).length;i<a;++i)o=r[i],(l=s[i])?l.label=o:s.push(l={label:o,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){N.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){N.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=f(t._ticks),a=g(n);e.font=a.font;var r=n.minRotation||0;if(i.length&&t.options.display&&t.isHorizontal())for(var o=N.longestText(e,a.font,i,t.longestTextCache),s=o,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&r<n.maxRotation;){var u=N.toRadians(r),d=Math.cos(u);if(Math.sin(u)*o>t.maxHeight){r--;break}r++,s=d*o}t.labelRotation=r},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=f(e._ticks),a=e.options,r=a.ticks,o=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=g(r),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,o.display&&l&&(t=m(o)+N.options.toPadding(o.padding).height,u?n.height+=t:n.width+=t),r.display&&l&&(s=N.longestText(e.ctx,d.font,i,e.longestTextCache),h=N.numberOfLabelLines(i),o=.5*d.size,t=e.options.ticks.padding,u?(e.longestLabelWidth=s,l=N.toRadians(e.labelRotation),u=Math.cos(l),h=Math.sin(l)*s+d.size*h+o*(h-1)+o,n.height=Math.min(e.maxHeight,n.height+h+t),e.ctx.font=d.font,h=c(e.ctx,i[0],d.font),i=c(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?u*h+3:u*o+3,e.paddingRight="bottom"===a.position?u*o+3:u*i+3):(e.paddingLeft=h/2+3,e.paddingRight=i/2+3)):(r.mirror?s=0:s+=t+o,n.width=Math.min(e.maxWidth,n.width+s),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=i*t+e.paddingLeft;n&&(a+=i/2);a=e.left+Math.round(a);return a+=e.isFullWidth()?e.margins.left:0}a=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(a/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+Math.round(n);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.isHorizontal(),s=r.options.ticks.minor,l=t.length,u=N.toRadians(r.labelRotation),u=Math.cos(u),u=r.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),o&&(e=!1,(u+s.autoSkipPadding)*l>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),a&&a<l&&(e=Math.max(e,Math.floor(l/a)))),n=0;n<l;n++)i=t[n],(1<e&&0<n%e||n%e==0&&l<=n+e)&&n!==l-1&&delete i.label,d.push(i);return d},draw:function(_){var o,k,w,M,S,D,C,s,l,u,d,P,t,T,O,I,A,F,R,L,e,n,i,a,r,h,c,f,Y=this,W=Y.options;W.display&&(o=Y.ctx,k=p.global,w=W.ticks.minor,n=W.ticks.major||w,M=W.gridLines,f=W.scaleLabel,S=0!==Y.labelRotation,D=Y.isHorizontal(),C=w.autoSkip?Y._autoSkip(Y.getTicks()):Y.getTicks(),s=N.valueOrDefault(w.fontColor,k.defaultFontColor),l=g(w),u=N.valueOrDefault(n.fontColor,k.defaultFontColor),d=g(n),P=M.drawTicks?M.tickMarkLength:0,h=N.valueOrDefault(f.fontColor,k.defaultFontColor),c=g(f),t=N.options.toPadding(f.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.right:Y.right-I-P,F="right"===W.position?Y.right+P:Y.right,R="bottom"===W.position?Y.top+I:Y.bottom-P-I,L="bottom"===W.position?Y.top+I+P:Y.bottom+I,N.each(C,function(t,e){var n,i,a,r,o,s,l,u,d,h,c,f,g,m,p,v,y,b,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,r=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),r=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",x=w.padding,D?(p=P+x,v="bottom"===W.position?(m=S?"middle":"top",g=S?"right":"center",Y.top+p):(m=S?"middle":"bottom",g=S?"left":"center",Y.bottom-p),(y=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),y+=N.aliasPixel(i),b=Y.getPixelForTick(e)+w.labelOffset,o=l=d=c=y,s=R,u=L,h=_.top,p=_.bottom+I):(y="left"===W.position,x=w.mirror?(g=y?"left":"right",x):(g=y?"right":"left",P+x),b=y?Y.right-x:Y.left+x,(x=z(Y,e,M.offsetGridLines&&1<C.length))<Y.top&&(a="rgba(0,0,0,0)"),x+=N.aliasPixel(i),v=Y.getPixelForTick(e)+w.labelOffset,o=A,l=F,d=_.left,c=_.right+I,s=u=h=p=x),O.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:c,y2:p,labelX:b,labelY:v,glWidth:i,glColor:a,glBorderDash:r,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),M.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),w.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=(t.major?d:l).font,o.fillStyle=t.major?u:s,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var n=e.length,i=1.5*l.size,a=Y.isHorizontal()?0:-i*(n-1)/2,r=0;r<n;++r)o.fillText(""+e[r],0,a),a+=i;else o.fillText(e,0,0);o.restore()}}),f.display&&(r=0,e=m(f)/2,D?(i=Y.left+(Y.right-Y.left)/2,a="bottom"===W.position?Y.bottom-e-t.bottom:Y.top+e+t.top):(i=(n="left"===W.position)?Y.left+e+t.top:Y.right-e-t.top,a=Y.top+(Y.bottom-Y.top)/2,r=n?-.5*Math.PI:.5*Math.PI),o.save(),o.translate(i,a),o.rotate(r),o.textAlign="center",o.textBaseline="middle",o.fillStyle=h,o.font=c.font,o.fillText(f.labelString,0,0),o.restore()),M.drawBorder&&(o.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),o.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,r=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(o.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=r="left"===W.position?Y.right:Y.left,a+=f,r+=f),o.beginPath(),o.moveTo(a,h),o.lineTo(r,c),o.stroke()))}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=a.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=a.extend(this.defaults[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,r.addBox(e,t)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var a=t(45);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){n=3<n.length?n[2]-n[1]:n[1]-n[0];1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t));n=a.log10(Math.abs(n));return 0!==t?(n=-1*Math.floor(n),n=Math.max(Math.min(n,20),0),t.toFixed(n)):"0"},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(a.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),A=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:A.noop,title:function(t,e){var n="",i=e.labels,e=i?i.length:0;return 0<t.length&&((t=t[0]).xLabel?n=t.xLabel:0<e&&t.index<e&&(n=i[t.index])),n},afterTitle:A.noop,beforeBody:A.noop,beforeLabel:A.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){t=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:t.borderColor,backgroundColor:t.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:A.noop,afterBody:A.noop,beforeFooter:A.noop,footer:A.noop,afterFooter:A.noop}}}),e.exports=function(T){function h(t,e){t=A.color(t);return t.alpha(e*t.alpha()).rgbaString()}function o(t,e){return e&&(A.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function O(t){var e=i.global,n=A.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function I(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,r=e.body,o=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,t=e.footerFontSize;i+=s*u,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=o*d,i+=o?(o-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*t,i+=l?(l-1)*e.footerSpacing:0;function h(t){a=Math.max(a,n.measureText(t).width+c)}var c=0;return n.font=A.fontString(u,e._titleFontStyle,e._titleFontFamily),A.each(e.title,h),n.font=A.fontString(d,e._bodyFontStyle,e._bodyFontFamily),A.each(e.beforeBody.concat(e.afterBody),h),c=e.displayColors?d+2:0,A.each(r,function(t){A.each(t.before,h),A.each(t.lines,h),A.each(t.after,h)}),c=0,n.font=A.fontString(t,e._footerFontStyle,e._footerFontFamily),A.each(e.footer,h),{width:a+=2*e.xPadding,height:i}}T.Tooltip=a.extend({initialize:function(){this._model=O(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),i=t.afterTitle.apply(this,arguments),t=o(t=[],e);return t=o(t,n),t=o(t,i)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return A.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,n){var i=this,a=i._options.callbacks,r=[];return A.each(t,function(t){var e={before:[],lines:[],after:[]};o(e.before,a.beforeLabel.call(i,t,n)),o(e.lines,a.label.call(i,t,n)),o(e.after,a.afterLabel.call(i,t,n)),r.push(e)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return A.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),t=o(t=[],e);return t=o(t,n),t=o(t,i)},update:function(t){var e,n,i,a,r,o,s,l,u,d,h,c,f,g=this,m=g._options,p=g._model,v=g._model=O(m),y=g._active,b=g._data,x={xAlign:p.xAlign,yAlign:p.yAlign},_={x:p.x,y:p.y},k={width:p.width,height:p.height},w={x:p.caretX,y:p.caretY};if(y.length){v.opacity=1;for(var M=[],S=[],w=T.Tooltip.positioners[m.position].call(g,y,g._eventPosition),D=[],C=0,P=y.length;C<P;++C)D.push((u=y[C],f=c=h=d=void 0,d=u._xScale,h=u._yScale||u._scale,c=u._index,f=u._datasetIndex,{xLabel:d?d.getLabelForIndex(c,f):"",yLabel:h?h.getLabelForIndex(c,f):"",index:c,datasetIndex:f,x:u._model.x,y:u._model.y}));m.filter&&(D=D.filter(function(t){return m.filter(t,b)})),m.itemSort&&(D=D.sort(function(t,e){return m.itemSort(t,e,b)})),A.each(D,function(t){M.push(m.callbacks.labelColor.call(g,t,g._chart)),S.push(m.callbacks.labelTextColor.call(g,t,g._chart))}),v.title=g.getTitle(D,b),v.beforeBody=g.getBeforeBody(D,b),v.body=g.getBody(D,b),v.afterBody=g.getAfterBody(D,b),v.footer=g.getFooter(D,b),v.x=Math.round(w.x),v.y=Math.round(w.y),v.caretPadding=m.caretPadding,v.labelColors=M,v.labelTextColors=S,v.dataPoints=D,x=function(t,e){var n,i=t._model,a=t._chart,r=t._chart.chartArea,o="center",s="center";i.y<e.height?s="top":i.y>a.height-e.height&&(s="bottom");var l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d="center"===s?(n=function(t){return t<=l},function(t){return l<t}):(n=function(t){return t<=e.width/2},function(t){return t>=a.width-e.width/2}),h=function(t){return t+e.width+i.caretSize+i.caretPadding>a.width},c=function(t){return t-e.width-i.caretSize-i.caretPadding<0},r=function(t){return t<=u?"top":"bottom"};return n(i.x)?(o="left",h(i.x)&&(o="center",s=r(i.y))):d(i.x)&&(o="right",c(i.x)&&(o="center",s=r(i.y))),{xAlign:(t=t._options).xAlign||o,yAlign:t.yAlign||s}}(this,k=I(this,v)),e=v,n=k,i=x,a=g._chart,r=e.x,o=e.y,s=e.caretSize,l=e.caretPadding,p=e.cornerRadius,e=i.xAlign,i=i.yAlign,s+=l,l=p+l,"right"===e?r-=n.width:"center"===e&&(r=(r-=n.width/2)+n.width>a.width?a.width-n.width:r)<0&&(r=0),"top"===i?o+=s:o-="bottom"===i?n.height+s:n.height/2,"center"===i?"left"===e?r+=s:"right"===e&&(r-=s):"left"===e?r-=l:"right"===e&&(r+=l),_={x:r,y:o}}else v.opacity=0;return v.xAlign=x.xAlign,v.yAlign=x.yAlign,v.x=_.x,v.y=_.y,v.width=k.width,v.height=k.height,v.caretX=w.x,v.caretY=w.y,g._model=v,t&&m.custom&&m.custom.call(g,v),g},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,i=this.getCaretPosition(t,e,i);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,g=t.y,t=e.width,e=e.height;return"center"===c?(r=g+e/2,o="left"===h?(i=(l=f)-u,s=l,a=r+u,r-u):(i=(l=f+t)+u,s=l,a=r-u,r+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+t-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(r=(a=g)-u,o=a):(r=(a=g+e)+u,o=a,u=s,s=l,l=u)),{x1:l,x2:i,x3:s,y1:a,y2:r,y3:o}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var r,o,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=A.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,o=a.length;r<o;++r)n.fillText(a[r],t.x,t.y),t.y+=s+l,r+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,r,o){var s=a.bodyFontSize,e=a.bodySpacing,t=a.body;r.textAlign=a._bodyAlign,r.textBaseline="top",r.font=A.fontString(s,a._bodyFontStyle,a._bodyFontFamily);function l(t){r.fillText(t,i.x+n,i.y),i.y+=s+e}var n=0;r.fillStyle=h(a.bodyFontColor,o),A.each(a.beforeBody,l);var u=a.displayColors,n=u?s+2:0;A.each(t,function(t,e){var n=h(a.labelTextColors[e],o);r.fillStyle=n,A.each(t.before,l),A.each(t.lines,function(t){u&&(r.fillStyle=h(a.legendColorBackground,o),r.fillRect(i.x,i.y,s,s),r.lineWidth=1,r.strokeStyle=h(a.labelColors[e].borderColor,o),r.strokeRect(i.x,i.y,s,s),r.fillStyle=h(a.labelColors[e].backgroundColor,o),r.fillRect(i.x+1,i.y+1,s-2,s-2),r.fillStyle=n),l(t)}),A.each(t.after,l)}),n=0,A.each(a.afterBody,l),i.y-=e},drawFooter:function(e,n,i,t){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=h(n.footerFontColor,t),i.font=A.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),A.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i,a){n.fillStyle=h(e.backgroundColor,a),n.strokeStyle=h(e.borderColor,a),n.lineWidth=e.borderWidth;var r=e.xAlign,o=e.yAlign,s=t.x,l=t.y,u=i.width,d=i.height,a=e.cornerRadius;n.beginPath(),n.moveTo(s+a,l),"top"===o&&this.drawCaret(t,i),n.lineTo(s+u-a,l),n.quadraticCurveTo(s+u,l,s+u,l+a),"center"===o&&"right"===r&&this.drawCaret(t,i),n.lineTo(s+u,l+d-a),n.quadraticCurveTo(s+u,l+d,s+u-a,l+d),"bottom"===o&&this.drawCaret(t,i),n.lineTo(s+a,l+d),n.quadraticCurveTo(s,l+d,s,l+d-a),"center"===o&&"left"===r&&this.drawCaret(t,i),n.lineTo(s,l+a),n.quadraticCurveTo(s,l,s+a,l),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,r=this._view;0!==r.opacity&&(t={width:r.width,height:r.height},e={x:r.x,y:r.y},n=Math.abs(r.opacity<.001)?0:r.opacity,i=r.title.length||r.beforeBody.length||r.body.length||r.afterBody.length||r.footer.length,this._options.enabled&&i&&(this.drawBackground(e,r,a,t,n),e.x+=r.xPadding,e.y+=r.yPadding,this.drawTitle(e,r,a,n),this.drawBody(e,r,a,n),this.drawFooter(e,r,a,n)))},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!A.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),T.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,r=t.length;a<r;++a){var o=t[a];o&&o.hasValue()&&(e+=(o=o.tooltipPosition()).x,n+=o.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,r=e.y,o=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=A.distanceBetweenPoints(e,u))<o&&(o=u,n=d))}return n&&(a=(i=n.tooltipPosition()).x,r=i.y),{x:a,y:r}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),a=t(26),o=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var t=o.getAngleFromPoint(n,{x:t,y:e}),i=t.angle,e=t.distance,a=n.startAngle,r=n.endAngle;r<a;)r+=2*Math.PI;for(;r<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;t=a<=i&&i<=r,n=e>=n.innerRadius&&e<=n.outerRadius;return t&&n}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),d=t(45),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,o=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=a.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||l.borderDash),r.lineDashOffset=a.borderDashOffset||l.borderDashOffset,r.lineJoin=a.borderJoinStyle||l.borderJoinStyle,r.lineWidth=a.borderWidth||l.borderWidth,r.strokeStyle=a.borderColor||h.defaultColor,r.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(r.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!o||-1===u?r.moveTo(i.x,i.y):d.canvas.lineTo(r,n._view,e._view),u=t));r.stroke(),r.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var d=t(25),i=t(26),h=t(45),c=d.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:c,borderColor:c,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:a,inXRange:a,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,a=e.pointStyle,r=e.radius,o=e.x,s=e.y,l=h.color,u=0;e.skip||(i.strokeStyle=e.borderColor||c,i.lineWidth=h.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||c,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?u=(o-n.x)/(t.left-n.x):1.01*t.right<n.x?u=(n.x-o)/(n.x-t.right):n.y<t.top?u=(s-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(u=(n.y-s)/(n.y-t.bottom)),u=Math.round(100*u)/100,i.strokeStyle=l(i.strokeStyle).alpha(u).rgbString(),i.fillStyle=l(i.fillStyle).alpha(u).rgbString()),h.canvas.drawPoint(i,a,r,o,s))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),t=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,a,r=t._view;return a=o(t)?(i=r.width/2,e=r.x-i,n=r.x+i,i=Math.min(r.y,r.base),Math.max(r.y,r.base)):(a=r.height/2,e=Math.min(r.x,r.base),n=Math.max(r.x,r.base),i=r.y-a,r.y+a),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,r,o,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,o=t<e?1:-1,r=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,o=1,r=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom");h&&(a=(h=(l=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?l:h)/2,s=n+("top"!==c?a*r:0),l=i+("bottom"!==c?-a*r:0),(r=t+("left"!==c?a*o:0))!==(o=e+("right"!==c?-a*o:0))&&(n=s,i=l),s!==l&&(t=r,e=o)),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=h;var f=[[t,i],[t,n],[e,n],[e,i]],g=["bottom","left","top","right"].indexOf(c,0);function m(t){return f[(g+t)%4]}-1===g&&(g=0);var p=m(0);u.moveTo(p[0],p[1]);for(var v=1;v<4;v++)p=m(v),u.lineTo(p[0],p[1]);u.fill(),h&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n,i=!1;return i=this._view?t>=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){if(!this._view)return!1;var n=a(this);return o(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=o(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";t=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){var o;r?(o=Math.min(r,i/2),r=Math.min(r,a/2),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+r),t.lineTo(e+i,n+a-r),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-r),t.lineTo(e,n+r),t.quadraticCurveTo(e,n,e+o,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var r,o,s,l;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),h=(d=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-d/2,a+h/3),t.lineTo(i+d/2,a+h/3),t.lineTo(i,a-2*h/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-l,a-l,2*l,2*l),t.strokeRect(i-l,a-l,2*l,2*l);break;case"rectRounded":var u=n/Math.SQRT2,d=i-u,h=a-u,u=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,h,u,u,n/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-l,a),t.lineTo(i,a+l),t.lineTo(i+l,a),t.lineTo(i,a-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),o=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-o,a-s),t.lineTo(i+o,a+s),t.moveTo(i-o,a+s),t.lineTo(i+o,a-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),o=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-o,a-s),t.lineTo(i+o,a+s),t.moveTo(i-o,a+s),t.lineTo(i+o,a-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(d.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(d.isObject(t))for(r=(o=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[o[a]],o[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!d.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=d.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],n=n[t];d.isObject(a)&&d.isObject(n)?d.merge(a,n,i):e[t]=d.clone(n)},_mergerIf:function(t,e,n){var i=e[t],n=n[t];d.isObject(i)&&d.isObject(n)?d.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=d.clone(n))},merge:function(t,e,n){var i,a,r,o,s,l=d.isArray(e)?e:[e],u=l.length;if(!d.isObject(t))return t;for(i=(n=n||{}).merger||d._merger,a=0;a<u;++a)if(e=l[a],d.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)i(r[s],t,e,n);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)d.each(arguments[e],t);return n},inherits:function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=d.inherits,t&&d.extend(i.prototype,t),i.__super__=n.prototype,i}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var t=t(42),i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};e.exports={effects:i},t.easingEffects=i},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},resolve:function(t,e,n){for(var i,a=0,r=t.length;a<r;++a)if(i=t[a],void 0!==i&&(void 0!==e&&"function"==typeof i&&(i=i(e)),void 0!==(i=void 0!==n&&o.isArray(i)?i[n]:i)))return i}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var f=t(45),g="$chartjs",m="chartjs-",p=m+"render-monitor",v=m+"render-animation",y=["animationstart","webkitAnimationStart"],o={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){e=f.getStyle(t,e),e=e&&e.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):void 0}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function b(t,e,n){t.addEventListener(e,n,i)}function r(t,e,n){t.removeEventListener(e,n,i)}function x(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function l(e,t,n){var i,a,r,o,s,l,u,d,h=e[g]||(e[g]={}),c=h.resizer=function(t){var e=document.createElement("div"),n=m+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=i,e.className=n,e.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var a=e.childNodes[0],r=e.childNodes[1];return e._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6},b(a,"scroll",(i=function(){e._reset(),t()}).bind(a,"expand")),b(r,"scroll",i.bind(r,"shrink")),e}((i=function(){if(h.resizer)return t(x("resize",n))},o=!1,function(){r=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,f.requestAnimFrame.call(window,function(){o=!1,i.apply(a,r)}))}));l=function(){var t;h.resizer&&((t=e.parentNode)&&t!==c.parentNode&&t.insertBefore(c,t.firstChild),c._reset())},u=(s=e)[g]||(s[g]={}),d=u.renderProxy=function(t){t.animationName===v&&l()},f.each(y,function(t){b(s,t,d)}),u.reflow=!!s.offsetParent,s.classList.add(p)}function a(t){var e,n,i=t[g]||{},a=i.resizer;delete i.resizer,t=(e=t)[g]||{},(n=t.renderProxy)&&(f.each(y,function(t){r(e,t,n)}),delete t.renderProxy),e.classList.remove(p),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+v+"{"+n+"}@keyframes "+v+"{"+n+"}."+p+"{-webkit-animation:"+v+" 0.001s;animation:"+v+" 0.001s;}",n=(t=this)._style||document.createElement("style"),t._style||(e="/* Chart.js */\n"+e,(t._style=n).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,r,o=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(i=e,r=(n=t).style,e=n.getAttribute("height"),t=n.getAttribute("width"),n[g]={initial:{height:e,width:t,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null!==t&&""!==t||void 0!==(a=s(n,"width"))&&(n.width=a),null!==e&&""!==e||(""===n.style.height?n.height=n.width/(i.options.aspectRatio||2):(i=s(n,"height"),void 0!==a&&(n.height=i))),o):null},releaseContext:function(t){var n,i=t.canvas;i[g]&&(n=i[g].initial,["height","width"].forEach(function(t){var e=n[t];f.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),f.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[g])},addEventListener:function(a,t,r){var e,n=a.canvas;"resize"!==t?b(n,t,((e=r[g]||(r[g]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;r((n=a,i=o[(e=t).type]||e.type,t=f.getRelativePosition(e,n),x(i,n,t.x,t.y,e)))}):l(n,r,a)},removeEventListener:function(t,e,n){var i=t.canvas;"resize"!==e?(t=((n[g]||{}).proxies||{})[t.id+"_"+e])&&r(i,e,t):a(i)}},f.addEvent=b,f.removeEvent=r},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),t=t(47),a=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var s=t(25),c=t(40),l=t(45);s._set("global",{plugins:{filler:{propagate:!0}}});var f={dataset:function(t){var e=t.fill,n=t.chart,t=n.getDatasetMeta(e),i=t&&n.isDatasetVisible(e)&&t.dataset._children||[],a=i.length||0;return a?function(t,e){return e<a&&i[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,n=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===n?t.y:n}}}};function y(t){return t&&!t.skip}function b(t,e,n,i,a){var r;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)l.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;0<r;--r)l.canvas.lineTo(t,n[r],n[r-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,r,o,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],h=0;h<l;++h)a=null,(i=(n=t.getDatasetMeta(h)).dataset)&&i._model&&i instanceof c.Line&&(a={visible:t.isDatasetVisible(h),fill:function(t,e,n){var i=(t=t._model||{}).fill;if(!1===(i=void 0===i?!!t.backgroundColor:i)||null===i)return!1;if(!0===i)return"origin";if(t=parseFloat(i,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"===i[0]||"+"===i[0]?e+t:t)===e||t<0||n<=t)&&t;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}(i,h,l),chart:t,el:i}),n.$filler=a,d.push(a);for(h=0;h<l;++h)(a=d[h])&&(a.fill=function(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}(d,h,u),a.boundary=function(t){var e=t.el._model||{},n=t.el._scale||{},i=t.fill,t=null;if(isFinite(i))return null;if("start"===i?t=void 0===e.scaleBottom?n.bottom:e.scaleBottom:"end"===i?t=void 0===e.scaleTop?n.top:e.scaleTop:void 0!==e.scaleZero?t=e.scaleZero:n.getBasePosition?t=n.getBasePosition():n.getBasePixel&&(t=n.getBasePixel()),null!=t){if(void 0!==t.x&&void 0!==t.y)return t;if("number"==typeof t&&isFinite(t))return{x:(n=n.isHorizontal())?t:null,y:n?null:t}}return null}(a),a.mapper=(s=o=void 0,o=(r=a).fill,!(s="dataset")===o?null:(isFinite(o)||(s="boundary"),f[s](r))))},beforeDatasetDraw:function(t,e){var n,i,a,r,o=e.meta.$filler;o&&(n=t.ctx,a=(i=o.el)._view,r=i._children||[],e=o.mapper,o=a.backgroundColor||s.global.defaultColor,e&&o&&r.length&&(l.canvas.clipArea(n,t.chartArea),function(t,e,n,i,a,r){var o,s,l,u,d,h,c=e.length,f=i.spanGaps,g=[],m=[],p=0,v=0;for(t.beginPath(),o=0,s=c+!!r;o<s;++o)u=n(l=e[h=o%c]._view,h,i),d=y(l),h=y(u),d&&h?(p=g.push(l),v=m.push(u)):p&&v&&(f?(d&&g.push(l),h&&m.push(u)):(b(t,g,m,p,v),p=v=0,g=[],m=[]));b(t,g,m,p,v),t.closePath(),t.fillStyle=a,t.fill()}(n,r,e,a,o,i._loop),l.canvas.unclipArea(n)))}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var P=t(25),i=t(26),T=t(45),a=t(30),t=T.noop;function O(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}P._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,e=i.getDatasetMeta(n);e.hidden=null===e.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return T.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:T.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var r=i.extend({initialize:function(t){T.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=T.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,r,o,s,l,u=this,t=u.options,d=t.labels,e=t.display,h=u.ctx,c=P.global,f=T.valueOrDefault,g=f(d.fontSize,c.defaultFontSize),t=f(d.fontStyle,c.defaultFontStyle),c=f(d.fontFamily,c.defaultFontFamily),t=T.fontString(g,t,c),m=u.legendHitBoxes=[],p=u.minSize,c=u.isHorizontal();c?(p.width=u.maxWidth,p.height=e?10:0):(p.width=e?10:0,p.height=u.maxHeight),e&&(h.font=t,c?(n=u.lineWidths=[0],i=u.legendItems.length?g+d.padding:0,h.textAlign="left",h.textBaseline="top",T.each(u.legendItems,function(t,e){t=O(d,g)+g/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=g+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:g},n[n.length-1]+=t+d.padding}),p.height+=i):(c=d.padding,a=u.columnWidths=[],r=d.padding,s=o=0,l=g+c,T.each(u.legendItems,function(t,e){t=O(d,g)+g/2+h.measureText(t.text).width;s+l>p.height&&(r+=o+d.padding,a.push(o),s=o=0),o=Math.max(o,t),s+=l,m[e]={left:0,top:0,width:t,height:g}}),r+=o,a.push(o),p.width+=r)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var f,g,t,m,e,n,p,v,y,b,x,_=this,k=_.options,w=k.labels,M=P.global,S=M.elements.line,D=_.width,C=_.lineWidths;k.display&&(f=_.ctx,t=(g=T.valueOrDefault)(w.fontColor,M.defaultFontColor),m=g(w.fontSize,M.defaultFontSize),e=g(w.fontStyle,M.defaultFontStyle),n=g(w.fontFamily,M.defaultFontFamily),n=T.fontString(m,e,n),f.textAlign="left",f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=t,f.fillStyle=t,f.font=n,p=O(w,m),v=_.legendHitBoxes,y=_.isHorizontal(),b=y?{x:_.left+(D-C[0])/2,y:_.top+w.padding,line:0}:{x:_.left+w.padding,y:_.top+w.padding,line:0},x=m+w.padding,T.each(_.legendItems,function(t,e){var n,i,a,r,o,s,l,u=f.measureText(t.text).width,d=p+m/2+u,h=b.x,c=b.y;y?D<=h+d&&(c=b.y+=x,b.line++,h=b.x=_.left+(D-C[b.line])/2):c+x>_.bottom&&(h=b.x=h+_.columnWidths[b.line]+w.padding,c=b.y=_.top+w.padding,b.line++),n=h,i=c,a=t,isNaN(p)||p<=0||(f.save(),f.fillStyle=g(a.fillStyle,M.defaultColor),f.lineCap=g(a.lineCap,S.borderCapStyle),f.lineDashOffset=g(a.lineDashOffset,S.borderDashOffset),f.lineJoin=g(a.lineJoin,S.borderJoinStyle),f.lineWidth=g(a.lineWidth,S.borderWidth),f.strokeStyle=g(a.strokeStyle,M.defaultColor),r=0===g(a.lineWidth,S.borderWidth),f.setLineDash&&f.setLineDash(g(a.lineDash,S.borderDash)),k.labels&&k.labels.usePointStyle?(s=n+(l=(o=m*Math.SQRT2/2)/Math.SQRT2),l=i+l,T.canvas.drawPoint(f,a.pointStyle,o,s,l)):(r||f.strokeRect(n,i,p,m),f.fillRect(n,i,p,m)),f.restore()),v[e].left=h,v[e].top=c,e=t,t=u,h=p+(u=m/2)+(h=h),u=c+u,f.fillText(e.text,h,u),e.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(h,u),f.lineTo(h+t,u),f.stroke()),y?b.x+=d+w.padding:b.y+=x}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(r>=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:r,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(T.mergeIf(e,P.global.legend),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var y=t(25),i=t(26),b=t(45),a=t(30),t=b.noop;y._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var r=i.extend({initialize:function(t){b.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=b.valueOrDefault,e=this.options,n=e.display,i=t(e.fontSize,y.global.defaultFontSize),a=this.minSize,t=b.isArray(e.text)?e.text.length:1,i=b.options.toLineHeight(e.lineHeight,i),e=n?t*i+2*e.padding:0;this.isHorizontal()?(a.width=this.maxWidth,a.height=e):(a.width=e,a.height=this.maxHeight),this.width=a.width,this.height=a.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=b.valueOrDefault,n=this.options,i=y.global;if(n.display){var a,r,o,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),d=b.fontString(s,l,u),h=b.options.toLineHeight(n.lineHeight,s),c=h/2+n.padding,f=0,g=this.top,l=this.left,u=this.bottom,s=this.right;t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=d,this.isHorizontal()?(r=l+(s-l)/2,o=g+c,a=s-l):(r="left"===n.position?l+c:s-c,o=g+(u-g)/2,a=u-g,f=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(f),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(b.isArray(m))for(var p=0,v=0;v<m.length;++v)t.fillText(m[v],0,p,a),p+=h;else t.fillText(m,0,0,a);t.restore()}}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:r,beforeInit:function(t){var e=t.options.title;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(b.mergeIf(e,y.global.title),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);if((void 0!==(n=null!=t?i.isHorizontal()?t.x:t.y:n)||void 0!==t&&isNaN(e))&&(t=n||t,e=-1!==(o=i.getLabels().indexOf(t))?o:e),i.isHorizontal()){var t=i.width/r,o=t*(e-i.minIndex);return a&&(o+=t/2),i.left+Math.round(o)}r=i.height/r,e=r*(e-i.minIndex);return a&&(e+=r/2),i.top+Math.round(e)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),n=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=n/2),(t<=0?0:Math.round(t/n))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),h=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var o=this,s=o.options,l=o.chart,t=l.data.datasets,e=o.isHorizontal();function u(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null;var d,i=s.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join(".");void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]});var a=d[i].positiveValues,r=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,r[e]=r[e]||0,s.relativePoints?a[e]=100:t<0?r[e]+=t:a[e]+=t)})}),h.each(d,function(t){var e=t.positiveValues.concat(t.negativeValues),t=h.min(e),e=h.max(e);o.min=null===o.min?t:Math.min(o.min,t),o.max=null===o.max?e:Math.max(o.max,e)})):h.each(t,function(t,e){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||((null===o.min||t<o.min)&&(o.min=t),(null===o.max||t>o.max)&&(o.max=t))})}),o.min=isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=isFinite(o.max)&&!isNaN(o.max)?o.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,n=+this.getRightValue(t),t=this.end-e,e=this.isHorizontal()?this.left+this.width/t*(n-e):this.bottom-this.height/t*(n-e);return e},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,n=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var u=t(45);e.exports=function(e){var t=u.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0));var n=void 0!==e.min||void 0!==e.suggestedMin,i=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),n!=i&&t.min>=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i,a=[];i=t.stepSize&&0<t.stepSize?t.stepSize:(n=u.niceNum(e.max-e.min,!1),u.niceNum(n/(t.maxTicks-1),!0));var r=Math.floor(e.min/i)*i,e=Math.ceil(e.max/i)*i;t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(r=t.min,e=t.max);var o=(e-r)/i,o=u.almostEquals(o,Math.round(o),i/1e3)?Math.round(o):Math.ceil(o),s=1;i<1&&(s=Math.pow(10,i.toString().length-2),r=Math.round(r*s)/s,e=Math.round(e*s)/s),a.push(void 0!==t.min?t.min:r);for(var l=1;l<o;++l)a.push(Math.round((r+l*i)*s)/s);return a.push(void 0!==t.max?t.max:e),a}(n,t);t.handleDirectionalChanges(),t.max=u.max(n),t.min=u.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var h=t(45),i=t(34);e.exports=function(d){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},e=d.Scale.extend({determineDataLimits:function(){var r=this,n=r.options,o=r.chart,t=o.data.datasets,e=r.isHorizontal();function s(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null,r.minNotZero=null;var l,i=n.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=o.getDatasetMeta(e),o.isDatasetVisible(e)&&s(n)&&void 0!==n.stack&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=o.getDatasetMeta(e),a=[i.type,void 0===n.stacked&&void 0===i.stack?e:"",i.stack].join(".");o.isDatasetVisible(e)&&s(i)&&(void 0===l[a]&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+r.getRightValue(t);isNaN(t)||i.data[e].hidden||t<0||(n[e]=n[e]||0,n[e]+=t)}))}),h.each(l,function(t){var e;0<t.length&&(e=h.min(t),t=h.max(t),r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t))})):h.each(t,function(t,e){var n=o.getDatasetMeta(e);o.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===r.min||t<r.min)&&(r.min=t),(null===r.max||t>r.max)&&(r.max=t),0!=t&&(null===r.minNotZero||t<r.minNotZero)&&(r.minNotZero=t))})}),this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=h.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(h.log10(t.min))-1),t.max=Math.pow(10,Math.floor(h.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(h.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(h.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(h.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:e.min,max:e.max},i=t.ticks=function(t,e){var n,i,a=[],r=h.valueOrDefault,o=r(t.min,Math.pow(10,Math.floor(h.log10(e.min)))),s=Math.floor(h.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s));0===o?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(o),o=i*Math.pow(10,n)):(n=Math.floor(h.log10(o)),i=Math.floor(o/Math.pow(10,n)));for(var u=n<0?Math.pow(10,Math.abs(n)):1;a.push(o),10===++i&&(i=1,u=0<=++n?1:u),o=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return t=r(t.max,o),a.push(t),a}(i,t);t.max=h.max(i),t.min=h.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),d.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(h.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,r=this,o=r.options.ticks.reverse,s=h.log10,l=r._getFirstTickValue(r.minNotZero),u=0;return t=+r.getRightValue(t),a=o?(n=r.end,i=r.start,-1):(n=r.start,i=r.end,1),o=r.isHorizontal()?(e=r.width,o?r.right:r.left):(e=r.height,a*=-1,o?r.top:r.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(r.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),o+=a*u),o},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,r=h.log10,o=i._getFirstTickValue(i.minNotZero),s=a?(n=i.end,i.start):(n=i.start,i.end),t=i.isHorizontal()?(e=i.width,a?i.right-t:t-i.left):(e=i.height,a?t-i.top:i.bottom-t);return t!==n&&(0===n&&(t-=i=h.getValueOrDefault(i.options.ticks.fontSize,d.defaults.global.defaultFontSize),e-=i,n=o),t*=r(s)-r(n),t/=e,t=Math.pow(10,r(n)+t)),t}});d.scaleService.registerScaleType("logarithmic",e,t)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var r=t(25),p=t(45),s=t(34);e.exports=function(t){var c=r.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function f(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function g(t){var e=t.options.pointLabels,n=p.valueOrDefault(e.fontSize,c.defaultFontSize),t=p.valueOrDefault(e.fontStyle,c.defaultFontStyle),e=p.valueOrDefault(e.fontFamily,c.defaultFontFamily);return{size:n,style:t,family:e,font:p.fontString(n,t,e)}}function m(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function n(t){var e,n=g(t),i=Math.min(t.height/2,t.width/2),a={r:t.width,l:0,t:t.height,b:0},r={};t.ctx.font=n.font,t._pointLabelSizes=[];for(var o=f(t),s=0;s<o;s++){e=t.getPointPosition(s,i),l=t.ctx,d=n.size,u=t.pointLabels[s]||"",h=p.isArray(u)?{w:p.longestText(l,l.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:l.measureText(u).width,h:d},t._pointLabelSizes[s]=h;var l=t.getIndexAngle(s),u=p.toDegrees(l)%360,d=m(u,e.x,h.w,0,180),h=m(u,e.y,h.h,90,270);d.start<a.l&&(a.l=d.start,r.l=l),d.end>a.r&&(a.r=d.end,r.r=l),h.start<a.t&&(a.t=h.start,r.t=l),h.end>a.b&&(a.b=h.end,r.b=l)}t.setReductions(i,a,r)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels;e.lineWidth=i.lineWidth,e.strokeStyle=i.color;var r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=g(t);e.textBaseline="top";for(var s,l,u,d,h=f(t)-1;0<=h;h--)i.display&&(u=t.getPointPosition(h,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display&&(s=t.getPointPosition(h,r+5),d=p.valueAtIndexOrDefault(a.fontColor,h,c.defaultFontColor),e.font=o.font,e.fillStyle=d,l=t.getIndexAngle(h),u=p.toDegrees(l),e.textAlign=0===(d=u)||180===d?"center":d<180?"left":"right",l=u,d=t._pointLabelSizes[h],u=s,90===l||270===l?u.y-=d.h/2:(270<l||l<90)&&(u.y-=d.h),function(t,e,n,i){if(p.isArray(e))for(var a=n.y,r=1.5*i,o=0;o<e.length;++o)t.fillText(e[o],n.x,a),a+=r;else t.fillText(e,n.x,n.y)}(e,t.pointLabels[h]||"",s,o.size))}function o(t){return p.isNumber(t)?t:0}var a=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var i=p.min([t.height,t.width]),a=p.valueOrDefault(n.fontSize,c.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;p.each(a.data.datasets,function(t,e){var n;a.isDatasetVisible(e)&&(n=a.getDatasetMeta(e),p.each(t.data,function(t,e){t=+i.getRightValue(t);isNaN(t)||n.data[e].hidden||(r=Math.min(t,r),o=Math.max(t,o))}))}),i.min=r===Number.POSITIVE_INFINITY?0:r,i.max=o===Number.NEGATIVE_INFINITY?0:o,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=p.valueOrDefault(t.fontSize,c.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?n(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),n=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=o(i),a=o(a),r=o(r),n=o(n);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(r+n)/2)),this.setCenterPoint(i,a,r,n)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,t=t+a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/f(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var a,r,o,t,e,s,l=this,n=l.options,u=n.gridLines,d=n.ticks,h=p.valueOrDefault;n.display&&(a=l.ctx,r=this.getIndexAngle(0),o=h(d.fontSize,c.defaultFontSize),t=h(d.fontStyle,c.defaultFontStyle),e=h(d.fontFamily,c.defaultFontFamily),s=p.fontString(o,t,e),p.each(l.ticks,function(t,e){var n,i;(0<e||d.reverse)&&(n=l.getDistanceFromCenterForValue(l.ticksAsNumbers[e]),u.display&&0!==e&&function(t,e,n,i){var a=t.ctx;if(a.strokeStyle=p.valueAtIndexOrDefault(e.color,i-1),a.lineWidth=p.valueAtIndexOrDefault(e.lineWidth,i-1),t.options.gridLines.circular)a.beginPath(),a.arc(t.xCenter,t.yCenter,n,0,2*Math.PI),a.closePath(),a.stroke();else{var r=f(t);if(0!==r){a.beginPath();var o=t.getPointPosition(0,n);a.moveTo(o.x,o.y);for(var s=1;s<r;s++)o=t.getPointPosition(s,n),a.lineTo(o.x,o.y);a.closePath(),a.stroke()}}}(l,u,n,e),d.display&&(i=h(d.fontColor,c.defaultFontColor),a.font=s,a.save(),a.translate(l.xCenter,l.yCenter),a.rotate(r),d.showLabelBackdrop&&(e=a.measureText(t).width,a.fillStyle=d.backdropColor,a.fillRect(-e/2-d.backdropPaddingX,-n-o/2-d.backdropPaddingY,e+2*d.backdropPaddingX,o+2*d.backdropPaddingY)),a.textAlign="center",a.textBaseline="middle",a.fillStyle=i,a.fillText(t,0,-n),a.restore()))}),(n.angleLines.display||n.pointLabels.display)&&i(l))}});t.scaleService.registerScaleType("radialLinear",a,e)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var b="function"==typeof(b=t(6))?b:window.moment,a=t(25),m=t(45),p=Number.MIN_SAFE_INTEGER||-9007199254740991,v=Number.MAX_SAFE_INTEGER||9007199254740991,x={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},_=Object.keys(x);function y(t,e){return t-e}function k(t){for(var e,n={},i=[],a=0,r=t.length;a<r;++a)n[e=t[a]]||(n[e]=!0,i.push(e));return i}function w(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;0<=o&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)o=1+i;else{if(!(a[e]>n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-r[e],t=t?(n-r[e])/t:0,t=(a[i]-r[i])*t;return r[i]+t}function M(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?b(t,e):!(t=!(t instanceof b)?b(t):t).isValid()&&"function"==typeof e?e(t):t}function S(t,e){if(m.isNullOrUndef(t))return null;var n=e.options.time,t=M(e.getRightValue(t),n);return t.isValid()?(n.round&&t.startOf(n.round),t.valueOf()):null}function D(t){for(var e=_.indexOf(t)+1,n=_.length;e<n;++e)if(x[_[e]].common)return _[e]}function C(t,e,n,i){var a,r=i.time,o=r.unit||function(t,e,n,i){for(var a,r,o=_.length,s=_.indexOf(t);s<o-1;++s)if(r=(a=x[_[s]]).steps?a.steps[a.steps.length-1]:v,a.common&&Math.ceil((n-e)/(r*a.size))<=i)return _[s];return _[o-1]}(r.minUnit,t,e,n),s=D(o),l=m.valueOrDefault(r.stepSize,r.unitStepSize),u="week"===o&&r.isoWeekday,d=i.ticks.major.enabled,h=x[o],i=b(t),c=b(e),f=[],l=l||function(t,e,n,i){var a,r,o,s=e-t,l=(n=x[n]).size,u=n.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,r=u.length;a<r&&(o=u[a],!(Math.ceil(s/(l*o))<=i));++a);return o}(t,e,o,n);for(u&&(i=i.isoWeekday(u),c=c.isoWeekday(u)),i=i.startOf(u?"day":o),(c=c.startOf(u?"day":o))<e&&c.add(1,o),a=b(i),d&&s&&!u&&!r.round&&(a.startOf(s),a.add(~~((i-a)/(h.size*l))*l,o));a<c;a.add(l,o))f.push(+a);return f.push(+a),f}e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!b)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,r=a.chart,o=a.options.time,s=o.unit||"day",l=v,u=p,d=[],h=[],c=[],f=0,g=r.data.labels.length;f<g;++f)c.push(S(r.data.labels[f],a));for(f=0,g=(r.data.datasets||[]).length;f<g;++f)if(r.isDatasetVisible(f))if(n=r.data.datasets[f].data,m.isObject(n[0]))for(h[f]=[],t=0,e=n.length;t<e;++t)i=S(n[t],a),d.push(i),h[f][t]=i;else d.push.apply(d,c),h[f]=c.slice(0);else h[f]=[];c.length&&(c=k(c).sort(y),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=k(d).sort(y),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=S(o.min,a)||l,u=S(o.max,a)||u,l=l===v?+b().startOf(s):l,u=u===p?+b().endOf(s)+1:u,a.min=Math.min(l,u),a.max=Math.max(l+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:h,labels:c}},buildTicks:function(){var t,e,n,i,a,r,o,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,v=[],y=[];switch(m.ticks.source){case"data":v=c._timestamps.data;break;case"labels":v=c._timestamps.labels;break;case"auto":default:v=C(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&v.length&&(f=v[0],g=v[v.length-1]),f=S(p.min,c)||f,g=S(p.max,c)||g,t=0,e=v.length;t<e;++t)f<=(n=v[t])&&n<=g&&y.push(n);return c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,r=b.duration(b(i).diff(b(n))),o=_.length-1;o>=_.indexOf(e);o--)if(a=_[o],x[a].common&&r.as(a)>=t.length)return a;return _[e?_.indexOf(e):0]}(y,p.minUnit,c.min,c.max),c._majorUnit=D(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,r,o,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(r=t[u])&&r<n&&l.push(r);for(l.push(n),u=0,d=l.length;u<d;++u)o=l[u+1],a=l[u-1],r=l[u],void 0!==a&&void 0!==o&&Math.round((o+a)/2)===r||s.push({time:r,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=y,r=f,o=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:o,u=a[0],d=(w(i,"time",l,"pos")-w(i,"time",u,"pos"))/2),s.time.max||(l=a[a.length-1],u=1<a.length?a[a.length-2]:r,h=(w(i,"time",l,"pos")-w(i,"time",u,"pos"))/2)),{left:d,right:h}),c._labelFormat=function(t,e){for(var n,i,a=t.length,r=0;r<a;r++){if(0!==(n=M(t[r],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(c._timestamps.data,p),function(t,e){for(var n,i,a=[],r=0,o=t.length;r<o;++r)n=t[r],i=!!e&&n===+b(n).startOf(e),a.push({value:n,major:i});return a}(y,c._majorUnit)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",t=n.datasets[e].data[t];return m.isObject(t)&&(a=this.getRightValue(t)),i.tooltipFormat?M(a,i).format(i.tooltipFormat):"string"==typeof a?a:M(a,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var a=this.options,r=t.valueOf(),o=a.time.displayFormats,s=o[this._unit],l=this._majorUnit,u=o[l],d=t.clone().startOf(l).valueOf(),o=a.ticks.major,d=o.enabled&&l&&u&&r===d,s=t.format(i||(d?u:s)),a=d?o:a.ticks.minor,a=m.valueOrDefault(a.callback,a.userCallback);return a?a(s,e,n):s},convertTicksToLabels:function(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(this.tickFormatFunction(b(t[n].value),n,t));return e},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=w(e._table,"time",t,"pos");return i+n*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(null!==(i=null===(i=void 0!==e&&void 0!==n?this._timestamps.datasets[n][e]:i)?S(t,this):i))return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,n=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,n=w(e._table,"pos",n,"time");return b(n)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=m.toRadians(e.maxRotation),t=Math.cos(i),i=Math.sin(i);return n*t+m.valueOrDefault(e.fontSize,a.global.defaultFontSize)*i},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,t=this.tickFormatFunction(b(t),0,[],e),e=this.getLabelWidth(t),t=this.isHorizontal()?this.width:this.height,e=Math.floor(t/e);return 0<e?e:1}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)})
\ No newline at end of file
public/scripts/common-0.0.1-min.js
+1 -1
@@ -1 +1 @@
1 -function Q(n){return document.getElementById(n)}function QS(n){try{return Q(n).style}catch(n){}}function QE(n,t){try{Q(n).disabled=!t}catch(n){}}function QV(n,t){try{QS(n).display=t?"":"none"}catch(n){}}function QA(n,t){Q(n).innerHTML+=t}function QH(n,t){Q(n).innerHTML=t}function QC(n){try{return Q(n).classList}catch(n){}}function inputBoxFocus(n){Q(n).focus();var t=Q(n).value;Q(n).value="",Q(n).value=t}function ReadShort(n,t){return(n.charCodeAt(t)<<8)+n.charCodeAt(t+1)}function ReadShortX(n,t){return(n.charCodeAt(t+1)<<8)+n.charCodeAt(t)}function ReadInt(n,t){return 16777216*n.charCodeAt(t)+(n.charCodeAt(t+1)<<16)+(n.charCodeAt(t+2)<<8)+n.charCodeAt(t+3)}function ReadSInt(n,t){return(n.charCodeAt(t)<<24)+(n.charCodeAt(t+1)<<16)+(n.charCodeAt(t+2)<<8)+n.charCodeAt(t+3)}function ReadIntX(n,t){return 16777216*n.charCodeAt(t+3)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+1)<<8)+n.charCodeAt(t)}function ShortToStr(n){return String.fromCharCode(n>>8&255,255&n)}function ShortToStrX(n){return String.fromCharCode(255&n,n>>8&255)}function IntToStr(n){return String.fromCharCode(n>>24&255,n>>16&255,n>>8&255,255&n)}function IntToStrX(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)}function MakeToArray(n){return n&&null!=n&&"object"!=typeof n?[n]:n}function SplitArray(n){return n.split(",")}function Clone(n){return JSON.parse(JSON.stringify(n))}function EscapeHtml(n){return"string"==typeof n?n.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):"boolean"==typeof n||"number"==typeof n?n:void 0}function EscapeHtmlBreaks(n){return"string"==typeof n?n.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\r/g,"<br />").replace(/\n/g,"").replace(/\t/g,"&nbsp;&nbsp;"):"boolean"==typeof n||"number"==typeof n?n:void 0}function ArrayElementMove(n,t,r){n.splice(r,0,n.splice(t,1)[0])}function ObjectToStringEx(n,t){var r="";if(0!=n&&(!n||null==n))return"(Null)";if(n instanceof Array)for(var e in n)r+="<br />"+gap(t)+"Item #"+e+": "+ObjectToStringEx(n[e],t+1);else if(n instanceof Object)for(var e in n)r+="<br />"+gap(t)+e+" = "+ObjectToStringEx(n[e],t+1);else r+=EscapeHtml(n);return r}function ObjectToStringEx2(n,t){var r="";if(0!=n&&(!n||null==n))return"(Null)";if(n instanceof Array)for(var e in n)r+="\r\n"+gap2(t)+"Item #"+e+": "+ObjectToStringEx2(n[e],t+1);else if(n instanceof Object)for(var e in n)r+="\r\n"+gap2(t)+e+" = "+ObjectToStringEx2(n[e],t+1);else r+=EscapeHtml(n);return r}function gap(n){for(var t="",r=0;r<4*n;r++)t+="&nbsp;";return t}function gap2(n){for(var t="",r=0;r<4*n;r++)t+=" ";return t}function ObjectToString(n){return ObjectToStringEx(n,0)}function ObjectToString2(n){return ObjectToStringEx2(n,0)}function hex2rstr(n){if("string"!=typeof n||0==n.length)return"";for(var t,r="",e=(""+n).match(/../g);t=e.shift();)r+=String.fromCharCode("0x"+t);return r}function char2hex(n){return(n+256).toString(16).substr(-2).toUpperCase()}function rstr2hex(n){for(var t="",r=0;r<n.length;r++)t+=char2hex(n.charCodeAt(r));return t}function encode_utf8(n){return unescape(encodeURIComponent(n))}function decode_utf8(n){return decodeURIComponent(escape(n))}function data2blob(n){for(var t=new Array(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return new Blob([new Uint8Array(t)])}function utf2blob(n){for(var t=[],r=unescape(encodeURIComponent(n)),e=0;e<r.length;e++)t.push(r.charCodeAt(e));return new Blob([new Uint8Array(t)])}function random(n){return Math.floor(Math.random()*n)}function trademarks(n){return n.replace(/\(R\)/g,"&reg;").replace(/\(TM\)/g,"&trade;")}function zeroPad(n,t){n="00000000"+n;return n.substr(n.length-(t=null==t?2:t))}function isAlphaNumeric(n){return"number"==typeof n||null!=n.match(/^[A-Za-z0-9]+$/)}function isSafeString(n){return"string"==typeof n&&-1==n.indexOf("<")&&-1==n.indexOf(">")&&-1==n.indexOf("&")&&-1==n.indexOf('"')&&-1==n.indexOf("'")&&-1==n.indexOf("+")&&-1==n.indexOf("(")&&-1==n.indexOf(")")&&-1==n.indexOf("#")&&-1==n.indexOf("%")&&-1==n.indexOf(":")}function isSafeString2(n){return"string"==typeof n&&-1==n.indexOf("<")&&-1==n.indexOf(">")&&-1==n.indexOf("&")&&-1==n.indexOf('"')&&-1==n.indexOf("'")&&-1==n.indexOf("+")&&-1==n.indexOf("(")&&-1==n.indexOf(")")&&-1==n.indexOf("#")&&-1==n.indexOf("%")}function parseUriArgs(){var n,t=window.document.location.href,r={},e=(t=t.endsWith("#")?t.substring(0,t.length-1):t).split(/[\?&|]/);for(n in e.splice(0,1),e){var o,i=e[n],c=i.indexOf("=");r[o=i.substring(0,c)]=i.substring(c+1),isSafeString(r[o])?(c=parseInt(r[o]))==r[o]&&(r[o]=c):delete r[o]}return r}String.prototype.startsWith||(String.prototype.startsWith=function(n){return 0===this.lastIndexOf(n,0)}),String.prototype.endsWith||(String.prototype.endsWith=function(n){return-1!==this.indexOf(n,this.length-n.length)})
\ No newline at end of file
1 +function Q(n){return document.getElementById(n)}function QS(n){try{return Q(n).style}catch(n){}}function QE(n,t){try{Q(n).disabled=!t}catch(n){}}function QV(n,t){try{QS(n).display=t?"":"none"}catch(n){}}function QA(n,t){Q(n).innerHTML+=t}function QH(n,t){Q(n).innerHTML=t}function QC(n){try{return Q(n).classList}catch(n){}}function inputBoxFocus(n){Q(n).focus();var t=Q(n).value;Q(n).value="",Q(n).value=t}function ReadShort(n,t){return(n.charCodeAt(t)<<8)+n.charCodeAt(t+1)}function ReadShortX(n,t){return(n.charCodeAt(t+1)<<8)+n.charCodeAt(t)}function ReadInt(n,t){return 16777216*n.charCodeAt(t)+(n.charCodeAt(t+1)<<16)+(n.charCodeAt(t+2)<<8)+n.charCodeAt(t+3)}function ReadSInt(n,t){return(n.charCodeAt(t)<<24)+(n.charCodeAt(t+1)<<16)+(n.charCodeAt(t+2)<<8)+n.charCodeAt(t+3)}function ReadIntX(n,t){return 16777216*n.charCodeAt(t+3)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+1)<<8)+n.charCodeAt(t)}function ShortToStr(n){return String.fromCharCode(n>>8&255,255&n)}function ShortToStrX(n){return String.fromCharCode(255&n,n>>8&255)}function IntToStr(n){return String.fromCharCode(n>>24&255,n>>16&255,n>>8&255,255&n)}function IntToStrX(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)}function MakeToArray(n){return n&&null!=n&&"object"!=typeof n?[n]:n}function SplitArray(n){return n.split(",")}function Clone(n){return JSON.parse(JSON.stringify(n))}function EscapeHtml(n){return"string"==typeof n?n.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):"boolean"==typeof n||"number"==typeof n?n:void 0}function EscapeHtmlBreaks(n){return"string"==typeof n?n.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\r/g,"<br />").replace(/\n/g,"").replace(/\t/g,"&nbsp;&nbsp;"):"boolean"==typeof n||"number"==typeof n?n:void 0}function ArrayElementMove(n,t,r){n.splice(r,0,n.splice(t,1)[0])}function ObjectToStringEx(n,t){var r="";if(0!=n&&(!n||null==n))return"(Null)";if(n instanceof Array)for(var e in n)r+="<br />"+gap(t)+"Item #"+e+": "+ObjectToStringEx(n[e],t+1);else if(n instanceof Object)for(var e in n)r+="<br />"+gap(t)+e+" = "+ObjectToStringEx(n[e],t+1);else r+=EscapeHtml(n);return r}function ObjectToStringEx2(n,t){var r="";if(0!=n&&(!n||null==n))return"(Null)";if(n instanceof Array)for(var e in n)r+="\r\n"+gap2(t)+"Item #"+e+": "+ObjectToStringEx2(n[e],t+1);else if(n instanceof Object)for(var e in n)r+="\r\n"+gap2(t)+e+" = "+ObjectToStringEx2(n[e],t+1);else r+=EscapeHtml(n);return r}function gap(n){for(var t="",r=0;r<4*n;r++)t+="&nbsp;";return t}function gap2(n){for(var t="",r=0;r<4*n;r++)t+=" ";return t}function ObjectToString(n){return ObjectToStringEx(n,0)}function ObjectToString2(n){return ObjectToStringEx2(n,0)}function hex2rstr(n){if("string"!=typeof n||0==n.length)return"";for(var t,r="",e=(""+n).match(/../g);t=e.shift();)r+=String.fromCharCode("0x"+t);return r}function char2hex(n){return(n+256).toString(16).substr(-2).toUpperCase()}function rstr2hex(n){for(var t="",r=0;r<n.length;r++)t+=char2hex(n.charCodeAt(r));return t}function encode_utf8(n){return unescape(encodeURIComponent(n))}function decode_utf8(n){return decodeURIComponent(escape(n))}function data2blob(n){for(var t=new Array(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return new Blob([new Uint8Array(t)])}function utf2blob(n){for(var t=[],r=unescape(encodeURIComponent(n)),e=0;e<r.length;e++)t.push(r.charCodeAt(e));return new Blob([new Uint8Array(t)])}function random(n){return Math.floor(Math.random()*n)}function trademarks(n){return n.replace(/\(R\)/g,"&reg;").replace(/\(TM\)/g,"&trade;")}function zeroPad(n,t){null==t&&(t=2);n="00000000"+n;return n.substr(n.length-t)}function isAlphaNumeric(n){return"number"==typeof n||null!=n.match(/^[A-Za-z0-9]+$/)}function isSafeString(n){return"string"==typeof n&&-1==n.indexOf("<")&&-1==n.indexOf(">")&&-1==n.indexOf("&")&&-1==n.indexOf('"')&&-1==n.indexOf("'")&&-1==n.indexOf("+")&&-1==n.indexOf("(")&&-1==n.indexOf(")")&&-1==n.indexOf("#")&&-1==n.indexOf("%")&&-1==n.indexOf(":")}function isSafeString2(n){return"string"==typeof n&&-1==n.indexOf("<")&&-1==n.indexOf(">")&&-1==n.indexOf("&")&&-1==n.indexOf('"')&&-1==n.indexOf("'")&&-1==n.indexOf("+")&&-1==n.indexOf("(")&&-1==n.indexOf(")")&&-1==n.indexOf("#")&&-1==n.indexOf("%")}function parseUriArgs(){var n,t=window.document.location.href,r={},e=(t=t.endsWith("#")?t.substring(0,t.length-1):t).split(/[\?&|]/);for(n in e.splice(0,1),e){var o,i=e[n],c=i.indexOf("=");r[o=i.substring(0,c)]=i.substring(c+1),isSafeString(r[o])?(c=parseInt(r[o]))==r[o]&&(r[o]=c):delete r[o]}return r}String.prototype.startsWith||(String.prototype.startsWith=function(n){return 0===this.lastIndexOf(n,0)}),String.prototype.endsWith||(String.prototype.endsWith=function(n){return-1!==this.indexOf(n,this.length-n.length)})
\ No newline at end of file
public/scripts/ol-min.js
+1 -1
@@ -1 +1 @@
1 -!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var r={},n=this;function t(t,e){var o,i=r;(t=t.split("."))[0]in(i=i||n)||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function D(t,e){return e<t?1:t<e?-1:0}function d(t,e){return 0<=t.indexOf(e)}function v(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function c(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function s(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function b(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function U(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function h(t){for(var o=hs,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function m(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function w(){}function G(t){return t.Vo||(t.Vo=++o)}var o=0;function a(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function O(t,e){if(!t)throw new a(e)}function B(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function p(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function C(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function x(t,e,o){return Math.min(Math.max(t,e),o)}e(a,Error);var i="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function S(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),y(t,e,o,i)}function y(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}function M(t){return t*Math.PI/180}function L(t,e){return(t%=e)*e<0?t+e:t}function f(t,e,o){return t+o*(e-t)}function l(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function u(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function X(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function P(t){for(var e=V(),o=0,i=t.length;o<i;++o)z(e,t[o]);return e}function A(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function g(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function E(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function T(t,e){return j(t,e[0],e[1])}function N(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function j(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function R(t,e){var o=t[1],i=t[2],r=t[3],n=e[0];e=e[1];var s=0;return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function V(){return[1/0,1/0,-1/0,-1/0]}function F(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function I(t){return F(1/0,1/0,-1/0,-1/0,t)}function k(t,e){var o=t[0];return F(o,t=t[1],o,t,e)}function W(t,e,o,i,r){return Y(r=I(r),t,e,o,i)}function Z(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function K(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function z(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function Y(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function H(t,e,o){var i;return((i=e.call(o,J(t)))||(i=e.call(o,_(t)))||(i=e.call(o,it(t)))||!!(i=e.call(o,ot(t))))&&i}function q(t){var e=0;return e=!st(t)?rt(t)*tt(t):e}function J(t){return[t[0],t[1]]}function _(t){return[t[2],t[1]]}function $(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Q(t,e,o,i,r){var n=e*i[0]/2;i=e*i[1]/2,e=Math.cos(o);var s=Math.sin(o);o=n*e,n*=s,e*=i;var a=t[0],p=t[1];t=a-o+(h=i*s),i=a-o-h,s=a+o-h,o=a+o+h;var h=p-n-e,a=p-n+e,l=p+n+e,n=p+n-e;return F(Math.min(t,i,s,o),Math.min(h,a,l,n),Math.max(t,i,s,o),Math.max(h,a,l,n),r)}function tt(t){return t[3]-t[1]}function et(t,e,o){return o=o||V(),nt(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function ot(t){return[t[0],t[3]]}function it(t){return[t[2],t[3]]}function rt(t){return t[2]-t[0]}function nt(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function st(t){return t[2]<t[0]||t[3]<t[1]}function at(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function pt(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return F(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var ht="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function lt(t){for(var e in t)delete t[e]}function ut(t){var e,o=[];for(e in t)o.push(t[e]);return o}function ct(t){for(var e in t)return!1;return!e}function ft(t){this.radius=t}ft.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var s=t[n][0],a=t[n][1],e=e+M(s-i)*(2+Math.sin(M(r))+Math.sin(M(a))),i=s,r=a;return e*this.radius*this.radius/2},ft.prototype.b=function(t,e){var o=M(t[1]),i=M(e[1]),r=(i-o)/2;return t=M(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},ft.prototype.offset=function(t,e,o){var i=M(t[1]);e/=this.radius;var r=Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o));return[180*(M(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var yt=new ft(6370997),gt={};gt.degrees=2*Math.PI*yt.radius/360,gt.ft=.3048,gt.m=1,gt["us-ft"]=1200/3937;var dt=null;function vt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=dt||window.proj4;"function"!=typeof o||void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units&&(this.a=e.units))}function bt(t){vt.call(this,{code:t,units:"m",extent:wt,global:!0,worldExtent:xt,getPointResolution:function(t,e){return t/i(e[1]/6378137)}})}(Mu=vt.prototype).Jk=function(){return this.mb},Mu.G=function(){return this.f},Mu.Un=function(){return this.a},Mu.sc=function(){return this.l||gt[this.a]},Mu.tl=function(){return this.g},Mu.dm=function(){return this.c},Mu.$p=function(t){this.c=t,this.i=!(!t||!this.f)},Mu.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},Mu.kq=function(t){this.g=t},Mu.Zp=function(t){this.o=t},e(bt,vt);var mt=6378137*Math.PI,wt=[-mt,-mt,mt,mt],xt=[-180,-85,180,85],St="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(t){return new bt(t)});function Mt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=mt*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));mt<n?n=mt:n<-mt&&(n=-mt),e[r+1]=n}return e}function Pt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/mt,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var At=new ft(6378137);function Et(t,e){vt.call(this,{code:t,units:"degrees",extent:Tt,axisOrientation:e,global:!0,metersPerUnit:jt,worldExtent:Tt})}e(Et,vt);var Tt=[-180,-90,180,90],jt=Math.PI*At.radius/180,Ct=[new Et("CRS:84"),new Et("EPSG:4326","neu"),new Et("urn:ogc:def:crs:EPSG::4326","neu"),new Et("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Et("urn:ogc:def:crs:OGC:1.3:CRS84"),new Et("urn:ogc:def:crs:OGC:2:84"),new Et("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Et("urn:x-ogc:def:crs:EPSG:4326","neu")],Lt={},Rt={};function It(t,e,o){t=t.mb,e=e.mb,t in Rt||(Rt[t]={}),Rt[t][e]=o}function Nt(t,e){var o;return o=t in Rt&&e in Rt[t]?Rt[t][e]:o}function Ft(t,e,o){var i=(t=Bt(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=Wt(t,Bt("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(yt.b(e.slice(0,2),e.slice(2,4))+yt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc())&&(e/=t)),e}function kt(t){t.forEach(Dt),t.forEach(function(e){t.forEach(function(t){e!==t&&It(e,t,Kt)})})}function Dt(t){It(Lt[t.mb]=t,t,Kt)}function Ot(t){return t?"string"==typeof t?Bt(t):t:Bt("EPSG:3857")}function Ut(t,e,o,i){It(t=Bt(t),e=Bt(e),Gt(o)),It(e,t,Gt(i))}function Gt(s){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=s([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function Bt(t){var e,o=null;return t instanceof vt?o=t:"string"==typeof t&&(o=Lt[t]||null,e=dt||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||Dt(o=new vt({code:t}))),o}function Xt(t,e){if(t===e)return!0;var o=t.a===e.a;return(t.mb===e.mb||Wt(t,e)===Kt)&&o}function Vt(t,e){return Wt(t=Bt(t),e=Bt(e))}function Wt(t,e){var o,i,r,n=t.mb,s=e.mb,a=Nt(n,s);return a||"function"==typeof(o=dt||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i&&void 0!==r&&(i===r?kt([e,t]):Ut(e,t,(a=o(s,n)).forward,a.inverse),a=Nt(n,s))),a=a||Zt}function Zt(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Kt(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function zt(t,e,o){return Vt(e,o)(t,void 0,t.length)}function Yt(t,e,o){return pt(t,e=Vt(e,o))}function Ht(){kt(St),kt(Ct),Ct.forEach(function(e){St.forEach(function(t){It(e,t,Mt),It(t,e,Pt)})})}function qt(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Jt(t){var o,i;this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||D,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,O(this.c.length==this.b.length,20));var e=t.extent;void 0===e||this.i||this.c||(this.i=ot(e)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes?this.a=t.sizes.map(function(t){return new B(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):e&&function(t,e){for(var o=t.b.length,i=Array(o),r=t.minZoom;r<o;++r)i[r]=ee(t,e,r);t.a=i}(this,e)}Ht();var _t=[0,0,0];function $t(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,ee(t,r,e,i)))return!0;--e}return!1}function Qt(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),ee(t,i,e[0]+1,o)):null}function te(t,e,o,i){ie(t,e[0],e[1],o,!1,_t);var r=_t[1],n=_t[2];return ie(t,e[2],e[3],o,!0,_t),t=_t[1],e=_t[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new B(r,t,n,e),i}function ee(t,e,o,i){return te(t,e,t.Da(o),i)}function oe(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=X(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function ie(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=X(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),qt(s,e,o,n)}function re(t){var e=t.j;return e||(e=ae(t),t.j=e),e}function ne(t){var e={};return ht(e,t||{}),void 0===e.extent&&(e.extent=Bt("EPSG:3857").G()),e.resolutions=se(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Jt(e)}function se(t,e,o){e=void 0!==e?e:42;var i=tt(t);for(t=rt(t),o=X(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function ae(t,e,o){return e=se(t=pe(t),e,o),new Jt({extent:t,origin:ot(t),resolutions:e,tileSize:o})}function pe(t){var e=(t=Bt(t)).G();return e=!e?F(-(t=180*gt.degrees/t.sc()),-t,t,t):e}function he(t){this.b=t.html,this.a=t.tileRanges||null}function le(t){return t}function ue(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&me(i),e.call(o,t)}}function ce(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function fe(t,e){return(t=t.fb)?t[e]:void 0}function ye(t){return t.fb||(t.fb={})}function ge(t,e){var o=fe(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),lt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function de(t,e,o,i,r){var n=ye(t),s=n[e];return(n=ce(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(t.addEventListener(e,ue(n={lh:i,nh:!!r,listener:o,target:t,type:e})),s.push(n)),n}function ve(t,e,o,i){return de(t,e,o,i,!0)}function be(t,e,o,i){(t=fe(t,e))&&(o=ce(t,o,i,!0))&&me(o)}function me(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=fe(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ge(t.target,t.type)),lt(t))}function we(t){for(var e in ye(t))ge(t,e)}function xe(){}function Se(t){t.Jb||(t.Jb=!0,t.ka())}function Me(t){this.type=t,this.target=null}function Pe(t){t.stopPropagation()}function Ae(){this.Ua={},this.ra={},this.oa={}}function Ee(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function Te(){Ae.call(this),this.i=0}function je(t){Te.call(this),G(this),this.S={},void 0!==t&&this.H(t)}(Mu=Jt.prototype).Rf=function(t,e,o){for(var i=(t=ee(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},Mu.G=function(){return this.v},Mu.Ti=function(){return this.maxZoom},Mu.Ui=function(){return this.minZoom},Mu.Pc=function(t){return this.i||this.c[t]},Mu.Da=function(t){return this.b[t]},Mu.Vi=function(){return this.b},Mu.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=X(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return F(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},Mu.Be=function(t,e,o){return ie(this,t[0],t[1],e,!1,o)},Mu.bg=function(t,e,o){return ie(this,t[0],t[1],this.Da(e),!1,o)},Mu.gb=function(t){return this.g||this.f[t]},Mu.tc=function(t,e){return x(v(this.b,t,e||0),this.minZoom,this.maxZoom)},xe.prototype.Jb=!(he.prototype.i=function(){return this.b}),xe.prototype.ka=w,Me.prototype.preventDefault=Me.prototype.stopPropagation=function(){this.qp=!0},e(Ae,xe),Ae.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},Ae.prototype.b=function(t){var e="string"==typeof t?new Me(t):t;t=e.type;var o=(e.target=this).oa[t];if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,w);delete this.ra[t]}return n}},Ae.prototype.ka=function(){we(this)},Ae.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=w,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(Te,Ae),(Mu=Te.prototype).s=function(){++this.i,this.b("change")},Mu.L=function(){return this.i},Mu.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=de(this,t[n],e,o);return r}return de(this,t,e,o)},Mu.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=ve(this,t[n],e,o);return r}return ve(this,t,e,o)},Mu.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)be(this,t[i],e,o);else be(this,t,e,o)},e(je,Te);var Ce={};function Le(t){return Ce.hasOwnProperty(t)?Ce[t]:Ce[t]="change:"+t}function Re(t,e,o){var i=Le(e);t.b(new Ie(i,e,o)),t.b(new Ie("propertychange",e,o))}function Ie(t,e,o){Me.call(this,t),this.key=e,this.oldValue=o}function Ne(t,e){if(je.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)ke(this,this.a[t],t);Fe(this)}function Fe(t){t.set(De,t.a.length)}function ke(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new a(58)}(Mu=je.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},Mu.O=function(){return Object.keys(this.S)},Mu.N=function(){return ht({},this.S)},Mu.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&Re(this,t,o)},Mu.H=function(t,e){for(var o in t)this.set(o,t[o],e)},Mu.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||Re(this,t,o))},e(Ie,Me),e(Ne,je),(Mu=Ne.prototype).clear=function(){for(;0<this.dc();)this.pop()},Mu.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},Mu.forEach=function(t,e){this.a.forEach(t,e)},Mu.tm=function(){return this.a},Mu.item=function(t){return this.a[t]},Mu.dc=function(){return this.get(De)},Mu.He=function(t,e){this.c&&ke(this,e),this.a.splice(t,0,e),Fe(this),this.b(new Oe("add",e))},Mu.pop=function(){return this.Hg(this.dc()-1)},Mu.push=function(t){this.c&&ke(this,t);var e=this.dc();return this.He(e,t),this.dc()},Mu.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},Mu.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),Fe(this),this.b(new Oe("remove",e)),e},Mu.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&ke(this,e,t),o=this.a[t],this.a[t]=e,this.b(new Oe("remove",o)),this.b(new Oe("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var De="length";function Oe(t,e){Me.call(this,t),this.element=e}e(Oe,Me);var Ue=/^#(?:[0-9a-f]{3}){1,2}$/i,Ge=/^([a-z]*)$/i;function Be(t){return Array.isArray(t)?t:Ze(t)}function Xe(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}var Ve,We,Ze=(Ve={},We=0,function(t){if(Ve.hasOwnProperty(t))var e=Ve[t];else{if(1024<=We)for(var o in e=0,Ve)3&e++||(delete Ve[o],--We);var i,r;Ge.exec(e=t)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),Ue.exec(e)?(O(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=Ke(e)):r=Ke(e=e.slice(5,-1).split(",").map(Number)),Ve[t]=e=r,++We}return e});function Ke(t){var e=[];return e[0]=x(t[0]+.5|0,0,255),e[1]=x(t[1]+.5|0,0,255),e[2]=x(t[2]+.5|0,0,255),e[3]=x(t[3],0,1),e}function ze(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:Xe(t)}function Ye(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function He(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function qe(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Je(t){je.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||w,t.target&&this.f(t.target)}function _e(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»";"string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i;var r=this.o&&!this.c?this.D:this.C;(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),de(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),Je.call(this,{element:o,render:t.render||$e,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function $e(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=ht({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=G(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=G(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if(C(E,M)){m=!0;break t}var T=ee(x,pe(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&(C(E,new B(L(M.ca,j),L(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&C(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(qe(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!ct(this.j)||!ct(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&ct(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(qe(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=ct(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Qe(t){t.element.classList.toggle("ol-collapsed"),t.c?He(t.D,t.C):He(t.C,t.D),t.c=!t.c}function to(t){return Math.pow(t,3)}function eo(t){return 1-to(1-t)}function oo(t){return 3*t*t-2*t*t*t}function io(t){return t}function ro(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧";this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass"));var i=t.tipLabel||"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),de(o,"click",ro.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||no,this.o=t.resetNorth||void 0,Je.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function no(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")),this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e),this.u=t)}function so(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),de(a,"click",so.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),de(i,"click",so.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),Je.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function ao(t){t=t||{};var e=new Ne;return void 0!==t.zoom&&!t.zoom||e.push(new so(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ro(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new _e(t.attributionOptions)),e}function po(t){this.c=void 0!==(t=t||{}).className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢";this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e;var o=t.tipLabel||"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+lo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),de(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(ho()?"":"ol-unsupported"),o.appendChild(e),Je.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function ho(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function lo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function uo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(Je,je),Je.prototype.ka=function(){qe(this.element),je.prototype.ka.call(this)},Je.prototype.g=function(){return this.a},Je.prototype.setMap=function(t){this.a&&qe(this.element);for(var e=0,o=this.v.length;e<o;++e)me(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==w&&this.v.push(de(t,"postrender",this.render,this)),t.render())},Je.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(_e,Je),(Mu=_e.prototype).Vm=function(t){t.preventDefault(),Qe(this)},Mu.Um=function(){return this.o},Mu.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.c&&Qe(this))},Mu.Wm=function(t){this.o&&this.c!==t&&Qe(this)},Mu.Tm=function(){return this.c},e(ro,Je),ro.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:eo}):t.Oe(0))},e(so,Je),so.prototype.j=function(t,e){var o;e.preventDefault(),!(e=this.a.Z())||(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:eo})):e.Vc(t))},e(po,Je),po.prototype.C=function(t){t.preventDefault(),ho()&&(t=this.a)&&(lo()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):uo(t):uo(t)))},po.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;lo()?(t.className=this.c+"-true",He(this.l,this.o)):(t.className=this.c+"-false",He(this.o,this.l)),e&&e.Ad()},po.prototype.setMap=function(t){Je.prototype.setMap.call(this,t),t&&this.v.push(de(document,fo(),this.u,this))};var co,fo=function(){var t;return co||((t=document.body).webkitRequestFullscreen?co="webkitfullscreenchange":t.mozRequestFullScreen?co="mozfullscreenchange":t.msRequestFullscreen?co="MSFullscreenChange":t.requestFullscreen&&(co="fullscreenchange")),co};function yo(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",Je.call(this,{element:e,render:t.render||go,target:t.target}),de(this,Le(bo),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function go(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,vo(this,this.o)}function vo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?Wt(t.c,o):Zt),(e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString())),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(yo,Je),(Mu=yo.prototype).Ym=function(){this.j=null},Mu.xh=function(){return this.get(mo)},Mu.Zh=function(){return this.get(bo)},Mu.Ll=function(t){this.o=this.a.xe(t),vo(this,this.o)},Mu.Ml=function(){vo(this,null),this.o=null},Mu.setMap=function(t){Je.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(de(t,"mousemove",this.Ll,this),de(t,"mouseout",this.Ml,this)))},Mu.kj=function(t){this.set(mo,t)},Mu.$h=function(t){this.set(bo,Bt(t))};var bo="projection",mo="coordinateFormat";function wo(t,e,o){Me.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function xo(t,e,o,i,r){wo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(wo,Me),e(xo,wo),xo.prototype.preventDefault=function(){wo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},xo.prototype.stopPropagation=function(){wo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var So=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Mo(t,e){for(var o,i=So.length,r=0;r<i;++r)try{if(o=t.getContext(So[r],e))return o}catch(t){}return null}var Po="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Ao=-1!==Po.indexOf("firefox"),Eo=-1!==Po.indexOf("safari")&&-1==Po.indexOf("chrom"),To=-1!==Po.indexOf("webkit")&&-1==Po.indexOf("edge"),jo=-1!==Po.indexOf("macintosh"),Co=window.devicePixelRatio||1,Lo=!1,Ro=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(Lo=!0),!0)}catch(t){return!1}}(),Io="DeviceOrientationEvent"in window,No="geolocation"in navigator,Fo="ontouchstart"in window,ko="PointerEvent"in window,Do=!!navigator.msPointerEnabled,Oo=!1,Po=[];if("WebGLRenderingContext"in window)try{var Uo=Mo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});Uo&&(Oo=!0,Xy=Uo.getParameter(Uo.MAX_TEXTURE_SIZE),Po=Uo.getSupportedExtensions())}catch(t){}var Go=Oo,Bo=Po,Xo=Xy,Vo={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function Wo(t,e,o,i,r){xo.call(this,t,e,o.b,i,r),this.b=o}function Zo(t,e){this.b=t,this.f=e}function Ko(t){Zo.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function zo(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function Yo(t){var e=ri(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Ho(t){Zo.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function qo(t,e){var o=e;return"number"==typeof e.pointerType&&((o=ri(e,e)).pointerType=t.i[e.pointerType]),o}function Jo(t){Zo.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function _o(t,e,o){var i;Me.call(this,t),this.b=e,this.buttons=function(t){if(t.buttons||$o)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(t=o||{}),this.pressure=(i=t,o=this.buttons,i.pressure||(o?.5:0)),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}e(Wo,xo),e(Ko,Zo),(Mu=Ko.prototype).fm=function(t){var e;zo(this,t)||(1..toString()in this.a&&this.cancel(t),e=Yo(t),this.a[1..toString()]=t,pi(this.b,"pointerdown",e,t))},Mu.gm=function(t){var e;zo(this,t)||(e=Yo(t),pi(this.b,"pointermove",e,t))},Mu.jm=function(t){var e;zo(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=Yo(t),pi(this.b,"pointerup",e,t),delete this.a[1..toString()])},Mu.im=function(t){var e;zo(this,t)||(e=Yo(t),ai(this.b,e,t))},Mu.hm=function(t){var e;zo(this,t)||(e=Yo(t),si(this.b,e,t))},Mu.cancel=function(t){var e=Yo(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Ho,Zo),(Mu=Ho.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=qo(this,t);pi(this.b,"pointerdown",e,t)},Mu.pm=function(t){var e=qo(this,t);pi(this.b,"pointermove",e,t)},Mu.sm=function(t){var e=qo(this,t);pi(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},Mu.qm=function(t){var e=qo(this,t);si(this.b,e,t)},Mu.rm=function(t){var e=qo(this,t);ai(this.b,e,t)},Mu.nm=function(t){var e=qo(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},Mu.mm=function(t){this.b.b(new _o("lostpointercapture",t,t))},Mu.lm=function(t){this.b.b(new _o("gotpointercapture",t,t))},e(Jo,Zo),(Mu=Jo.prototype).ip=function(t){hi(this.b,t)},Mu.jp=function(t){hi(this.b,t)},Mu.mp=function(t){hi(this.b,t)},Mu.kp=function(t){hi(this.b,t)},Mu.lp=function(t){hi(this.b,t)},Mu.hp=function(t){hi(this.b,t)},Mu.em=function(t){hi(this.b,t)},Mu.ul=function(t){hi(this.b,t)},e(_o,Me);var $o=!1;try{$o=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function Qo(t,e){Zo.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function ti(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){var h=(r=t,h=e,n=s[p],(h=ri(h,n)).pointerId=n.identifier+2,h.bubbles=!0,h.cancelable=!0,h.detail=r.g,h.button=0,h.buttons=1,h.width=n.webkitRadiusX||n.radiusX||0,h.height=n.webkitRadiusY||n.radiusY||0,h.pressure=n.webkitForce||n.force||.5,h.isPrimary=r.i===n.identifier,h.pointerType="touch",h.clientX=n.clientX,h.clientY=n.clientY,h.screenX=n.screenX,h.screenY=n.screenY,h);h.preventDefault=i,o.call(t,e,h)}}function ei(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){s(i,o)},2500))}function oi(t){Ae.call(this),this.g=t,this.i={},this.f={},this.a=[],ko?ii(this,new Jo(this)):Do?ii(this,new Ho(this)):(ii(this,t=new Ko(this)),Fo&&ii(this,new Qo(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){de(this.g,t,this.c,this)},o)}function ii(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function ri(t,e){for(var o,i={},r=0,n=li.length;r<n;r++)i[o=li[r][0]]=t[o]||e[o]||li[r][1];return i}function ni(t,e,o){e.bubbles=!1,pi(t,"pointerleave",e,o)}function si(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ni(t,e,o)}function ai(t,e,o){e.bubbles=!0,pi(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,pi(t,"pointerenter",e,o))}function pi(t,e,o,i){t.b(new _o(e,i,o))}function hi(t,e){t.b(new _o(e.type,e,e))}e(Qo,Zo),(Mu=Qo.prototype).ij=function(){this.g=0,this.c=void 0},Mu.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c&&clearTimeout(this.c)),ei(this,t),this.g++,ti(this,t,this.cp)},Mu.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,pi(o,"pointerover",e,t),o=this.b,e.bubbles=!1,pi(o,"pointerenter",e,t),pi(this.b,"pointerdown",e,t)},Mu.qq=function(t){t.preventDefault(),ti(this,t,this.km)},Mu.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,pi(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(si(this.b,o,t),ai(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},Mu.pq=function(t){ei(this,t),ti(this,t,this.sq)},Mu.sq=function(t,e){pi(this.b,"pointerup",e,t),this.b.out(e,t),ni(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},Mu.oq=function(t){ti(this,t,this.Kf)},Mu.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ni(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(oi,Ae),oi.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},oi.prototype.out=function(t,e){t.bubbles=!0,pi(this,"pointerout",t,e)},oi.prototype.cancel=function(t,e){pi(this,"pointercancel",t,e)};var li=[["bubbles",!(oi.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){be(this.g,t,this.c,this)},e);Ae.prototype.ka.call(this)})],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function ui(t,e){Ae.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*Co:Co,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new oi(t),this.a=null,this.l=de(this.g,"pointerdown",this.Ol,this),this.v=de(this.g,"pointermove",this.Lp,this)}function ci(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function fi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function yi(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function gi(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),di(t,0)),e=t.c(i),delete t.a[e],i}function di(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,vi(t,a,e)}function vi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function bi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)di(t,e)}function mi(e,t){yi.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function wi(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=gi(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function xi(t){if(void 0!==t)return 0}function Si(t,e){if(void 0!==t)return t+e}function Mi(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function Pi(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function Ai(t,e){return t[0]+=e[0],t[1]+=e[1],t}function Ei(t,e){var o=t[0];t=t[1];var i=e[0],r=e[1];e=i[0];var i=i[1],n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function Ti(t,e,o){e=L(e+180,360)-180;var i=Math.abs(3600*e);o=o||0;var r=Math.pow(10,o),n=Math.floor(i/3600),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Mi(s)+"′ "+Mi(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function ji(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Ci(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function Li(t,e){var o=Math.cos(e);e=Math.sin(e);var i=t[1]*o+t[0]*e;return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function Ri(t,e){t[0]*=e,t[1]*=e}function Ii(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function Ni(t,e){return Math.sqrt(Ii(t,e))}function Fi(t,e){return Ii(t,Ei(t,e))}function ki(t,e){return ji(t,"{x}, {y}",e)}function Di(){return!0}function Oi(){return!1}function Ui(){je.call(this),this.l=V(),this.v=-1,this.f={},this.o=this.g=0}function Gi(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function Bi(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function Xi(){Ui.call(this),this.ja="XY",this.a=2,this.A=null}function Vi(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function Wi(t,e,o){t.a=Vi(e),t.ja=e,t.A=o}function Zi(t,e,o,i){if(e)o=Vi(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function Ki(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function zi(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+Ki(t,e,a,i);e=a}return r}function Yi(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=f(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Hi(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=y(n,s,a,p))&&(r=n),n=a,s=p}return r}function qi(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Hi(t,e,a,i,r),e=a}return r}function Ji(t,e,o,i,r,n,s,a,p,h,l){if(e==o)return h;if(!r){var u=y(s,a,t[e],t[e+1]);if(u<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,u}return h}for(var c=l||[NaN,NaN],f=e+i;f<o;)if(Yi(t,f-i,f,i,s,a,c),(u=y(s,a,c[0],c[1]))<h){for(h=u,l=0;l<i;++l)p[l]=c[l];f+=p.length=i}else f+=i*Math.max((Math.sqrt(u)-Math.sqrt(h))/r|0,1);if(n&&(Yi(t,o-i,e,i,s,a,c),(u=y(s,a,c[0],c[1]))<h)){for(h=u,l=0;l<i;++l)p[l]=c[l];p.length=i}return h}function _i(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=Ji(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function $i(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function Qi(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function tr(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=Qi(t,e,o[s],i),r[n++]=e;return r.length=n,r}function er(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function or(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=er(t,e,p,i,r[n]),e=p}return r.length=n,r}function ir(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3){for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];return s}var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=S(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l&&o.push(h,l))}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1]);return s}function rr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function nr(t,e){Xi.call(this),this.c=this.j=-1,this.ma(t,e)}function sr(t,e,o){Wi(t,e,o),t.s()}function ar(t,e){Xi.call(this),this.ma(t,e)}function pr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function hr(t,e,o,i,r,n){if(!o.length||!pr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(pr(t,o[e-1],o[e],i,r,n))return!1;return!0}function lr(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&p.push(l=(a-u)/(y-u)*(f-l)+l),l=f,u=y}for(h=NaN,u=-1/0,p.sort(D),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&(hr(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g)),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function ur(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function cr(t,e,o,i,l){var r=Y(V(),t,e,o,i);return!!nt(l,r)&&(!!(N(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||ur(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=R(l,t),h=R(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=!(a=!(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)&&4&h&&!(4&p)?i<=(a=e-(s-r)*t)&&a<=n:a)&&8&h&&!(8&p)?o<=(a=s-(e-i)/t)&&a<=r:a)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function fr(t,e,o,i,r){var n=o[0];if(!(cr(t,e,n,i,r)||pr(t,e,n,i,r[0],r[1])||pr(t,e,n,i,r[0],r[3])||pr(t,e,n,i,r[2],r[1])||pr(t,e,n,i,r[2],r[3])))return!1;if(1===o.length)return!0;for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!H(t,function(t){return!pr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function yr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function gr(t,e,o,i){var r=0;i=void 0!==i&&i;for(var n=0,s=e.length;n<s;++n){var a=e[n],r=yr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function dr(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=yr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function vr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=dr(t,r,e[n],o,i);return r}function br(t,e){Xi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function mr(t){var e;return t.u!=t.i&&(e=$(t.G()),t.D=lr(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function wr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)c(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new br(null)).ba("XY",i,[i.length]),t}function xr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new br(null)).ba("XY",e,[e.length]),o}function Sr(t,e,o){for(var i=e||32,r=t.qa(),n=new br(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Mr(n,t.wa(),t.pd(),o),n}function Mr(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*L(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function Pr(t){je.call(this),t=ht({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=Ot(t.projection),Ar(this,t)}function Ar(t,e){var o={};o.center=void 0!==e.center?e.center:null;var i,r,n,s,a,p,h,l,u,c,f,y=void 0!==e.minZoom?e.minZoom:0,g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(i=(g=e.resolutions)[0],r=g[g.length-1],l=g,function(t,e,o){if(void 0!==t)return(t=x((t=v(l,t,o))+e,0,l.length-1))!=(e=Math.floor(t))&&e<l.length-1?l[e]/Math.pow(l[e]/l[e+1],t-e):l[e]}):(s=(n=((r=(i=Ot(e.projection)).G())?Math.max(rt(r),tt(r)):360*gt.degrees/i.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(i=e.maxResolution)?y=0:i=n/Math.pow(d,y),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?i/Math.pow(d,g):n/Math.pow(d,g):s),g=y+Math.floor(Math.log(i/r)/Math.log(d)),r=i/Math.pow(d,g-y),a=d,p=i,h=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(p/t)/Math.log(a)+(-o/2+.5))+e,0),void 0!==h&&(t=Math.min(t,h)),p/Math.pow(a,t)}),t.a=i,t.f=r,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(c=M(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=c?0:t+e}):!1!==y&&"number"==typeof y?(d=y,u=2*Math.PI/d,function(t,e){if(void 0!==t)return Math.floor((t+e)/u+.5)*u}):Si:xi,t.g={center:void 0!==e.extent?(f=e.extent,function(t){if(t)return[x(t[0],f[0],f[2]),x(t[1],f[1],f[3])]}):le,resolution:g,rotation:y},void 0!==e.resolution?o.resolution=e.resolution:void 0!==e.zoom&&(o.resolution=t.constrainResolution(t.a,e.zoom-t.l)),o.rotation=void 0!==e.rotation?e.rotation:0,t.H(o),t.D=e}function Er(t,e){var o=ht({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),ht({},o,e)}function Tr(t,e,o){var i,r=t.wa();return void 0!==r&&(Li(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),Ai(i,o)),i}function jr(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function Cr(t){var e=[100,100];return t='.ol-viewport[data-view="'+G(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function Lr(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function Rr(t){return t.wa()&&void 0!==t.Pa()}function Ir(t,e,o){t.o[e]+=o,t.s()}function Nr(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function Fr(t){t.b.length=0,t.i=0,t.a=0}function kr(t){je.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function Dr(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:eo}):t.rotate(e,o))}function Or(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=jr(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),Ur(t,e,o,i)}function Ur(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:eo}):(o&&(o=jr(t,e,o),t.ob(o)),t.Vc(e)))}function Gr(t){this.a=(t=t||{}).delta||1,kr.call(this,{handleEvent:Br}),this.g=void 0!==t.duration?t.duration:250}function Br(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,Or(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function Xr(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Vr(t){return!((t=t.originalEvent).button||To&&jo&&t.ctrlKey)}function Wr(t){return"pointermove"==t.type}function Zr(t){return"singleclick"==t.type}function Kr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function zr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Yr(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function Hr(t){return O(t.b,56),"mouse"==t.b.pointerType}function qr(t){return(t=t.b).isPrimary&&0===t.button}function Jr(t){kr.call(this,{handleEvent:(t=t||{}).handleEvent||$r}),this.yf=t.handleDownEvent||Oi,this.If=t.handleDragEvent||w,this.Jf=t.handleMoveEvent||w,this.sk=t.handleUpEvent||Oi,this.D=!1,this.na={},this.o=[]}function _r(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function $r(t){if(!(t instanceof Wo))return!0;var e=!1,o=t.type;return"pointerdown"!==o&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=ut(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),!e}function Qr(t){Jr.call(this,{handleDownEvent:on,handleDragEvent:tn,handleUpEvent:en}),this.a=(t=t||{}).kinetic,this.g=null,this.u=t.condition||Kr,this.j=!1}function tn(t){var e,o,i=this.o,r=_r(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(Ri(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),Li(o,e.rotation),Ai(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&Fr(this.a),this.g=r,this.l=i.length}function en(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&Fr(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i=o-3;0<i&&t.b[i+2]>e;)i-=3;if(!((e=t.b[2+o]-t.b[i+2])<1e3/60)){var r=t.b[o]-t.b[i],o=t.b[1+o]-t.b[i+1];return t.i=Math.atan2(o,r),t.a=Math.sqrt(r*r+o*o)/e,t.a>t.c}}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:eo})),Ir(t,1,-1),!1)}function on(t){if(0<this.o.length&&this.u(t)){var e=t.map.Z();return this.g=null,this.D||Ir(e,1,1),Lr(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&Fr(this.a),this.j=1<this.o.length,!0}return!1}function rn(t){t=t||{},Jr.call(this,{handleDownEvent:an,handleDragEvent:nn,handleUpEvent:sn}),this.g=t.condition||Xr,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function nn(t){var e,o,i;!Hr(t)||(e=(o=t.map).Z()).g.rotation!==xi&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),Dr(e,i-o)),this.a=t)}function sn(t){if(!Hr(t))return!0;Ir(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return Dr(t,e,void 0,o),!1}function an(t){return!!(Hr(t)&&Vr(t)&&this.g(t))&&(Ir(t.map.Z(),1,1),!(this.a=void 0))}function pn(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function hn(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function ln(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new br([e])}function un(t){Jr.call(this,{handleDownEvent:gn,handleDragEvent:fn,handleUpEvent:yn}),this.a=new pn((t=t||{}).className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||Di,this.l=t.boxEndCondition||cn}function cn(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function fn(t){var e,o;Hr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,ln(e),hn(e),this.b(new mn(vn,t.coordinate,t)))}function yn(t){return!Hr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new mn(bn,t.coordinate,t))),!1)}function gn(t){if(Hr(t)&&Vr(t)&&this.C(t)){this.g=t.pixel,this.a.setMap(t.map);var e=this.a,o=this.g;return e.c=this.g,e.i=o,ln(e),hn(e),this.b(new mn(dn,t.coordinate,t)),!0}return!1}e(ui,Ae),(Mu=ui.prototype).Jh=function(t){ci(this,t);var e,o=new Wo("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new Wo("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new Wo("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new Wo("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(me),this.f.length=0,this.o=!1,this.c=null,Se(this.a),this.a=null)},Mu.Ol=function(t){ci(this,t);var e=new Wo("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new oi(document),this.f.push(de(this.a,"pointermove",this.Hm,this),de(this.a,"pointerup",this.Jh,this),de(this.g,"pointercancel",this.Jh,this)))},Mu.Hm=function(t){var e;fi(this,t)&&(this.o=!0,e=new Wo("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},Mu.Lp=function(t){this.b(new Wo(t.type,this.i,t,!(!this.c||!fi(this,t))))},Mu.ka=function(){this.v&&(me(this.v),this.v=null),this.l&&(me(this.l),this.l=null),this.f.forEach(me),this.f.length=0,this.a&&(Se(this.a),this.a=null),this.g&&(Se(this.g),this.g=null),Ae.prototype.ka.call(this)},yi.prototype.clear=function(){this.b.length=0,this.i.length=0,lt(this.a)},yi.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,vi(this,0,this.b.length-1),!0)},e(mi,yi),mi.prototype.f=function(t){var e=yi.prototype.f.call(this,t);return e&&de(t[0],"change",this.o,this),e},mi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(be(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(Ui,je),(Mu=Ui.prototype).Ab=function(t,e){return this.Kb(t[0],t[1],e=e||[NaN,NaN],1/0),e},Mu.sb=function(t){return this.Mc(t[0],t[1])},Mu.Mc=Oi,Mu.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},Mu.Rb=function(t){return this.Vd(t*t)},Mu.tb=function(t,e){return this.Dc(Vt(t,e)),this},e(Xi,Ui),(Mu=Xi.prototype).Mc=Oi,Mu.se=function(t){return W(this.A,0,this.A.length,this.a,t)},Mu.ac=function(){return this.A.slice(0,this.a)},Mu.ga=function(){return this.A},Mu.bc=function(){return this.A.slice(this.A.length-this.a)},Mu.cc=function(){return this.ja},Mu.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<=this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);return o.ga().length<this.A.length?this.f[e]=o:(this.g=t,this)},Mu.hd=function(){return this},Mu.qa=function(){return this.a},Mu.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},Mu.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t);t=Math.sin(t);var a=e[0];e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Mu.scale=function(t,e,o){var i=e;if(void 0===i&&(i=t),a=(a=o)||$(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Mu.translate=function(t,e){var o=this.ga();o&&(Bi(o,0,o.length,this.qa(),t,e,o),this.s())},e(nr,Xi),(Mu=nr.prototype).clone=function(){var t=new nr(null);return sr(t,this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Hi(this.A,0,this.A.length,this.a,0)),this.c=this.i),Ji(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},Mu.qn=function(){return Ki(this.A,0,this.A.length,this.a)},Mu.X=function(){return er(this.A,0,this.A.length,this.a)},Mu.hd=function(t){var e=[];return e.length=ir(this.A,0,this.A.length,this.a,t,e,0),sr(t=new nr(null),"XY",e),t},Mu.U=function(){return"LinearRing"},Mu.Xa=function(){},Mu.ma=function(t,e){t?(Zi(this,e,t,1),this.A||(this.A=[]),this.A.length=Qi(this.A,0,t,this.a),this.s()):sr(this,"XY",null)},e(ar,Xi),(Mu=ar.prototype).clone=function(){var t=new ar(null);return t.ba(this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){var r=this.A;if((t=y(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},Mu.X=function(){return this.A?this.A.slice():[]},Mu.se=function(t){return k(this.A,t)},Mu.U=function(){return"Point"},Mu.Xa=function(t){return j(t,this.A[0],this.A[1])},Mu.ma=function(t,e){t?(Zi(this,e,t,0),this.A||(this.A=[]),this.A.length=$i(this.A,t),this.s()):this.ba("XY",null)},Mu.ba=function(t,e){Wi(this,t,e),this.s()},e(br,Xi),(Mu=br.prototype).pk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Mu.clone=function(){var t=new br(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(qi(this.A,0,this.c,this.a,0)),this.C=this.i),_i(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},Mu.Mc=function(t,e){return hr(this.ec(),0,this.c,this.a,t,e)},Mu.tn=function(){return zi(this.ec(),0,this.c,this.a)},Mu.X=function(t){var e;return void 0!==t?dr(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,or(e,0,this.c,this.a)},Mu.Bb=function(){return this.c},Mu.Tk=function(){return new ar(mr(this))},Mu.Zk=function(){return this.c.length},Mu.Ch=function(t){if(t<0||this.c.length<=t)return null;var e=new nr(null);return sr(e,this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Mu.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new nr(null);sr(p,t,e.slice(r,a)),i.push(p),r=a}return i},Mu.ec=function(){var t;return this.I!=this.i&&(gr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=dr(this.j,0,this.c,this.a)),this.I=this.i),this.j},Mu.hd=function(t){var e=[],o=[];return e.length=rr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new br(null)).ba("XY",e,o),t},Mu.U=function(){return"Polygon"},Mu.Xa=function(t){return fr(this.ec(),0,this.c,this.a,t)},Mu.ma=function(t,e){t?(Zi(this,e,t,2),this.A||(this.A=[]),t=tr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Mu.ba=function(t,e,o){Wi(this,t,e),this.c=o,this.s()},e(Pr,je),(Mu=Pr.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||oo};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),Ir(this,0,1),this.wf()},Mu.Ic=function(){return 0<Lr(this)[0]},Mu.Rk=function(){return 0<Lr(this)[1]},Mu.ed=function(){Ir(this,0,-Lr(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},Mu.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",jr(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Tr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,Ir(this,0,-1),(i=i[0].callback)&&i(!0))}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},Mu.Ec=function(t){return this.g.center(t)},Mu.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},Mu.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},Mu.wa=function(){return this.get("center")},Mu.dd=function(t){t=t||Cr(this);var e=this.wa();O(e,1);var o=this.Pa();O(void 0!==o,2);var i=this.Qa();return O(void 0!==i,3),Q(e,o,i,t)},Mu.Nm=function(){return this.a},Mu.Pm=function(){return this.f},Mu.Om=function(){return this.Ce(this.f)},Mu.eq=function(t){Ar(this,Er(this,{maxZoom:t}))},Mu.Qm=function(){return this.Ce(this.a)},Mu.fq=function(t){Ar(this,Er(this,{minZoom:t}))},Mu.Rm=function(){return this.v},Mu.Pa=function(){return this.get("resolution")},Mu.Sm=function(){return this.j},Mu.ze=function(t,e){return e=e||Cr(this),Math.max(rt(t)/e[0],tt(t)/e[1])},Mu.Qa=function(){return this.get("rotation")},Mu.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},Mu.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},Mu.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=v(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},Mu.Qf=function(t,e){var o=(o=(e=e||{}).size)||Cr(this);t instanceof Xi?"Circle"===t.U()?(f=xr(t=t.G())).rotate(this.Qa(),$(t)):f=t:(O(Array.isArray(t),24),O(!st(t),25),f=xr(t));var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa();t=Math.cos(-p);for(var p=Math.sin(-p),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*(p=-p),i*t+s*p],i=e.callback||w,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},Mu.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i;t=t[1]*r+t[0]*i;var s=this.Pa(),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,this.ob([n*r-t*(i=-i),t*r+n*i])},Mu.rotate=function(t,e){void 0!==e&&(e=Tr(this,t,e),this.ob(e)),this.Oe(t)},Mu.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},Mu.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},Mu.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},Mu.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(kr,je),kr.prototype.c=function(){return this.get("active")},kr.prototype.f=function(){return this.v},kr.prototype.Ha=function(t){this.set("active",t)},kr.prototype.setMap=function(t){this.v=t},e(Gr,kr),e(Jr,kr),Jr.prototype.Xc=function(t){return t},e(Qr,Jr),Qr.prototype.Xc=Oi,e(rn,Jr),rn.prototype.Xc=Oi,e(pn,xe),pn.prototype.ka=function(){this.setMap(null)},pn.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},pn.prototype.V=function(){return this.Gc},e(un,Jr),un.prototype.V=function(){return this.a.V()},un.prototype.j=w;var dn="boxstart",vn="boxdrag",bn="boxend";function mn(t,e,o){Me.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function wn(t){var e=(t=t||{}).condition||zr;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,un.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function xn(t){kr.call(this,{handleEvent:Sn}),t=t||{},this.a=function(t){return Kr(t)&&Yr(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Sn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,Li(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:io,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function Mn(t){kr.call(this,{handleEvent:Pn}),this.g=(t=t||{}).condition||Yr,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function Pn(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t)||43!=e&&45!=e||(o=43==e?this.a:-this.a,Or(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0)),!o}function An(t){kr.call(this,{handleEvent:En}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function En(t){if("wheel"!==(o=t.type)&&"mousewheel"!==o)return!0;t.preventDefault();var e,o=t.map,i=t.originalEvent;if(this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=i.deltaY,Ao&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Co),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-i.wheelDeltaY,Eo&&(e/=3)),0===e)return!1;if(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Tn:jn),this.o!==Tn)return this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,o),e),!1;o=o.Z(),this.l?clearTimeout(this.l):Ir(o,1,1),this.l=setTimeout(this.B.bind(this),400);var r,i=o.Pa()*Math.pow(2,e/300),n=o.f,s=o.a,a=0;return i<n?(i=Math.max(i,n/1.5),a=1):s<i&&(i=Math.min(i,1.5*s),a=-1),this.a&&(r=jr(o,i,this.a),o.ob(o.Ec(r))),o.Vc(i),!a&&this.R&&o.animate({resolution:o.constrainResolution(i,0<e?-1:1),easing:eo,anchor:this.a,duration:this.D}),0<a?o.animate({resolution:n,easing:eo,anchor:this.a,duration:500}):a<0&&o.animate({resolution:s,easing:eo,anchor:this.a,duration:500}),this.g=t,!1}e(mn,Me),e(wn,un),wn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(J(o)),r.Ja(it(o))],r=I(void 0),n=0,s=o.length;n<s;++n)z(r,o[n]);at(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=$(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:eo})},e(xn,kr),e(Mn,kr),e(An,kr),An.prototype.B=function(){this.l=void 0,Ir(this.v.Z(),1,-1)},An.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),Or(t,-x(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},An.prototype.T=function(t){(this.C=t)||(this.a=null)};var Tn="trackpad",jn="wheel";function Cn(t){Jr.call(this,{handleDownEvent:In,handleDragEvent:Ln,handleUpEvent:Rn}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function Ln(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a&&Math.abs(this.l)>this.C&&(this.a=!0)),this.j=i,(i=(t=t.map).Z()).g.rotation!==xi&&(r=t.a.getBoundingClientRect(),(e=_r(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),Dr(i,r+o,this.g)))}function Rn(t){var e,o,i;return!(this.o.length<2)||(Ir(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Dr(t,i,e,o)),!1)}function In(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Ir(t.Z(),1,1),!0)}function Nn(t){Jr.call(this,{handleDownEvent:Dn,handleDragEvent:Fn,handleUpEvent:kn}),this.l=(t=t||{}).constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function Fn(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=_r(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),Ur(r,o,this.g)}function kn(t){if(this.o.length<2){Ir(t=t.map.Z(),1,-1);var e,o,i=t.Pa();return(this.l||i<t.f||i>t.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),Ur(t,i,e,o)),!1}return!0}function Dn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Ir(t.Z(),1,1),!0)}function On(t){t=t||{};var e=new Ne,o=new Nr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new rn),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Gr({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new Qr({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Cn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new Nn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new xn),e.push(new Mn({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new An({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new wn({duration:t.zoomDuration})),e}function Un(t){je.call(this);var e=ht({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function Gn(t){return t.a.opacity=x(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function Bn(t){var e=t||{};delete(t=ht({},e)).layers,e=e.layers,Un.call(this,t),this.f=[],this.c={},de(this,Le(Xn),this.Hl,this),e?Array.isArray(e)?e=new Ne(e.slice(),{unique:!0}):O(e instanceof Ne,43):e=new Ne(void 0,{unique:!0}),this.xi(e)}e(Cn,Jr),Cn.prototype.Xc=Oi,e(Nn,Jr),Nn.prototype.Xc=Oi,e(Un,je),(Mu=Un.prototype).G=function(){return this.get("extent")},Mu.fc=function(){return this.get("maxResolution")},Mu.gc=function(){return this.get("minResolution")},Mu.hc=function(){return this.get("opacity")},Mu.Mb=function(){return this.get("visible")},Mu.Ba=function(){return this.get("zIndex")},Mu.vc=function(t){this.set("extent",t)},Mu.Ac=function(t){this.set("maxResolution",t)},Mu.Bc=function(t){this.set("minResolution",t)},Mu.wc=function(t){this.set("opacity",t)},Mu.xc=function(t){this.set("visible",t)},Mu.Vb=function(t){this.set("zIndex",t)},e(Bn,Un),(Mu=Bn.prototype).Fd=function(){},Mu.Fe=function(){this.Mb()&&this.s()},Mu.Hl=function(){this.f.forEach(me),this.f.length=0;var t=this.qd();for(e in this.f.push(de(t,"add",this.Gl,this),de(t,"remove",this.Il,this)),this.c)this.c[e].forEach(me);lt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[G(i).toString()]=[de(i,"propertychange",this.Fe,this),de(i,"change",this.Fe,this)]}this.s()},Mu.Gl=function(t){var e=G(t=t.element).toString();this.c[e]=[de(t,"propertychange",this.Fe,this),de(t,"change",this.Fe,this)],this.s()},Mu.Il=function(t){t=G(t.element).toString(),this.c[t].forEach(me),delete this.c[t],this.s()},Mu.qd=function(){return this.get(Xn)},Mu.xi=function(t){this.set(Xn,t)},Mu.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=Gn(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?et(r.extent,t.extent):t.extent)}return o},Mu.$f=function(){return"ready"};var Xn="layers";function Vn(t){var e=ht({},t);delete e.source,Un.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),de(this,Le("source"),this.Ul,this),this.Wc(t.source||null)}function Wn(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function Zn(){this.b={},this.a=0}e(Vn,Un),(Mu=Vn.prototype).Yf=function(t){return(t=t||[]).push(Gn(this)),t},Mu.ha=function(){return this.get("source")||null},Mu.$f=function(){var t=this.ha();return t?t.getState():"undefined"},Mu.Tn=function(){this.s()},Mu.Ul=function(){this.v&&(me(this.v),this.v=null);var t=this.ha();t&&(this.v=de(t,"change",this.Tn,this)),this.s()},Mu.setMap=function(t){this.o&&(me(this.o),this.o=null),t||this.s(),this.l&&(me(this.l),this.l=null),t&&(this.o=de(t,"precompose",function(t){var e=Gn(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[G(this)]=e},this),this.l=de(this,"change",t.render,t),this.s())},Mu.Wc=function(t){this.set("source",t)},Zn.prototype.clear=function(){this.b={},this.a=0},Zn.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?Xe(o):"null"))in this.b?this.b[t]:null},Zn.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?Xe(o):"null")]=i,++this.a};var Kn=new Zn,zn=Array(6);function Yn(){return[1,0,0,1,0,0]}function Hn(t){return Jn(t,1,0,0,1,0,0)}function qn(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function Jn(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function _n(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function $n(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function Qn(t,e){var o=Math.cos(e);e=Math.sin(e),qn(t,Jn(zn,o,e,-e,o,0,0))}function ts(t,e,o){return qn(t,Jn(zn,e,0,0,o,0,0))}function es(t,e,o){qn(t,Jn(zn,1,0,0,1,e,o))}function os(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function is(t){var e=t[0]*t[3]-t[1]*t[2];O(!!e,32);var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function rs(t,e){this.o=e,this.c={},this.v={}}function ns(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;os(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),is(_n(i,o))}function ss(){if(32<Kn.a){var t,e=0;for(t in Kn.b){var o=Kn.b[t];3&e++||Ee(o)||(delete Kn.b[t],--Kn.a)}}}function as(t,e){var o=G(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=de(e,"change",t.Fl,t),e)}function ps(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function hs(t,e){return t.zIndex-e.zIndex}function ls(t,e,o,i,r){Me.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(rs,xe),(Mu=rs.prototype).ka=function(){for(var t in this.c)Se(this.c[t])},Mu.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=G(t).toString(),i=r.layerStates[G(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=rt(u=u.G()),((y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]])),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(Wn(f,l)&&o.call(i,y)&&(f=as(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},Mu.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Di,this,i,r)},Mu.Fl=function(){this.o.render()},Mu.Jg=w,Mu.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(o=this.c[t=o],delete this.c[t],me(this.v[t]),delete this.v[t],Se(o))},e(ls,Me);var us=[0,0,0,1],cs=[],fs=[0,0,0,1];function ys(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function gs(){}function ds(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=Yn()}function vs(t,e,o){if(t.M){e=Gi(e,0,o,2,t.S,t.v),o=t.i;var i=t.xb,r=o.globalAlpha;1!=t.l&&(o.globalAlpha=r*t.l);var n=t.fb;t.fa&&(n+=t.Yb);for(var s=0,a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(os(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function bs(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&xs(t,t.g),t.o&&Ss(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=Gi(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=os(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function ms(t,e,o,i,r,n){var s=t.i;for(t=Gi(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function ws(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=ms(t,e,o,i[n],r,!0);return o}function xs(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function Ss(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),Lo&&!U(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,Lo&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function Ms(t,e){rs.call(this,0,e),this.i=Ye(),this.b=this.i.canvas,this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=Yn()}function Ps(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;Ee(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=os(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new ls(e,new ds(h,r,i,t,n),o,h,null)))}(Mu=gs.prototype).zb=function(){},Mu.rd=function(){},Mu.Zb=function(){},Mu.te=function(){},Mu.ue=function(){},Mu.mc=function(){},Mu.nc=function(){},Mu.oc=function(){},Mu.pc=function(){},Mu.qc=function(){},Mu.rc=function(){},Mu.yc=function(){},Mu.Ma=function(){},Mu.Ub=function(){},Mu.Cb=function(){},e(ds,gs),(Mu=ds.prototype).Zb=function(t){var e,o,i;nt(this.c,t.G())&&((this.a||this.b)&&(this.a&&xs(this,this.a),this.b&&Ss(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?Gi(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b&&i.stroke()),""!==this.Ia&&bs(this,t.wa(),2,2))},Mu.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},Mu.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},Mu.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.c,t.G())&&(this.rd(e),this.zb(t))},Mu.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Mu.qc=function(t){var e=t.ga();t=t.qa(),this.M&&vs(this,e,e.length),""!==this.Ia&&bs(this,e,e.length,t)},Mu.oc=function(t){var e=t.ga();t=t.qa(),this.M&&vs(this,e,e.length),""!==this.Ia&&bs(this,e,e.length,t)},Mu.mc=function(t){var e,o;nt(this.c,t.G())&&(this.b&&(Ss(this,this.b),e=this.i,o=t.ga(),e.beginPath(),ms(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia&&bs(this,t=hl(t),2,2))},Mu.nc=function(t){var e=t.G();if(nt(this.c,e)){if(this.b){Ss(this,this.b);var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=ms(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&bs(this,t=ul(t),t.length,2)}},Mu.rc=function(t){var e;nt(this.c,t.G())&&((this.b||this.a)&&(this.a&&xs(this,this.a),this.b&&Ss(this,this.b),(e=this.i).beginPath(),ws(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b&&e.stroke()),""!==this.Ia&&bs(this,t=mr(t),2,2))},Mu.pc=function(t){if(nt(this.c,t.G())){if(this.b||this.a){this.a&&xs(this,this.a),this.b&&Ss(this,this.b);var e=this.i,o=dl(t),i=0,r=t.c,n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=ws(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&bs(this,t=gl(t),t.length,2)}},Mu.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:ze(t||us)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||cs,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:ze(t||fs)}):this.b=null},Mu.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},Mu.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:ze(e||us)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||cs,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:ze(e||fs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(Ms,rs),Ms.prototype.U=function(){return"canvas"},Ms.prototype.Jg=function(t){if(t){var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o);this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,ns(t),Ps(this,"precompose",t);var n=t.layerStatesArray;h(n),o&&(e.save(),ys(e,o,i/2,r/2));for(var i=t.viewState.resolution,r=0,s=n.length;r<s;++r){var a=n[r],p=as(this,p=a.layer);Wn(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Ps(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),ps(this,t),t.postRenderFunctions.push(ss)}else this.a&&(this.b.style.display="none",this.a=!1)},Ms.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=$n(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(Wn(h,s)&&r.call(n,l)&&(h=as(this,l).u(t,e,o,i)))return h}};var As=["Polygon","Circle","LineString","Image","Text"];function Es(){}function Ts(t){this.b=t}function js(t){this.b=t}function Cs(t){this.b=t}function Ls(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(js,Ts),js.prototype.U=function(){return 35632},e(Cs,Ts),Cs.prototype.U=function(){return 35633},e(Ls,js);var Rs=new Ls;function Is(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(Is,Cs);var Ns=new Is;function Fs(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function ks(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Ds(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function Os(t,e){this.origin=$(e),this.xb=Yn(),this.Sa=Yn(),this.$a=Yn(),this.Jb=ks(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function Us(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(Os,gs),Os.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m=t.b;this.g&&(u=m.isEnabled(m.STENCIL_TEST),c=m.getParameter(m.STENCIL_FUNC),f=m.getParameter(m.STENCIL_VALUE_MASK),y=m.getParameter(m.STENCIL_REF),g=m.getParameter(m.STENCIL_WRITEMASK),d=m.getParameter(m.STENCIL_FAIL),v=m.getParameter(m.STENCIL_PASS_DEPTH_PASS),b=m.getParameter(m.STENCIL_PASS_DEPTH_FAIL),m.enable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilMask(255),m.stencilFunc(m.ALWAYS,1,255),m.stencilOp(m.KEEP,m.KEEP,m.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),m.stencilMask(0),m.stencilFunc(m.NOTEQUAL,1,255)),ta(t,34962,this.l),ta(t,34963,this.o),n=this.rf(m,t,r,n);var w,x=Hn(this.xb);return ts(x,2/(o*r[0]),2/(o*r[1])),Qn(x,-i),es(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),ts(e=Hn(this.$a),2/r[0],2/r[1]),r=Hn(this.Sa),i&&Qn(r,-i),m.uniformMatrix4fv(n.i,!1,Ds(this.Jb,x)),m.uniformMatrix4fv(n.f,!1,Ds(this.Jb,e)),m.uniformMatrix4fv(n.c,!1,Ds(this.Jb,r)),m.uniform1f(n.a,s),p?w=t=h?this.ve(m,t,a,p,l):(m.clear(m.COLOR_BUFFER_BIT|m.DEPTH_BUFFER_BIT),this.Od(m,t,a,!0),(t=p(null))?t:void 0):this.Od(m,t,a,!1),this.sf(m,n),this.g&&(u||m.disable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilFunc(c,y,f),m.stencilMask(g),m.stencilOp(d,b,v)),w};var Gs=[0,0,0,1],Bs=[],Xs=[0,0,0,1];function Vs(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=Ws&&-Ws<=t?void 0:0<t}var Ws=Number.EPSILON||2220446049250313e-31;function Zs(t){this.b=void 0!==t?t:[],this.a=Ks}var Ks=35044;function zs(t,e){Os.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function Ys(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function Hs(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(zs,Os),(Mu=zs.prototype).Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=Bi(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1))},Mu.Db=function(){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},Mu.Eb=function(t){var e=this.l,o=this.o;return function(){ea(t,e),ea(t,o)}},Mu.rf=function(t,e,o,i){var r,n=ra(e,Rs,Ns);return this.v?r=this.v:this.v=r=new Fs(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Mu.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},Mu.Od=function(t,e,o){if(ct(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),Ys(this,t,n[1],n[2]),Us(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),Ys(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[G(this.f[s]).toString()]&&(i!==n&&Us(t,e,i,n),n=p),s--,i=p}i!==n&&Us(t,e,i,n),i=n=a}},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),Ys(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}}},Mu.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||Bs,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&Be(o).map(function(t,e){return 3!=e?t/255:t})||Xs,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Gs,this.c.strokeColor&&U(this.c.strokeColor,o)&&this.c.fillColor&&U(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(Hs,js);var qs=new Hs;function Js(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e(Js,Cs);var _s=new Js;function $s(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function Qs(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=d(Bo,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),de(this.j,"webglcontextlost",this.Xo,this),de(this.j,"webglcontextrestored",this.Yo,this)}function ta(t,e,o){var i,r,n=t.b,s=o.b,a=String(G(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function ea(t,e){var o=t.b;e=String(G(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function oa(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=sa(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function ia(t,e){var o=String(G(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function ra(t,e,o){var i=G(e)+"/"+G(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,ia(t,e)),r.attachShader(n,ia(t,o)),r.linkProgram(n),t.i[i]=n}function na(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function sa(t,e,o){var i=na(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function aa(t,e){var o=na(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function pa(t,e){Os.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ha(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function la(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=G(s).toString();a in o?s=o[a]:(s=aa(i,s),o[a]=s),t[n]=s}}function ua(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!Ki(t,0,e,o)}function ca(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Qs,xe),(Mu=Qs.prototype).ka=function(){we(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},Mu.Wo=function(){return this.b},Mu.Xo=function(){lt(this.a),lt(this.c),lt(this.i),this.l=this.v=this.f=this.o=null},Mu.Yo=function(){},Mu.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(pa,Os),(Mu=pa.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}ea(o,i),ea(o,r)}},Mu.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ha(this,e=t.ga(),e.length,t.qa())},Mu.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ha(this,e=t.ga(),e.length,t.qa())},Mu.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new Zs(this.a),this.o=new Zs(this.b);var e={};la(this.va,this.j,e,t),la(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},Mu.rf=function(t,e){var o,i=ra(e,qs,_s);return this.B?o=this.B:this.B=o=new $s(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},Mu.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},Mu.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,ct(o))for(var n=r.length,s=o=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];Us(t,e,s,a),s=a}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[G(this.f[n]).toString()]?(l!==p&&Us(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&Us(t,e,l,p)}},Mu.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,p),p=i(l)))return p;p=h,n--}}},Mu.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?G(this.j[this.j.length-1])!=G(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?G(this.c[this.c.length-1])!=G(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(ca,js);var fa=new ca;function ya(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(ya,Cs);var ga=new ya;function da(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function va(t,e){Os.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function ba(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=ua(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=ma(t,y=y||[0,0],g,[0,0],l*Aa*(a||1),r),r=ma(t,y,g,[0,0],-l*Aa*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=ma(t,y,g,[0,0],l*Ta*a,r),r=ma(t,y,g,[0,0],-l*Ta*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&U(g,c))break;if(!p){a&&(r=ma(t,[0,0],g,c,l*Ea*a,r),r=ma(t,[0,0],g,c,-l*Ea*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=ma(t,[0,0],g,c,l*Pa*(a||1),r),h=(r=ma(t,[0,0],g,c,-l*Pa*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=Vs(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=ma(t,y,g,c,v*ja*(s||1),r);r=ma(t,y,g,c,v*Ca*(s||1),r),r=ma(t,y,g,c,-v*La*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=ma(t,y,g,c,v*Ra*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=ma(t,y,g,c,(v=yr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*ja*(s||1),r),ma(t,y,g,c,-v*La*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function ma(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function wa(t,e,o,i){return!((o-=e)<2*i)&&(o!==2*i||!U([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function xa(t,e,o,i){var r;if(ua(e,e.length,i)||(e.push(e[0]),e.push(e[1])),ba(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)ua(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),ba(t,o[e],o[e].length,i)}function Sa(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}function Ma(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(va,Os),(Mu=va.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),wa(o,0,o.length,t)&&(o=Bi(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),ba(this,o,o.length,t))},Mu.nc=function(t,e){var o=this.b.length,i=t.Bb();i.unshift(0);var r=t.ga();if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)wa(r,i[s-1],i[s],t)&&ba(this,n=Bi(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},Mu.Db=function(){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Mu.Eb=function(t){var e=this.l,o=this.o;return function(){ea(t,e),ea(t,o)}},Mu.rf=function(t,e,o,i){var r,n=ra(e,fa,ga);return this.v?r=this.v:this.v=r=new da(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Mu.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},Mu.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];Ma(this,t,p[0],p[1],p[2]),Us(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(Ma(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(Ma(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}},Mu.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Bs,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&U(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Pa=3,Aa=5,Ea=7,Ta=11,ja=13,Ca=17,La=19,Ra=23;function Ia(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Ia,js);var Na=new Ia;function Fa(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(Fa,Cs);var ka=new Fa;function Da(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function Oa(t){this.a=void 0!==(t=t||{}).color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function Ua(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Ga(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function Ba(t){if(t.b=t.i,t.b)return t.b.data}function Xa(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Va(t){if(t.b&&t.b.next)return t.b.next.data}function Wa(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function Za(t){if(t.b&&t.b.ub)return t.b.ub.data}function Ka(t){if(t.b)return t.b.data}(Mu=Oa.prototype).clone=function(){var t=this.a;return new Oa({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},Mu.No=function(){return this.a},Mu.Vk=function(){return this.f},Mu.Oo=function(){return this.i},Mu.Wk=function(){return this.g},Mu.Xk=function(){return this.j},Mu.bl=function(){return this.o},Mu.Po=function(){return this.c},Mu.Qo=function(t){this.a=t,this.b=void 0},Mu.aq=function(t){this.f=t,this.b=void 0},Mu.setLineDash=function(t){this.i=t,this.b=void 0},Mu.bq=function(t){this.g=t,this.b=void 0},Mu.cq=function(t){this.j=t,this.b=void 0},Mu.gq=function(t){this.o=t,this.b=void 0},Mu.jq=function(t){this.c=t,this.b=void 0},Ua.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var za,Ya={$d:function(){}};function Ha(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function qa(t,e){return t<e?-1:e<t?1:0}function Ja(t,e){if(!(this instanceof Ja))return new Ja(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function _a(t,e){$a(t,0,t.children.length,e,t)}function $a(t,e,o,i,r){(r=r||sp(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],Qa(r,t.ib?i(n):n);return r}function Qa(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function tp(t,e){return t.ca-e.ca}function ep(t,e){return t.da-e.da}function op(t){return(t.$-t.ca)*(t.ia-t.da)}function ip(t){return t.$-t.ca+(t.ia-t.da)}function rp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function np(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function sp(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function ap(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,za(t,n,e,o,r),s.push(e,n,n,o))}function pp(t){this.a=Ya.$d(t),this.b={}}function hp(t,e,o){var i=t.b[G(o)];Z([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function lp(t){return t.a.all().map(function(t){return t.value})}function up(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function cp(t,e,o,i){return fp(up(t,e),o,i)}function fp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function yp(t,e){Os.call(this,0,e),this.g=new va(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function gp(t,e,o,i){var r=new Ua,n=new pp;if(e=dp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new Ua,$:void 0,Mg:new pp};s.push(h),h.$=dp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=Ba(o=s[a].list);do{if(Ap(p,n).length){var l=!0;break}}while(i!==(p=Xa(o)));l||(vp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=Ba(t);n.W.x!==e;)n=Xa(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=Ap({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=Ep(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==Vs(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return!1;if(p=n.W,0<a&&(n=Pp(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=Ba(o);n.W.x!==p.x||n.W.y!==p.y;)n=Xa(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},Va(t).aa=i,Sp(e,n.W,t,r),Sp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),!0}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),vp(r,n,!1)))}}else vp(r,n,!1);!function t(e,o,i){for(var r=!1,n=wp(o,i);3<o.c;)if(n){if(!bp(e,o,i,n,r)&&!vp(o,i,r)&&!mp(e,o,i,!0))break}else if(!bp(e,o,i,n,r)&&!vp(o,i,r)&&!mp(e,o,i)){if(!(n=wp(o,i))){n=e,s=a=Ba(r=o);do{if((p=Ap(s,i)).length){for(a=p[0],p=Ep(s.aa,s.W,a.aa,a.W),p=xp(n,p[0],p[1],n.a.length/2),h=new Ua,l=new pp,Sp(p,s.W,h,l),s.W=p,hp(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=Xa(r);s!==a;)Sp(s.aa,s.W,h,l),i.remove(s),Ga(r),s=Ka(r);Sp(a.aa,p,h,l),a.aa=p,hp(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),vp(r,i,!1),t(n,r,i),vp(h,l,!1),t(n,h,l);break}}while((s=Xa(r))!==a);break}for(var r=o,s=2*r.c,a=Array(s),p=Ba(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,(h=Xa(r))!==p;);r=!yr(a,0,s,2),vp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=Za(o).aa.hb,e.b[n++]=Ka(o).aa.hb,e.b[n++]=Va(o).aa.hb)}(t,r,n)}function dp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===yr(e,0,e.length,o)){var l=s=xp(t,e[0],e[1],a++);n=e[0];for(var u=e[1],c=o,f=e.length;c<f;c+=o){var y=xp(t,e[c],e[c+1],a++);h.push(Sp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}}else for(l=s=xp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=xp(t,e[c],e[c+1],a++),h.push(Sp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Sp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function vp(t,e,o){var i=Ba(t),r=i,n=Xa(t),s=!1;do{var a=o?Vs(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Vs(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(Mp(r,n,t,e),s=!0,n===i&&(i=Va(t)),n=r,Wa(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=Xa(t),r!==i);return s}function bp(t,e,o,i,r){var n=t.b.length,s=Ba(e),a=Za(e),p=s,h=Xa(e),l=Va(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Tp(l.W,g,y,f,a.aa):Tp(a.aa,f,y,g,l.W),!i&&Ap({aa:f,W:g},o).length||!c||Pp(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&yr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,Mp(p,h,e,o),h===s&&(s=l),u=!0)),a=Za(e),p=Ka(e),h=Xa(e),l=Va(e),p!==s&&3<e.c);return u}function mp(t,e,o,i){var r=Ba(e);Xa(e);var n=r,s=Xa(e),a=!1;do{var p=Ep(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=Wa(e);Ga(e),o.remove(l);var u=l===r;if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(Wa(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),Ga(e)):(p=xp(t,p[0],p[1],h),n.W=p,s.aa=p,hp(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),hp(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=Za(e),s=Xa(e),n!==r);return a}function wp(t,e){var o=Ba(t),i=o;do{if(Ap(i,e).length)return!1}while((i=Xa(t))!==o);return!0}function xp(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Sp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function Mp(t,e,o,i){Ka(o)===e&&(Ga(o),t.W=e.W,i.remove(e),hp(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Pp(t,e,o,i,r){var n,s,a=[],p=up(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!pr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function Ap(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=up(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&Ep(i,r,p.aa,p.W,o)&&n.push(p)}return n}function Ep(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&Ws<i&&i<1-Ws&&Ws<o&&o<1-Ws||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Tp(t,e,o,i,r){if(void 0===e.Fb||void 0===i.Fb)return!1;var n=(o.x-i.x)*(e.y-i.y)>(o.y-i.y)*(e.x-i.x);return r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,(i.Fb?r||n:r&&n)&&e}function jp(){}function Cp(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Lp(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function Rp(t,e,o,i,r,n,s,a,p,h,l){var u=Ip,c=Object.keys(t.a).map(Number);c.sort(function(t,e){return e-t});for(var f=0,y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=As.length-1;0<=d;--d){var v=g[As[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}Po=Ya.$d=Ya.$d||{},za=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||qa;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,Ha(e,a=i,o),0<n(e[r],s)&&Ha(e,i,r);a<p;){for(Ha(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?Ha(e,i,p):Ha(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},Ja.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(!np(t,e))return o;for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],np(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):rp(t,a)?this.$g(s,o):p.push(s));e=p.pop()}return o},load:function(t){if(!t||!t.length)return this;if(t.length<this.fh){for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);return this}return t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t,this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=sp([]),this},remove:function(t,e){if(!t)return this;for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!rp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),n=(i=n).children[o=0])}return this},wb:function(t){return t},Lf:tp,Mf:ep,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n=o-e+1,s=this.Hf;if(n<=s){var a=sp(t.slice(e,o+1));return _a(a,this.wb),a}for(i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/Math.pow(s,i-1))),(a=sp([])).ib=!1,a.height=i,ap(t,e,o,s=(n=Math.ceil(n/s))*Math.ceil(Math.sqrt(s)),this.Lf);e<=o;e+=s){var p=Math.min(e+s-1,o);for(ap(t,e,p,n,this.Mf),r=e;r<=p;r+=n){var h=Math.min(r+n-1,p);a.children.push(this.bh(t,r,h,i-1))}}return _a(a,this.wb),a},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=op(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||e.children[0]}return e},eh:function(t,e,o){var i=this.wb;o=o?t:i(t);var r=this.bk(o,this.data,e,i=[]);for(r.children.push(t),Qa(r,o);0<=e&&i[e].children.length>this.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=sp(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,_a(o,this.wb),_a(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=sp([t,e]),this.data.height=t.height+1,this.data.ib=!1,_a(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=$a(t,0,r,this.wb),p=$a(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=op(a)+op(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:tp,r=t.ib?this.Mf:ep;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=$a(t,0,e,i=this.wb),n=$a(t,o-e,o,i),s=ip(r)+ip(n),a=e;a<o-e;a++){var p=t.children[a];Qa(r,t.ib?i(p):p),s+=ip(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],Qa(n,t.ib?i(p):p),s+=ip(n);return s},Zj:function(t,e,o){for(;0<=o;o--)Qa(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():_a(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},Po.default=Ja,Ya.$d=Ya.$d.default,(Mu=pp.prototype).Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[G(e)]=t},Mu.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[G(s)]=n}this.a.load(o)},Mu.remove=function(t){t=G(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},Mu.forEach=function(t,e){return fp(lp(this),t,e)},Mu.clear=function(){this.a.clear(),this.b={}},Mu.G=function(t){var e=this.a.data;return F(e.ca,e.da,e.$,e.ia,t)},Mu.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(yp,Os),(Mu=yp.prototype).pc=function(t,e){var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length;t=t.ga();for(var s=c=0,a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=Bi(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=Bi(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));xa(this.g,h,u,i),gp(this,h,u,i)}}c=p[p.length-1]}this.b.length>r&&(this.i.push(r),this.f.push(e),this.j.s&&(this.c.push(r),this.j.s=!1)),this.g.b.length>n&&Sa(this.g,e,n)},Mu.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=Bi(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=Bi(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Sa(this.g,e),xa(this.g,r,s,i),gp(this,r,s,i)}}},Mu.Db=function(t){this.l=new Zs(this.a),this.o=new Zs(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Mu.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){ea(t,e),ea(t,o),i()}},Mu.rf=function(t,e){var o,i=ra(e,Na,ka);return this.v?o=this.v:this.v=o=new Da(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},Mu.sf=function(t,e){t.disableVertexAttribArray(e.b)},Mu.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),Us(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Us(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Mu.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Us(t,e,h,a),a=i(l)))return a;s--,a=h}}},Mu.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Gs,this.j.fillColor&&U(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new Oa({color:[0,0,0,0],lineWidth:0}))},jp.prototype.La=function(){},e(Cp,Es),Cp.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new Np[e](this.g,this.f),t[e]=o),o},Cp.prototype.i=function(){return ct(this.a)},Cp.prototype.La=function(t,e,o,i,r,n,s,a){var p=Object.keys(this.a).map(Number);p.sort(D);for(var h=0,l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=As.length;c<f;++c){var y=u[As[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},Cp.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,oa(e)),Rp(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?A(k(t),i*this.c):l)};var Ip=[1,1],Np={Circle:zs,Image:pa,LineString:va,Polygon:yp,Text:jp};function Fp(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function kp(){this.c=0,this.b={},this.i=this.a=null}function Dp(t,e){rs.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=Ye(),this.l=!0,this.i=Mo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new Qs(this.b,this.i),de(this.b,"webglcontextlost",this.Yn,this),de(this.b,"webglcontextrestored",this.Zn,this),this.a=new kp,this.u=null,this.j=new yi(function(t){var e=t[1];t=t[2];var o=e[0]-this.u[0],e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(bi(this.j),Op(this,(t=gi(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,Gp(this)}function Op(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function Up(t,e,o){var i,r=t.o;Ee(r,e)&&(t=t.f,i=o.viewState,r.b(new ls(e,new Fp(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function Gp(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(Fp,gs),(Mu=Fp.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},Mu.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},Mu.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.a,t.G())&&(this.rd(e),this.zb(t))},Mu.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Mu.qc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.oc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.mc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.nc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.rc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.pc=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.Zb=function(t,e){var o=this.b,i=new Cp(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Mu.Ub=function(t){this.v=t},Mu.Ma=function(t,e){this.l=t,this.o=e},(Mu=kp.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},Mu.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},Mu.get=function(t){return O(!!(t=this.b[t]),15),t===this.i?t.Yc:(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,(this.i=this.i.Nb=t).Yc)},Mu.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},Mu.replace=function(t,e){this.get(t),this.b[t].Yc=e},Mu.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(Dp,rs),(Mu=Dp.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),Se(this.f),rs.prototype.ka.call(this)},Mu.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},Mu.U=function(){return"webgl"},Mu.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},Mu.Zn=function(){Gp(this),this.o.render()},Mu.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,Up(this,"precompose",t);var i=[],r=t.layerStatesArray;h(r);for(var n=t.viewState.resolution,s=0,a=r.length;s<a;++s){var p=r[s];!Wn(p,n)||"ready"!=p.yj||as(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)as(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),ns(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),Up(this,"postcompose",t),ps(this,t),t.postRenderFunctions.push(ss)},Mu.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(Wn(l,a.resolution)&&n.call(s,u)&&(l=as(this,u).Ea(t,e,o,i,r)))return l}},Mu.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Wn(p,n.resolution)&&i.call(r,h)&&(o=as(this,h).Ue(t,e)))return!0}return o},Mu.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Wn(p,n.resolution)&&r.call(i,h)&&(p=as(this,h).lg(t,e,o,i)))return p}};var Bp=["canvas","webgl"];function Xp(t){je.call(this);var e=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var o={},i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/":"string"==typeof(s=t.logo)?i[s]="":s instanceof HTMLElement?i[G(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof Bn?t.layers:new Bn({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new Pr;var r,n,s=rs;void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(Bp))):r=Bp;var a=0;for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(Ro){s=Ms;break}}else if("webgl"==p&&Go){s=Dp;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new Ne(t.controls.slice()):(O(t.controls instanceof Ne,47),t.controls):ao(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new Ne(t.interactions.slice()):(O(t.interactions instanceof Ne,48),t.interactions):On(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new Ne(t.overlays.slice()):(O(t.overlays instanceof Ne,49),t.overlays):new Ne,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:Co,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=Yn(),this.Jf=Yn(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(Fo?" ol-touch":""),this.a.style.position="relative",this.a.style.overflow="hidden",this.a.style.width="100%",this.a.style.height="100%",this.a.style.msTouchAction="none",this.a.style.touchAction="none",this.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)de(this.D,i[r],Pe);for(o in this.a.appendChild(this.D),this.Sa=new ui(this,t.moveTolerance),Vo)de(this.Sa,Vo[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,de(this.a,"wheel",this.ld,this),de(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new mi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},de(this,Le("layergroup"),this.El,this),de(this,Le("view"),this.Xl,this),de(this,Le("size"),this.Tl,this),de(this,Le("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),de(this.l,"add",function(t){t.element.setMap(this)},this),de(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),de(this.o,"add",function(t){t.element.setMap(this)},this),de(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),de(this.v,"add",function(t){this.kh(t.element)},this),de(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function Vp(t){je.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,de(this,Le(zp),this.zl,this),de(this,Le(Yp),this.Jl,this),de(this,Le(Hp),this.Nl,this),de(this,Le(qp),this.Pl,this),de(this,Le(Jp),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}function Wp(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function Zp(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function Kp(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),Zp(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):Zp(t,!1)}e(Xp,je),(Mu=Xp.prototype).kk=function(t){this.l.push(t)},Mu.lk=function(t){this.o.push(t)},Mu.ih=function(t){this.Kc().qd().push(t)},Mu.jh=function(t){this.v.push(t)},Mu.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},Mu.ka=function(){Se(this.Sa),Se(this.B),be(this.a,"wheel",this.ld,this),be(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),je.prototype.ka.call(this)},Mu.we=function(t,e,o){if(this.c)return t=this.Wa(t),this.B.Ea(t,this.c,void 0!==(o=o||{}).hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||Di,null)},Mu.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||Di,void 0!==r?r:null)},Mu.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),this.B.Ei(t,this.c,void 0!==(e=e||{}).hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||Di,null))},Mu.Tf=function(t){return this.Wa(this.xe(t))},Mu.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},Mu.ag=function(){return this.get("target")},Mu.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},Mu.Wa=function(t){var e=this.c;return e?$n(e.pixelToCoordinateTransform,t.slice()):null},Mu.Lk=function(){return this.l},Mu.fl=function(){return this.v},Mu.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},Mu.Sk=function(){return this.o},Mu.Kc=function(){return this.get("layergroup")},Mu.Xh=function(){return this.Kc().qd()},Mu.Ja=function(t){var e=this.c;return e?$n(e.coordinateToPixelTransform,t.slice(0,2)):null},Mu.Ob=function(){return this.get("size")},Mu.Z=function(){return this.get("view")},Mu.sl=function(){return this.a},Mu.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},Mu.ld=function(t,e){t=new xo(e||t.type,this,t),this.Ih(t)},Mu.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},Mu.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1]&&(t=this.Df?8:0,e=2)),r.j<t&&(bi(r),wi(r,t,e))),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},Mu.Tl=function(){this.render()},Mu.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)me(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[de(t,"keydown",this.ld,this),de(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(qe(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},Mu.Wl=function(){this.render()},Mu.Lh=function(){this.render()},Mu.Xl=function(){this.T&&(me(this.T),this.T=null),this.R&&(me(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",G(t)),this.T=de(t,"propertychange",this.Lh,this),this.R=de(t,"change",this.Lh,this)),this.render()},Mu.El=function(){this.I&&(this.I.forEach(me),this.I=null);var t=this.Kc();t&&(this.I=[de(t,"propertychange",this.render,this),de(t,"change",this.render,this)]),this.render()},Mu.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},Mu.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},Mu.Mp=function(t){return this.l.remove(t)},Mu.Np=function(t){return this.o.remove(t)},Mu.Pp=function(t){return this.Kc().qd().remove(t)},Mu.Qp=function(t){return this.v.remove(t)},Mu.Sp=function(t){var e=this.Ob(),o=this.Z(),i=V(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&Rr(o)){for(var n=Lr(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[G(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:ht({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Q(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(st(this.g)||Z(n.extent,this.g))||(this.b(new wo("movestart",this,r)),this.g=I(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||Z(n.extent,this.g)||(this.b(new wo("moveend",this,n)),g(n.extent,this.g))),this.b(new wo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},Mu.qj=function(t){this.set("layergroup",t)},Mu.Qg=function(t){this.set("size",t)},Mu.Le=function(t){this.set("target",t)},Mu.iq=function(t){this.set("view",t)},Mu.xj=function(t){t=G(t).toString(),this.fa[t]=!0,this.render()},Mu.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},Mu.Cj=function(t){t=G(t).toString(),delete this.fa[t],this.render()},e(Vp,je),(Mu=Vp.prototype).Rd=function(){return this.get(zp)},Mu.Jm=function(){return this.g},Mu.Me=function(){return this.get(Yp)},Mu.Dh=function(){return this.get(Hp)},Mu.Yh=function(){return this.get(qp)},Mu.Eh=function(){return this.get(Jp)},Mu.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},Mu.Jl=function(){this.f&&(qe(this.c),me(this.f),this.f=null);var t=this.Me();t&&(this.f=de(t,"postrender",this.render,this),Kp(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},Mu.render=function(){Kp(this)},Mu.Nl=function(){Kp(this)},Mu.Pl=function(){var t,e,o,i,r,n,s;Kp(this),this.get(qp)&&this.autoPan&&((t=this.Me())&&t.jd()&&(e=Wp(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=Wp(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,N(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing}))))},Mu.Ql=function(){Kp(this)},Mu.lj=function(t){this.set(zp,t)},Mu.setMap=function(t){this.set(Yp,t)},Mu.rj=function(t){this.set(Hp,t)},Mu.Ne=function(t){this.set(qp,t)},Mu.uj=function(t){this.set(Jp,t)};var zp="element",Yp="map",Hp="offset",qp="position",Jp="positioning";function _p(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.Ne(t)}this.j=void 0===(t=t||{}).collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«";"string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n;var s=this.o&&!this.j?this.u:this.D;(n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),de(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map";var a=this.c=new Xp({controls:new Ne,interactions:new Ne,view:t.view});t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new Vp({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),Je.call(this,{element:r,render:t.render||$p,target:t.target});var p=this,h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function $p(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(ot(r)),o=n.Ja(_(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?Qp(this):N(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),th(this)}function Qp(t){var e=t.a;t=t.c;var o=e.Ob(),e=e.Z().dd(o);t=t.Z(),at(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function th(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=J(o),n=it(o),(t=t.a.Z().wa())&&(Li(s=[r[0]-t[0],r[1]-t[1]],p),Ai(s,t)),a.Ne(s),e&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px"))}function eh(t){t.element.classList.toggle("ol-collapsed"),t.j?He(t.u,t.D):He(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),Qp(t),ve(e,"postrender",function(){th(this)},t))}function oh(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",Je.call(this,{element:this.c,render:t.render||rh,target:t.target}),de(this,Le(sh),this.T,this),this.I(t.units||"metric")}e(_p,Je),(Mu=_p.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&be(e,Le("rotation"),this.Ge,this),this.c.Le(null)),Je.prototype.setMap.call(this,t),t&&(this.c.Le(this.C),this.v.push(de(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z()))&&(de(t,Le("rotation"),this.Ge,this),Rr(t)&&(this.c.Ad(),Qp(this)))},Mu.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&be(t,Le("rotation"),this.Ge,this),de(t=this.a.Z(),Le("rotation"),this.Ge,this))},Mu.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},Mu.an=function(t){t.preventDefault(),eh(this)},Mu.$m=function(){return this.o},Mu.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.j&&eh(this))},Mu.bn=function(t){this.o&&this.j!==t&&eh(this)},Mu.Zm=function(){return this.j},Mu.gl=function(){return this.c},e(oh,Je);var ih=[1,2,5];function rh(t){(t=t.frameState)?this.u=t.viewState:this.u=null,nh(this)}function nh(t){if(o=t.u){var e=(i=o.projection).sc(),o=Ft(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=gt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="′",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=ih[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=t.l)break;++n}t.D!=(o=r+" "+i)&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}oh.prototype.C=function(){return this.get(sh)},oh.prototype.T=function(){nh(this)},oh.prototype.I=function(t){this.set(sh,t)};var sh="units";function ah(t){t=t||{},this.c=void 0,this.j=ph,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable";var i=document.createElement("div");i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new oi(i),de(this.o,"pointerdown",this.yl,this),de(this.o,"pointermove",this.wl,this),de(this.o,"pointerup",this.xl,this),de(i,"click",this.vl,this),de(o,"click",Pe),Je.call(this,{element:i,render:t.render||hh})}e(ah,Je),ah.prototype.ka=function(){Se(this.o),Je.prototype.ka.call(this)};var ph=0;function hh(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o<e?(this.j=1,this.D=e-r):(this.j=ph,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c&&(this.c=t,lh(this,t)))}function lh(t,e){var o,i;e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function uh(t,e){return t=t.a.Z(),o=t.a,i=Math.log(o/t.f)/Math.log(2),function(t){return o/Math.pow(2,t*i)}(1-e);var o,i}function ch(t){this.c=(t=t||{}).extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),de(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),Je.call(this,{element:o,target:t.target})}function fh(t){je.call(this),t=t||{},this.a=null,de(this,Le(bh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(Mu=ah.prototype).setMap=function(t){Je.prototype.setMap.call(this,t),t&&t.render()},Mu.vl=function(t){var e=this.a.Z();t=uh(this,x(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:eo})},Mu.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(Ir(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},Mu.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=uh(this,x(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),lh(this,this.c),this.C=t.clientX,this.B=t.clientY)},Mu.xl=function(){var t;this.u&&(Ir(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:eo}),this.u=!1,this.B=this.C=void 0)},e(ch,Je),ch.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(fh,je),(Mu=fh.prototype).ka=function(){this.gg(!1),je.prototype.ka.call(this)},Mu.ap=function(t){var e;null!==t.alpha&&(e=M(t.alpha),this.set(yh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(vh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(vh,M(t.webkitCompassHeading))),null!==t.beta&&this.set(gh,M(t.beta)),null!==t.gamma&&this.set(dh,M(t.gamma)),this.s()},Mu.Fk=function(){return this.get(yh)},Mu.Ik=function(){return this.get(gh)},Mu.Ok=function(){return this.get(dh)},Mu.um=function(){return this.get(vh)},Mu.Th=function(){return this.get(bh)},Mu.vm=function(){var t;Io&&((t=this.Th())&&!this.a?this.a=de(window,"deviceorientation",this.ap,this):t||null===this.a||(me(this.a),this.a=null))},Mu.gg=function(t){this.set(bh,t)};var yh="alpha",gh="beta",dh="gamma",vh="heading",bh="tracking";function mh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function wh(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,xh(this,this.S),mh.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function xh(t,e){var o,i="",r="",n=0,s=null,a=0;t.Ya&&(o=ze(o=null===(o=t.Ya.a)?fs:o),void 0===(a=t.Ya.c)&&(a=1),s=t.Ya.i,Lo||(s=null),void 0===(r=t.Ya.j)&&(r="round"),void 0===(i=t.Ya.f)&&(i="round"),void 0===(n=t.Ya.o)&&(n=10));var p,h=2*(t.b+a)+1,i={strokeStyle:o,zj:a,size:h,lineCap:i,lineDash:s,lineJoin:r,miterLimit:n};void 0===e?(p=Ye(h,h),t.u=p.canvas,e=h=t.u.width,t.rh(i,p,0,0),t.Va?t.D=t.u:(p=Ye(i.size,i.size),t.D=p.canvas,t.qh(i,p,0,0))):(h=Math.round(h),(r=!t.Va)&&(p=t.qh.bind(t,i)),n=t.Ya?(void 0===(n=t.Ya).b&&(n.b="s",n.b=n.a?"string"==typeof n.a?n.b+n.a:n.b+G(n.a).toString():n.b+"-",n.b+=","+(void 0!==n.f?n.f.toString():"-")+","+(n.i?n.i.toString():"-")+","+(void 0!==n.g?n.g:"-")+","+(void 0!==n.j?n.j:"-")+","+(void 0!==n.o?n.o.toString():"-")+","+(void 0!==n.c?n.c.toString():"-")),n.b):"-",s=t.Va?(void 0===(s=t.Va).a&&(s.a=s.b instanceof CanvasPattern||s.b instanceof CanvasGradient?G(s.b).toString():"f"+(s.b?Xe(s.b):"-")),s.a):"-",t.c&&n==t.c[1]&&s==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+n+s+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),n,s,t.b,t.i,t.j,t.o]),p=e.add(t.c[0],h,h,t.rh.bind(t,i),p),t.u=p.image,t.oa=[p.offsetX,p.offsetY],e=p.image.width,t.D=r?p.Zl:t.u),t.C=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Sh(t){wh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Mh(t){this.b=void 0!==(t=t||{}).color?t.color:null,this.a=void 0}function Ph(t){t=t||{},this.Gc=null,this.Za=Ch,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function Ah(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof Ph,41),[t]),t=function(){return e}),t}(Mu=mh.prototype).Ze=function(){return this.f},Mu.$e=function(){return this.l},Mu.af=function(){return this.g},Mu.bf=function(){return this.a},Mu.Ae=function(){return this.v},Mu.td=function(t){this.f=t},Mu.cf=function(t){this.g=t},Mu.ud=function(t){this.a=t},e(wh,mh),(Mu=wh.prototype).clone=function(){var t=new wh({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Mu.Hc=function(){return this.C},Mu.Pi=function(){return this.j},Mu.Fa=function(){return this.Va},Mu.qg=function(){return this.D},Mu.Y=function(){return this.u},Mu.ye=function(){return this.B},Mu.Ye=function(){return 2},Mu.Oc=function(){return this.oa},Mu.Qi=function(){return this.o},Mu.Ri=function(){return this.b},Mu.Fh=function(){return this.i},Mu.ic=function(){return this.ra},Mu.Ga=function(){return this.Ya},Mu.Nh=function(){},Mu.load=function(){},Mu.Bj=function(){},Mu.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(o=this.Va.b,e.fillStyle=ze(o=null===o?us:o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},Mu.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),1/0===(o=this.o))e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=us,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Sh,wh),Sh.prototype.clone=function(){var t=new Sh({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Sh.prototype.Uc=function(t){this.b=t,xh(this,this.S)},Mh.prototype.clone=function(){var t=this.b;return new Mh({color:t&&t.slice?t.slice():t||void 0})},Mh.prototype.i=function(){return this.b},Mh.prototype.c=function(t){this.b=t,this.a=void 0},(Mu=Ph.prototype).clone=function(){var t=this.V();return new Ph({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})},Mu.V=function(){return this.Gc},Mu.Pk=function(){return this.Za},Mu.Fa=function(){return this.Va},Mu.pf=function(t){this.Va=t},Mu.Y=function(){return this.M},Mu.Og=function(t){this.M=t},Mu.Ga=function(){return this.Ya},Mu.qf=function(t){this.Ya=t},Mu.Na=function(){return this.Ia},Mu.xd=function(t){this.Ia=t},Mu.Ba=function(){return this.Fj},Mu.Ra=function(e){"function"==typeof e?this.Za=e:"string"==typeof e?this.Za=function(t){return t.get(e)}:e?e&&(this.Za=function(){return e}):this.Za=Ch,this.Gc=e},Mu.Vb=function(t){this.Fj=t};var Eh=null;function Th(){var t,e;return Eh||(t=new Mh({color:"rgba(255,255,255,0.4)"}),e=new Oa({color:"#3399CC",width:1.25}),Eh=[new Ph({image:new Sh({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),Eh}function jh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new Ph({fill:new Mh({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new Ph({stroke:new Oa({color:e,width:5})}),new Ph({stroke:new Oa({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new Ph({image:new Sh({radius:6,fill:new Mh({color:o}),stroke:new Oa({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function Ch(t){return t.V()}function Lh(t){je.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,de(this,Le(this.c),this.Ee,this),void 0!==t&&(t instanceof Ui||!t?this.Ra(t):this.H(t))}e(Lh,je),(Mu=Lh.prototype).clone=function(){var t=new Lh(this.N());t.Tc(this.c);var e=this.V();return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},Mu.V=function(){return this.get(this.c)},Mu.wm=function(){return this.a},Mu.Qk=function(){return this.c},Mu.xm=function(){return this.g},Mu.Lc=function(){return this.j},Mu.Al=function(){this.s()},Mu.Ee=function(){this.f&&(me(this.f),this.f=null);var t=this.V();t&&(this.f=de(t,"change",this.Al,this)),this.s()},Mu.Ra=function(t){this.set(this.c,t)},Mu.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof Ph,41),[e]),function(){return o})}return t}(t):void 0,this.s()},Mu.jc=function(t){this.a=t,this.s()},Mu.Tc=function(t){be(this,Le(this.c),this.Ee,this),this.c=t,de(this,Le(this.c),this.Ee,this),this.Ee()};var Rh=document.implementation.createDocument("","",null);function Ih(t,e){return Rh.createElementNS(t,e)}function Nh(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function Fh(t){return t instanceof Document}function kh(t){return t instanceof Node}function Dh(t){return(new DOMParser).parseFromString(t,"application/xml")}function Oh(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&c(e[e.length-1],t)}}function Uh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function Gh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function Bh(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function Xh(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function Vh(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function Wh(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=Zh(t.localName)),Jh(n,s,e,o)}}function Zh(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),Ih(o=void 0===(o=r)?t.namespaceURI:o,e)}}var Kh=Zh();function zh(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function Yh(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function Hh(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function qh(t,e,o,i,r){return i.push(t),Hh(e,o,i,r),i.pop()}function Jh(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&(void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i))}function _h(t,e,o,i,r,n,s){r.push(t),Jh(e,o,i,r,n,s),r.pop()}function $h(r,n,s,a){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;!i.status||200<=i.status&&i.status<300?("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?(e=i.responseXML)||(e=Dh(i.responseText)):"arraybuffer"==t&&(e=i.response),e?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function Qh(t,e){return $h(t,e,function(t){this.cd(t)},w)}function tl(){this.f=this.defaultDataProjection=null}function el(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),ol(t,i)}function ol(t,e){return ht({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function il(t,e,o){var i,r=o?Bt(o.featureProjection):null,n=o?Bt(o.dataProjection):null,r=r&&n&&!Xt(r,n)?t instanceof Ui?(e?t.clone():t).tb(e?r:n,e?n:r):Yt(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(r=r===t?r.clone():r).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),r}function rl(){tl.call(this)}function nl(t){return"string"==typeof t?(t=JSON.parse(t))?t:null:null!==t?t:null}function sl(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+D(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=f(t[e+=(-r-2)*i],t[e+i],o),f(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function al(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(f(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function pl(t,e){Xi.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function hl(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function ll(t,e){Xi.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function ul(t){var e=[],o=t.A,i=0,r=t.c;t=t.a;for(var n=0,s=r.length;n<s;++n){var a=r[n];c(e,i=sl(o,i,a,t,.5)),i=a}return e}function cl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),c(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function fl(t,e){Xi.call(this),this.ma(t,e)}function yl(t,e){Xi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function gl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=W(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=dl(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=lr(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function dl(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!gr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=vr(t.j,t.c,t.a)),t.I=t.i}return t.j}function vl(t,e,o,i){Wi(t,e,o),t.c=i,t.s()}function bl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja);for(var p=i.length,h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;c(i,a.ga()),r.push(h)}vl(t,o,i,r)}function ml(t){t=t||{},tl.call(this),this.b=t.geometryName}function wl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=xl(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,Qi(n,0,i[a],r.length),yr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(N(new nr(s[a][0]).G(),new nr(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=ht({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return il((0,Ml[o])(t),!1,e)}function xl(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Sl(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(rl,tl),(Mu=rl.prototype).U=function(){return"json"},Mu.Tb=function(t,e){return this.Rc(nl(t),el(this,t,e))},Mu.Oa=function(t,e){return this.yg(nl(t),el(this,t,e))},Mu.Sc=function(t,e){return this.Cg(nl(t),el(this,t,e))},Mu.kb=function(t){return this.Fg(nl(t))},Mu.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},Mu.Wb=function(t,e){return JSON.stringify(this.he(t,e))},Mu.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(pl,Xi),(Mu=pl.prototype).mk=function(t){this.A?c(this.A,t):this.A=t.slice(),this.s()},Mu.clone=function(){var t=new pl(null);return t.ba(this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Hi(this.A,0,this.A.length,this.a,0)),this.u=this.i),Ji(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},Mu.Ck=function(t,e){return ur(this.A,0,this.A.length,this.a,t,e)},Mu.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:al(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},Mu.X=function(){return er(this.A,0,this.A.length,this.a)},Mu.wh=function(t,e){return sl(this.A,0,this.A.length,this.a,t,e)},Mu.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},Mu.hd=function(t){var e=[];return e.length=ir(this.A,0,this.A.length,this.a,t,e,0),(t=new pl(null)).ba("XY",e),t},Mu.U=function(){return"LineString"},Mu.Xa=function(t){return cr(this.A,0,this.A.length,this.a,t)},Mu.ma=function(t,e){t?(Zi(this,e,t,1),this.A||(this.A=[]),this.A.length=Qi(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Mu.ba=function(t,e){Wi(this,t,e),this.s()},e(ll,Xi),(Mu=ll.prototype).nk=function(t){this.A?c(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Mu.clone=function(){var t=new ll(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Mu.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(qi(this.A,0,this.c,this.a,0)),this.j=this.i),_i(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},Mu.rn=function(t,e,o){return"XYM"!=this.ja&&"XYZM"!=this.ja||!this.A.length?null:function(t,e,o,i,r,n){var s=0;if(n)return al(t,s,e[e.length-1],o,i,r);if(i<t[o-1])return r?((t=t.slice(0,o))[o-1]=i,t):null;if(t[t.length-1]<i)return r?((t=t.slice(t.length-o))[o-1]=i,t):null;for(r=0,n=e.length;r<n;++r){var a=e[r];if(s!=a){if(i<t[s+o-1])break;if(i<=t[a-1])return al(t,s,a,o,i,!1);s=a}}return null}(this.A,this.c,this.a,t,void 0!==e&&e,void 0!==o&&o)},Mu.X=function(){return or(this.A,0,this.c,this.a)},Mu.Bb=function(){return this.c},Mu.Yk=function(t){if(t<0||this.c.length<=t)return null;var e=new pl(null);return e.ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Mu.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new pl(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},Mu.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=ir(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new ll(null)).ba("XY",e,o),t},Mu.U=function(){return"MultiLineString"},Mu.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(cr(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},Mu.ma=function(t,e){t?(Zi(this,e,t,2),this.A||(this.A=[]),t=tr(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Mu.ba=function(t,e,o){Wi(this,t,e),this.c=o,this.s()},e(fl,Xi),(Mu=fl.prototype).qk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.s()},Mu.clone=function(){var t=new fl(null);return t.ba(this.ja,this.A.slice()),t},Mu.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=y(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},Mu.X=function(){return er(this.A,0,this.A.length,this.a)},Mu.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new ar(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},Mu.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new ar(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},Mu.U=function(){return"MultiPoint"},Mu.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(j(t,e[i],e[i+1]))return!0;return!1},Mu.ma=function(t,e){t?(Zi(this,e,t,1),this.A||(this.A=[]),this.A.length=Qi(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Mu.ba=function(t,e){Wi(this,t,e),this.s()},e(yl,Xi),(Mu=yl.prototype).rk=function(t){if(this.A){var e=this.A.length;c(this.A,t.ga());for(var o=0,i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e}else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},Mu.clone=function(){for(var t=new yl(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return vl(t,this.ja,this.A.slice(),o),t},Mu.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=qi(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=dl(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=_i(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}return i},Mu.Mc=function(t,e){t:{var o=dl(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(hr(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Mu.sn=function(){for(var t=dl(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+zi(t,o,s,this.a),o=s[s.length-1];return i},Mu.X=function(t){void 0!==t?vr(e=dl(this).slice(),this.c,this.a,t):e=this.A,t=e;for(var e=this.c,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=or(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},Mu.Uk=function(){var t=new fl(null);return t.ba("XY",gl(this).slice()),t},Mu.hd=function(t){var e=[],o=[],i=this.A,r=this.c,n=this.a;t=Math.sqrt(t);for(var s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=rr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,vl(i=new yl(null),"XY",e,o),i},Mu.jl=function(t){if(t<0||this.c.length<=t)return null;var e;e=t?(e=this.c[t-1])[e.length-1]:0;var o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new br(null)).ba(this.ja,this.A.slice(e,o),t),i},Mu.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new br(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},Mu.U=function(){return"MultiPolygon"},Mu.Xa=function(t){t:{for(var e=dl(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(fr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Mu.ma=function(t,e){if(t){Zi(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=tr(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else vl(this,"XY",null,this.c)},e(ml,rl);var Ml={Point:function(t){return void 0!==t.m&&void 0!==t.z?new ar([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new ar([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new ar([t.x,t.y,t.m],"XYM"):new ar([t.x,t.y])},LineString:function(t){return new pl(t.paths[0],xl(t))},Polygon:function(t){return new br(t.rings,xl(t))},MultiPoint:function(t){return new fl(t.points,xl(t))},MultiLineString:function(t){return new ll(t.paths,xl(t))},MultiPolygon:function(t){return new yl(t.rings,xl(t))}},Pl={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Sl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Sl(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Al(t,e){return(0,Pl[t.U()])(il(t,!0,e),e)}function El(t){this.kc=t}function Tl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function jl(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Tl.apply(this,e)}function Cl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function Ll(t,e){this.kc=t,this.b=e}function Rl(t,e,o){Ll.call(this,"During",t),this.a=e,this.i=o}function Il(t,e,o,i){Ll.call(this,t,e),this.i=o,this.a=i}function Nl(t,e,o){Il.call(this,"PropertyIsEqualTo",t,e,o)}function Fl(t,e){Il.call(this,"PropertyIsGreaterThan",t,e)}function kl(t,e){Il.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function Dl(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Ol(t,e,o){Dl.call(this,"Intersects",t,e,o)}function Ul(t,e,o){Ll.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function Gl(t,e,o,i,r,n){Ll.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function Bl(t){Ll.call(this,"PropertyIsNull",t)}function Xl(t,e){Il.call(this,"PropertyIsLessThan",t,e)}function Vl(t,e){Il.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function Wl(t){this.kc="Not",this.condition=t}function Zl(t,e,o){Il.call(this,"PropertyIsNotEqualTo",t,e,o)}function Kl(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Tl.apply(this,e)}function zl(t,e,o){Dl.call(this,"Within",t,e,o)}function Yl(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(jl,e))}function Hl(t,e,o){return new Cl(t,e,o)}function ql(t){Ui.call(this),this.a=t||null,$l(this)}function Jl(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function _l(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)be(t.a[e],"change",t.s,t)}function $l(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)de(t.a[e],"change",t.s,t)}function Ql(t){t=t||{},tl.call(this),this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=Bt(t.featureProjection)),this.b=t.geometryName}function tu(t,e){return t?il((0,ou[t.type])(t),!1,e):null}function eu(t,e){return(0,iu[t.U()])(il(t,!0,e),e)}(Mu=ml.prototype).Rc=function(t,e){var o=wl(t.geometry,e),i=new Lh;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},Mu.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},Mu.Cg=wl,Mu.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?Bt("EPSG:"+t.spatialReference.wkid):null},Mu.je=function(t,e){return Al(t,ol(this,e))},Mu.Zc=function(t,e){e=ol(this,e);var o={},i=t.V();return i&&(o.geometry=Al(i,e)),delete(i=t.N())[t.c],o.attributes=ct(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:Bt(e.featureProjection).mb.split(":").pop()}),o},Mu.he=function(t,e){e=ol(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Tl,El),e(jl,Tl),e(Cl,El),e(Ll,El),e(Rl,Ll),e(Il,Ll),e(Nl,Il),e(Fl,Il),e(kl,Il),e(Dl,El),e(Ol,Dl),e(Ul,Ll),e(Gl,Ll),e(Bl,Ll),e(Xl,Il),e(Vl,Il),e(Wl,El),e(Zl,Il),e(Kl,Tl),e(zl,Dl),e(ql,Ui),(Mu=ql.prototype).clone=function(){var t=new ql(null);return t.oj(this.a),t},Mu.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},Mu.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},Mu.se=function(t){I(t);for(var e=this.a,o=0,i=e.length;o<i;++o)K(t,e[o].G());return t},Mu.Vf=function(){return Jl(this.a)},Mu.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}return r?(_l(t=new ql(null)),t.a=o,$l(t),t.s(),this.f[e]=t):(this.g=t,this)},Mu.U=function(){return"GeometryCollection"},Mu.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},Mu.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},Mu.scale=function(t,e,o){o=o||$(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},Mu.oj=function(t){t=Jl(t),_l(this),this.a=t,$l(this),this.s()},Mu.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},Mu.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},Mu.ka=function(){_l(this),Ui.prototype.ka.call(this)},e(Ql,rl);var ou={Point:function(t){return new ar(t.coordinates)},LineString:function(t){return new pl(t.coordinates)},Polygon:function(t){return new br(t.coordinates)},MultiPoint:function(t){return new fl(t.coordinates)},MultiLineString:function(t){return new ll(t.coordinates)},MultiPolygon:function(t){return new yl(t.coordinates)},GeometryCollection:function(t,e){return new ql(t=t.geometries.map(function(t){return tu(t,e)}))}},iu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=ht({},o);return delete e.featureProjection,eu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function ru(){this.i=new XMLSerializer,tl.call(this)}function nu(t,e,o){return 0<(t=su(t,e,o)).length?t[0]:null}function su(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(i,t.zc(e,o));return i}function au(t){this.featureType=(t=t||{}).featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:Gh(au.prototype.be),featureMembers:Gh(au.prototype.be)},ru.call(this)}(Mu=Ql.prototype).Rc=function(t,e){e=tu((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new Lh;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},Mu.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},Mu.Cg=tu,Mu.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=Bt(t.properties.name):"EPSG"==t.type?e=Bt("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},Mu.Zc=function(t,e){e=ol(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=eu(i,e):o.geometry=null,delete(e=t.N())[t.c],ct(e)?o.properties=null:o.properties=e,o},Mu.he=function(t,e){e=ol(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},Mu.je=function(t,e){return eu(t,ol(this,e))},e(ru,tl),(Mu=ru.prototype).U=function(){return"xml"},Mu.Tb=function(t,e){return Fh(t)?nu(this,t,e):kh(t)?this.xg(t,e):"string"==typeof t?nu(this,t=Dh(t),e):null},Mu.xg=function(){return null},Mu.Oa=function(t,e){return Fh(t)?su(this,t,e):kh(t)?this.zc(t,e):"string"==typeof t?su(this,t=Dh(t),e):[]},Mu.Sc=function(t,e){return Fh(t)?null:kh(t)?this.aj(t,e):("string"==typeof t&&Dh(t),null)},Mu.aj=function(){return null},Mu.kb=function(t){return Fh(t)?this.Eg(t):kh(t)?this.kf(t):"string"==typeof t?(t=Dh(t),this.Eg(t)):null},Mu.Eg=function(){return this.defaultDataProjection},Mu.kf=function(){return this.defaultDataProjection},Mu.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},Mu.Vg=function(){return null},Mu.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},Mu.Xb=function(){return null},Mu.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},Mu.ie=function(){return null},e(au,ru);var pu=/^[\s\xa0]*$/;function hu(t){return lu(t=Nh(t,!1))}function lu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function uu(t){return t=Nh(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function cu(t){return fu(t=Nh(t,!1))}function fu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function yu(t){return gu(t=Nh(t,!1))}function gu(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function du(t){return Nh(t,!1).trim()}function vu(t,e){wu(t,e?"1":"0")}function bu(t,e){t.appendChild(Rh.createTextNode(e.toPrecision()))}function mu(t,e){t.appendChild(Rh.createTextNode(e.toString()))}function wu(t,e){t.appendChild(Rh.createTextNode(e))}function xu(t){au.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Su(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?Bt(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}wu(t,n.join(" "))}(Mu=au.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?qh([],this.b,t,e,this):qh(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?Uh:Gh)(this.wg,this));y[n[f]]=p}i=qh("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},Mu.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=qh(null,this.Zg,t,e,this))return il(t,!1,o)},Mu.wg=function(t,e){var o;(o=t.getAttribute("fid"))||(o=t.getAttributeNS("http://www.opengis.net/gml","id")||"");var i,r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=Nh(t,!1),pu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(i=s),r[s]=this.gf(t,e))}return e=new Lh(r),i&&e.Tc(i),o&&e.jc(o),e},Mu.fj=function(t,e){if(t=this.ff(t,e))return(e=new ar(null)).ba("XYZ",t),e},Mu.dj=function(t,e){if(t=qh([],this.Nj,t,e,this))return new fl(t)},Mu.cj=function(t,e){if(t=qh([],this.Mj,t,e,this))return cl(e=new ll(null),t),e},Mu.ej=function(t,e){if(t=qh([],this.Oj,t,e,this))return bl(e=new yl(null),t),e},Mu.Xi=function(t,e){Hh(this.Rj,t,e,this)},Mu.Mh=function(t,e){Hh(this.Kj,t,e,this)},Mu.Yi=function(t,e){Hh(this.Sj,t,e,this)},Mu.hf=function(t,e){if(t=this.ff(t,e))return(e=new pl(null)).ba("XYZ",t),e},Mu.wp=function(t,e){if(t=qh(null,this.ke,t,e,this))return t},Mu.bj=function(t,e){if(t=this.ff(t,e))return sr(e=new nr(null),"XYZ",t),e},Mu.jf=function(t,e){if((t=qh([null],this.zf,t,e,this))&&t[0]){e=new br(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Mu.ff=function(t,e){return qh(null,this.ke,t,e,this)},Mu.Nj={"http://www.opengis.net/gml":{pointMember:Uh(au.prototype.Xi),pointMembers:Uh(au.prototype.Xi)}},Mu.Mj={"http://www.opengis.net/gml":{lineStringMember:Uh(au.prototype.Mh),lineStringMembers:Uh(au.prototype.Mh)}},Mu.Oj={"http://www.opengis.net/gml":{polygonMember:Uh(au.prototype.Yi),polygonMembers:Uh(au.prototype.Yi)}},Mu.Rj={"http://www.opengis.net/gml":{Point:Uh(au.prototype.ff)}},Mu.Kj={"http://www.opengis.net/gml":{LineString:Uh(au.prototype.hf)}},Mu.Sj={"http://www.opengis.net/gml":{Polygon:Uh(au.prototype.jf)}},Mu.le={"http://www.opengis.net/gml":{LinearRing:Gh(au.prototype.wp)}},Mu.aj=function(t,e){return(t=this.gf(t,[el(this,t,e||{})]))?t:null},Mu.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&ht(o,el(this,t,e)),this.be(t,[o])||[]},Mu.kf=function(t){return Bt(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(xu,au),(Mu=xu.prototype).Ap=function(t,e){if(t=qh([],this.Lj,t,e,this))return cl(e=new ll(null),t),e},Mu.Bp=function(t,e){if(t=qh([],this.Pj,t,e,this))return bl(e=new yl(null),t),e},Mu.ph=function(t,e){Hh(this.Hj,t,e,this)},Mu.Aj=function(t,e){Hh(this.Uj,t,e,this)},Mu.Ep=function(t,e){return qh([null],this.Qj,t,e,this)},Mu.Hp=function(t,e){return qh([null],this.Tj,t,e,this)},Mu.Fp=function(t,e){return qh([null],this.zf,t,e,this)},Mu.zp=function(t,e){return qh([null],this.ke,t,e,this)},Mu.cm=function(t,e){(t=qh(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Mu.yk=function(t,e){(t=qh(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Mu.gj=function(t,e){if((t=qh([null],this.Vj,t,e,this))&&t[0]){e=new br(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Mu.Zi=function(t,e){if(t=qh([null],this.Ij,t,e,this))return(e=new pl(null)).ba("XYZ",t),e},Mu.vp=function(t,e){return F((t=qh([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},Mu.xp=function(t,e){var o,i=Nh(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?Bt(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},Mu.Bg=function(t,e){var o=Nh(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=Bt(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=gu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=gu(t.getAttribute("dimension")):r&&(i=gu(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},Mu.ke={"http://www.opengis.net/gml":{pos:Gh(xu.prototype.xp),posList:Gh(xu.prototype.Bg)}},Mu.zf={"http://www.opengis.net/gml":{interior:xu.prototype.cm,exterior:xu.prototype.yk}},Mu.Zg={"http://www.opengis.net/gml":{Point:Gh(au.prototype.fj),MultiPoint:Gh(au.prototype.dj),LineString:Gh(au.prototype.hf),MultiLineString:Gh(au.prototype.cj),LinearRing:Gh(au.prototype.bj),Polygon:Gh(au.prototype.jf),MultiPolygon:Gh(au.prototype.ej),Surface:Gh(xu.prototype.gj),MultiSurface:Gh(xu.prototype.Bp),Curve:Gh(xu.prototype.Zi),MultiCurve:Gh(xu.prototype.Ap),Envelope:Gh(xu.prototype.vp)}},Mu.Lj={"http://www.opengis.net/gml":{curveMember:Uh(xu.prototype.ph),curveMembers:Uh(xu.prototype.ph)}},Mu.Pj={"http://www.opengis.net/gml":{surfaceMember:Uh(xu.prototype.Aj),surfaceMembers:Uh(xu.prototype.Aj)}},Mu.Hj={"http://www.opengis.net/gml":{LineString:Uh(au.prototype.hf),Curve:Uh(xu.prototype.Zi)}},Mu.Uj={"http://www.opengis.net/gml":{Polygon:Uh(au.prototype.jf),Surface:Uh(xu.prototype.gj)}},Mu.Vj={"http://www.opengis.net/gml":{patches:Gh(xu.prototype.Ep)}},Mu.Ij={"http://www.opengis.net/gml":{segments:Gh(xu.prototype.Hp)}},Mu.Jj={"http://www.opengis.net/gml":{lowerCorner:Uh(xu.prototype.Bg),upperCorner:Uh(xu.prototype.Bg)}},Mu.Qj={"http://www.opengis.net/gml":{PolygonPatch:Gh(xu.prototype.Fp)}},Mu.Tj={"http://www.opengis.net/gml":{LineStringSegment:Gh(xu.prototype.zp)}},Mu.ni=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ih(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ;var r=o.srsName;o="enu",r&&(o=Bt(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),wu(i,o)};var Mu,Pu={"http://www.opengis.net/gml":{lowerCorner:Vh(wu),upperCorner:Vh(wu)}};(Mu=xu.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),_h({node:t},Pu,Kh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},Mu.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Ih(t.namespaceURI,"posList"),t.appendChild(i),Su(i,e,o)},Mu.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Ih(e.namespaceURI,void 0!==o?"interior":"exterior")},Mu.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),_h({node:t,hasZ:i,srsName:r},ju,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Ih(t.namespaceURI,"patches"),t.appendChild(i),t=Ih(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},Mu.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Ih(t.namespaceURI,"posList"),t.appendChild(i),Su(i,e,o)):"Curve"===t.nodeName&&(i=Ih(t.namespaceURI,"segments"),t.appendChild(i),t=Ih(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},Mu.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),_h({node:t,hasZ:i,srsName:r,surface:n},Au,this.o,e,o,void 0,this)},Mu.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),_h({node:t,hasZ:r,srsName:i},Eu,Zh("pointMember"),e,o,void 0,this)},Mu.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),_h({node:t,hasZ:i,srsName:r,curve:n},Tu,this.o,e,o,void 0,this)},Mu.oi=function(t,e,o){var i=Ih(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},Mu.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},Mu.ln=function(t,e,o){var i=Ih(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},Mu.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},Mu.od=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:il(e,!0,i),_h(r,Cu,this.a,[i],o,void 0,this)},Mu.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c;i.lb||(i.lb={},i.lb[r]={});var s=e.N();e=[];var a=[];for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof Ui?h in i.lb[r]||(i.lb[r][h]=Vh(this.od,this)):h in i.lb[r]||(i.lb[r][h]=Vh(wu)))}var h=ht({},i);h.node=t,_h(h,i.lb,Zh(void 0,r),a,o,e)};var Au={"http://www.opengis.net/gml":{surfaceMember:Vh(xu.prototype.pi),polygonMember:Vh(xu.prototype.pi)}},Eu={"http://www.opengis.net/gml":{pointMember:Vh(xu.prototype.ln)}},Tu={"http://www.opengis.net/gml":{lineStringMember:Vh(xu.prototype.ji),curveMember:Vh(xu.prototype.ji)}},ju={"http://www.opengis.net/gml":{exterior:Vh(xu.prototype.oi),interior:Vh(xu.prototype.oi)}},Cu={"http://www.opengis.net/gml":{Curve:Vh(xu.prototype.Re),MultiCurve:Vh(xu.prototype.li),Point:Vh(xu.prototype.ni),MultiPoint:Vh(xu.prototype.kn),LineString:Vh(xu.prototype.Re),MultiLineString:Vh(xu.prototype.li),LinearRing:Vh(xu.prototype.ki),Polygon:Vh(xu.prototype.Se),MultiPolygon:Vh(xu.prototype.mi),Surface:Vh(xu.prototype.Se),MultiSurface:Vh(xu.prototype.mi),Envelope:Vh(xu.prototype.jn)}},Lu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Ru(t){au.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=Uh(au.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Iu(t){return(t=Ih(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function Nu(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Fu(i,r,o);wu(t,s.join(" "))}function Fu(t,e,o){var i="enu";return e="en"===(i=e?Bt(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}xu.prototype.o=function(t,e){return Ih("http://www.opengis.net/gml",Lu[e[e.length-1].node.nodeName])},xu.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),Ih("http://www.opengis.net/gml",t)},xu.prototype.ie=function(t,e){e=ol(this,e);var o=Ih("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&ht(i,e),this.od(o,t,[i]),o},xu.prototype.Xb=function(t,e){e=ol(this,e);var o=Ih("http://www.opengis.net/gml","featureMembers");o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var i={srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType};e&&ht(i,e);var r=(e=[i])[e.length-1],i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=Vh(this.ii,this),(r=ht({},r)).node=o,_h(r,s,Zh(i,n),t,e),o},e(Ru,au),(Mu=Ru.prototype).$i=function(t,e){t=Nh(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&Bt(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},Mu.tp=function(t,e){return F((t=qh([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},Mu.am=function(t,e){(t=qh(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Mu.bp=function(t,e){(t=qh(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Mu.ke={"http://www.opengis.net/gml":{coordinates:Gh(Ru.prototype.$i)}},Mu.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Ru.prototype.am,outerBoundaryIs:Ru.prototype.bp}},Mu.Gj={"http://www.opengis.net/gml":{coordinates:Uh(Ru.prototype.$i)}},Mu.Zg={"http://www.opengis.net/gml":{Point:Gh(au.prototype.fj),MultiPoint:Gh(au.prototype.dj),LineString:Gh(au.prototype.hf),MultiLineString:Gh(au.prototype.cj),LinearRing:Gh(au.prototype.bj),Polygon:Gh(au.prototype.jf),MultiPolygon:Gh(au.prototype.ej),Box:Gh(Ru.prototype.tp)}},Mu.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),Ih("http://www.opengis.net/gml",t)},Mu.ai=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:il(e,!0,i),_h(r,ku,this.jg,[i],o,void 0,this)},Mu.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Iu(t.namespaceURI),t.appendChild(i),Nu(i,e,o)):"Curve"===t.nodeName&&(i=Ih(t.namespaceURI,"segments"),t.appendChild(i),t=Ih(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},Mu.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),_h({node:t,hasZ:i,srsName:r},Du,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Ih(t.namespaceURI,"patches"),t.appendChild(i),t=Ih(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},Mu.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Ih(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},Mu.gi=function(t,e,o){var i=Ih(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},Mu.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),_h({node:t,hasZ:i,srsName:r,curve:n},Uu,this.a,e,o,void 0,this)},Mu.fi=function(t,e,o){var i=o[o.length-1];o=i.hasZ;var r=i.srsName;r&&t.setAttribute("srsName",r),i=Iu(t.namespaceURI),t.appendChild(i),wu(i,t=Fu(t=e.X(),r,o))},Mu.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),_h({node:t,hasZ:r,srsName:i},Ou,Zh("pointMember"),e,o,void 0,this)},Mu.gn=function(t,e,o){var i=Ih(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},Mu.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},Mu.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Iu(t.namespaceURI),t.appendChild(i),Nu(i,e,o)},Mu.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),_h({node:t,hasZ:i,srsName:r,surface:n},Bu,this.a,e,o,void 0,this)},Mu.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},Mu.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),_h({node:t},Xu,Kh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var ku={"http://www.opengis.net/gml":{Curve:Vh(Ru.prototype.Pe),MultiCurve:Vh(Ru.prototype.di),Point:Vh(Ru.prototype.fi),MultiPoint:Vh(Ru.prototype.fn),LineString:Vh(Ru.prototype.Pe),MultiLineString:Vh(Ru.prototype.di),LinearRing:Vh(Ru.prototype.ci),Polygon:Vh(Ru.prototype.Qe),MultiPolygon:Vh(Ru.prototype.ei),Surface:Vh(Ru.prototype.Qe),MultiSurface:Vh(Ru.prototype.ei),Envelope:Vh(Ru.prototype.en)}},Du={"http://www.opengis.net/gml":{outerBoundaryIs:Vh(Ru.prototype.gi),innerBoundaryIs:Vh(Ru.prototype.gi)}},Ou={"http://www.opengis.net/gml":{pointMember:Vh(Ru.prototype.gn)}},Uu={"http://www.opengis.net/gml":{lineStringMember:Vh(Ru.prototype.bi),curveMember:Vh(Ru.prototype.bi)}};Ru.prototype.a=function(t,e){return Ih("http://www.opengis.net/gml",Gu[e[e.length-1].node.nodeName])};var Gu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Bu={"http://www.opengis.net/gml":{surfaceMember:Vh(Ru.prototype.hi),polygonMember:Vh(Ru.prototype.hi)}},Xu={"http://www.opengis.net/gml":{lowerCorner:Vh(wu),upperCorner:Vh(wu)}};function Vu(t){t=t||{},ru.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.readExtensions}e(Vu,ru);var Wu=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Zu(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function Ku(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,s=e.length/4;n<s;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function zu(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),Hh(Qu,t,e)}function Yu(t,e){e[e.length-1].extensionsNode_=t}function Hu(t,e){var o=e[0];if(t=qh({flatCoordinates:[],layoutOptions:{}},tc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.layoutOptions;delete t.layoutOptions;var i=Ku(i,e),r=new pl(null);return r.ba(i,e),il(r,!1,o),(o=new Lh(r)).H(t),o}}function qu(t,e){var o=e[0];if(t=qh({flatCoordinates:[],ends:[],layoutOptions:{}},oc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.ends;delete t.ends;var r=t.layoutOptions;delete t.layoutOptions;var r=Ku(r,e,i),n=new ll(null);return n.ba(r,e,i),il(n,!1,o),(o=new Lh(n)).H(t),o}}function Ju(t,e){var o=e[0];if(e=qh({},nc,t,e)){var i={};return il(t=new ar(t=Zu([],i,t,e),Ku(i,t)),!1,o),(o=new Lh(t)).H(e),o}}var _u={rte:Hu,trk:qu,wpt:Ju},$u=Yh(Wu,{rte:Uh(Hu),trk:Uh(qu),wpt:Uh(Ju)}),Qu=Yh(Wu,{text:Xh(du,"linkText"),type:Xh(du,"linkType")}),tc=Yh(Wu,{name:Xh(du),cmt:Xh(du),desc:Xh(du),src:Xh(du),link:zu,number:Xh(yu),extensions:Yu,type:Xh(du),rtept:function(t,e){var o=qh({},ec,t,e);o&&Zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),ec=Yh(Wu,{ele:Xh(cu),time:Xh(uu)}),oc=Yh(Wu,{name:Xh(du),cmt:Xh(du),desc:Xh(du),src:Xh(du),link:zu,number:Xh(yu),type:Xh(du),extensions:Yu,trkseg:function(t,e){var o=e[e.length-1];Hh(ic,t,e),o.ends.push(o.flatCoordinates.length)}}),ic=Yh(Wu,{trkpt:function(t,e){var o=qh({},rc,t,e);o&&Zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),rc=Yh(Wu,{ele:Xh(cu),time:Xh(uu)}),nc=Yh(Wu,{ele:Xh(cu),time:Xh(uu),magvar:Xh(cu),geoidheight:Xh(cu),name:Xh(du),cmt:Xh(du),desc:Xh(du),src:Xh(du),link:zu,sym:Xh(du),type:Xh(du),fix:Xh(du),sat:Xh(yu),hdop:Xh(cu),vdop:Xh(cu),pdop:Xh(cu),ageofdgpsdata:Xh(cu),dgpsid:Xh(yu),extensions:Yu});function sc(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function ac(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,_h({node:t},lc,Kh,[e.linkText,e.linkType],o,hc)}function pc(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=zh(n,e=("rtept"==t.nodeName?fc:bc)[r]),_h({node:t,properties:n},mc,Kh,i,o,e)}Vu.prototype.xg=function(t,e){if(!d(Wu,t.namespaceURI))return null;var o=_u[t.localName];return o&&(t=o(t,[el(this,t,e)]))?(sc(this,[t]),t):null},Vu.prototype.zc=function(t,e){return d(Wu,t.namespaceURI)&&"gpx"==t.localName&&(t=qh([],$u,t,[el(this,t,e)]))?(sc(this,t),t):[]};var hc=["text","type"],lc=Yh(Wu,{text:Vh(wu),type:Vh(wu)}),uc=Yh(Wu,"name cmt desc src link number type rtept".split(" ")),cc=Yh(Wu,{name:Vh(wu),cmt:Vh(wu),desc:Vh(wu),src:Vh(wu),link:Vh(ac),number:Vh(mu),type:Vh(wu),rtept:Wh(Vh(pc))}),fc=Yh(Wu,["ele","time"]),yc=Yh(Wu,"name cmt desc src link number type trkseg".split(" ")),gc=Yh(Wu,{name:Vh(wu),cmt:Vh(wu),desc:Vh(wu),src:Vh(wu),link:Vh(ac),number:Vh(mu),type:Vh(wu),trkseg:Wh(Vh(function(t,e,o){_h({node:t,geometryLayout:e.ja,properties:{}},vc,dc,e.X(),o)}))}),dc=Zh("trkpt"),vc=Yh(Wu,{trkpt:Vh(pc)}),bc=Yh(Wu,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),mc=Yh(Wu,{ele:Vh(bu),time:Vh(function(t,e){e=new Date(1e3*e),t.appendChild(Rh.createTextNode(e.getUTCFullYear()+"-"+Mi(e.getUTCMonth()+1)+"-"+Mi(e.getUTCDate())+"T"+Mi(e.getUTCHours())+":"+Mi(e.getUTCMinutes())+":"+Mi(e.getUTCSeconds())+"Z"))}),magvar:Vh(bu),geoidheight:Vh(bu),name:Vh(wu),cmt:Vh(wu),desc:Vh(wu),src:Vh(wu),link:Vh(ac),sym:Vh(wu),type:Vh(wu),fix:Vh(wu),sat:Vh(mu),hdop:Vh(bu),vdop:Vh(bu),pdop:Vh(bu),ageofdgpsdata:Vh(bu),dgpsid:Vh(mu)}),wc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function xc(t,e){if((t=t.V())&&(t=wc[t.U()]))return Ih(e[e.length-1].node.namespaceURI,t)}var Sc=Yh(Wu,{rte:Vh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=il(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=zh(r,i=uc[o[o.length-1].node.namespaceURI]),_h(t,cc,Kh,r,o,i)}),trk:Vh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=il(e,!0,i),r.trkseg=e.gd()),r=zh(r,i=yc[o[o.length-1].node.namespaceURI]),_h(t,gc,Kh,r,o,i)}),wpt:Vh(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=il(e,!0,i),r.geometryLayout=e.ja,pc(t,e.X(),o))})});function Mc(){tl.call(this)}function Pc(t){return"string"==typeof t?t:""}function Ac(t){t=t||{},tl.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.altitudeMode||"none"}Vu.prototype.Xb=function(t,e){e=ol(this,e);var o=Ih("http://www.topografix.com/GPX/1/1","gpx");return o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),_h({node:o},Sc,xc,t,[e]),o},e(Mc,tl),(Mu=Mc.prototype).U=function(){return"text"},Mu.Tb=function(t,e){return this.ae(Pc(t),ol(this,e))},Mu.Oa=function(t,e){return this.zg(Pc(t),ol(this,e))},Mu.Sc=function(t,e){return this.wd(Pc(t),ol(this,e))},Mu.kb=function(){return this.defaultDataProjection},Mu.Bd=function(t,e){return this.ge(t,ol(this,e))},Mu.Wb=function(t,e){return this.Wg(t,ol(this,e))},Mu.$c=function(t,e){return this.Cd(t,ol(this,e))},e(Ac,Mc);var Ec,Tc,jc,Cc,Lc,Rc,Ic,Nc,Fc,kc,Dc,Oc,Uc,Gc,Bc,Xc=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Vc=/^H.([A-Z]{3}).*?:(.*)/,Wc=/^HFDTE(\d{2})(\d{2})(\d{2})/,Zc=/\r\n|\r|\n/;function Kc(t,e,o,i,r,n){Ae.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&zc(this)}function zc(e){var t=Ye(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function Yc(t){this.o=void 0!==(t=t||{}).anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src;O(!(void 0!==i&&e),4),O(!e||e&&o,5),O(void 0!==(i=(void 0===i||!i.length)&&e?e.src||G(e).toString():i)&&0<i.length,6);var r=void 0!==t.src?0:2;this.j=void 0!==t.color?Be(t.color):null;var n=this.ra,s=this.j,a=Kn.get(i,n,s);a||(a=new Kc(e,i,o,n,r,s),Kn.set(i,n,s,a)),this.b=a,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,mh.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function Hc(t){this.a=(t=t||{}).font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Mh({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function qc(t){t=t||{},ru.call(this),Ec||(jc=new Mh({color:Tc=[255,255,255,1]}),Rc=Lc="pixels",kc=new Yc({anchor:Cc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Lc,anchorYUnits:Rc,crossOrigin:"anonymous",rotation:0,scale:Fc=.5,size:Ic=[64,64],src:Nc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Dc="NO_IMAGE",Oc=new Oa({color:Tc,width:1}),Uc=new Oa({color:[51,51,51,1],width:2}),Gc=new Hc({font:"bold 16px Helvetica",fill:jc,stroke:Uc,scale:.8}),Bc=new Ph({fill:jc,image:kc,text:Gc,stroke:Oc,zIndex:0}),Ec=[Bc]),this.defaultDataProjection=Bt("EPSG:4326"),this.a=t.defaultStyle||Ec,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}(Mu=Ac.prototype).ae=function(t,e){var o=this.b,i=t.split(Zc);t={};for(var r=[],n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=Xc.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=Wc.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=Vc.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new pl(null)).ba("none"==o?"XYM":"XYZM",r),(e=new Lh(il(i,!1,e))).H(t),e):null},Mu.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},Mu.ge=function(){},Mu.Wg=function(){},Mu.Cd=function(){},Mu.wd=function(){},e(Kc,Ae),Kc.prototype.v=function(){this.i=3,this.f.forEach(me),this.f=null,this.b("change")},Kc.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(me),this.f=null,zc(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},Kc.prototype.Y=function(){return this.c||this.M},Kc.prototype.load=function(){if(0==this.i){this.i=1,this.f=[ve(this.M,"error",this.v,this),ve(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(Yc,mh),(Mu=Yc.prototype).clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new Yc({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},Mu.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},Mu.Lo=function(){return this.j},Mu.Y=function(t){return this.b.Y(t)},Mu.ye=function(){return this.b.a},Mu.Ye=function(){return this.b.i},Mu.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Ye(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},Mu.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},Mu.Mo=function(){return this.b.o},Mu.ic=function(){return this.D||this.b.a},Mu.Nh=function(t,e){return de(this.b,"change",t,e)},Mu.load=function(){this.b.load()},Mu.Bj=function(t,e){be(this.b,"change",t,e)},(Mu=Hc.prototype).clone=function(){return new Hc({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},Mu.Nk=function(){return this.a},Mu.cl=function(){return this.i},Mu.dl=function(){return this.c},Mu.Fa=function(){return this.Va},Mu.Ro=function(){return this.o},Mu.So=function(){return this.f},Mu.To=function(){return this.b},Mu.Ga=function(){return this.Ya},Mu.Na=function(){return this.Ia},Mu.nl=function(){return this.g},Mu.ol=function(){return this.j},Mu.nj=function(t){this.a=t},Mu.sj=function(t){this.i=t},Mu.tj=function(t){this.c=t},Mu.pf=function(t){this.Va=t},Mu.Uo=function(t){this.f=t},Mu.Si=function(t){this.b=t},Mu.qf=function(t){this.Ya=t},Mu.xd=function(t){this.Ia=t},Mu.vj=function(t){this.g=t},Mu.hq=function(t){this.j=t},e(qc,ru);var Jc=["http://www.google.com/kml/ext/2.2"],_c=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],$c={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function Qc(t,e){var o,i=[0,0],r="start";return!t.Y()||2==(o=null===(o=t.Y().ye())?Ic:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||Gc.a),t.Si(o.b||Gc.b),t.pf(o.Fa()||Gc.Fa()),t.qf(o.Ga()||Uc)):t=Gc.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new Ph({text:t})}function tf(i,r,n,s,a){return function(){var t=a,e="";if((t=t&&this.V()?"Point"===this.V().U():t)&&(e=this.get("name"),t=t&&e),i)return t?(t=Qc(i[0],e),i.concat(t)):i;if(r){var o=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s);return t?(t=Qc(o[0],e),o.concat(t)):o}return t?(t=Qc(n[0],e),n.concat(t)):n}}function ef(t){if(t=Nh(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function of(t){t=Nh(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function rf(t){var e=Nh(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function nf(t){return cu(t)}function sf(t,e){return qh(null,Mf,t,e)}function af(t,e){if(e=qh({A:[],Ej:[]},Af,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new pl(null)).ba("XYZM",t),e}}function pf(t,e){var o=qh({},Sf,t,e);if(t=qh(null,Ef,t,e))return(e=new pl(null)).ba("XYZ",t),e.H(o),e}function hf(t,e){var o=qh({},Sf,t,e);if(t=qh(null,Ef,t,e))return(e=new br(null)).ba("XYZ",t,[t.length]),e.H(o),e}function lf(t,e){if(!(t=qh([],If,t,e)))return null;if(!t.length)return new ql(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,s=t.length;r<s;++r)c(i,(e=t[r]).ga());(n=new fl(null)).ba(o,i),yf(n,t)}else"LineString"==i?(cl(n=new ll(null),t),yf(n,t)):"Polygon"==i?(bl(n=new yl(null),t),yf(n,t)):"GeometryCollection"==i?n=new ql(t):O(!1,37);else n=new ql(t);return n}function uf(t,e){var o=qh({},Sf,t,e);if(t=qh(null,Ef,t,e))return(e=new ar(null)).ba("XYZ",t),e.H(o),e}function cf(t,e){var o=qh({},Sf,t,e);if((t=qh([null],Pf,t,e))&&t[0]){e=new br(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)c(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function ff(t,e){if(!(e=qh({},Xf,t,e)))return null;t="fillStyle"in e?e.fillStyle:jc;var o=e.fill;void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:kc)==Dc&&(o=void 0);var i="textStyle"in e?e.textStyle:Gc,r="strokeStyle"in e?e.strokeStyle:Oc;return[new Ph({fill:t,image:o,stroke:r=void 0!==(e=e.outline)&&!e?null:r,text:i,zIndex:void 0})]}function yf(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function gf(t,e){Hh(bf,t,e)}function df(t,e){Hh(mf,t,e)}var vf=Yh(_c,{displayName:Xh(du),value:Xh(du)}),bf=Yh(_c,{Data:function(t,e){var o=t.getAttribute("name");Hh(vf,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){Hh(Bf,t,e)}}),mf=Yh(_c,{LatLonAltBox:function(t,e){(t=qh({},wf,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=qh({},xf,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),wf=Yh(_c,{altitudeMode:Xh(du),minAltitude:Xh(cu),maxAltitude:Xh(cu),north:Xh(cu),south:Xh(cu),east:Xh(cu),west:Xh(cu)}),xf=Yh(_c,{minLodPixels:Xh(cu),maxLodPixels:Xh(cu),minFadeExtent:Xh(cu),maxFadeExtent:Xh(cu)}),Sf=Yh(_c,{extrude:Xh(hu),altitudeMode:Xh(du)}),Mf=Yh(_c,{coordinates:Gh(of)}),Pf=Yh(_c,{innerBoundaryIs:function(t,e){(t=qh(void 0,Cf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=qh(void 0,Df,t,e))&&(e[e.length-1][0]=t)}}),Af=Yh(_c,{when:function(t,e){e=e[e.length-1].Ej,t=Nh(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},Yh(Jc,{coord:function(t,e){e=e[e.length-1].A,t=Nh(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),Ef=Yh(_c,{coordinates:Gh(of)}),Tf=Yh(_c,{href:Xh(rf)},Yh(Jc,{x:Xh(cu),y:Xh(cu),w:Xh(cu),h:Xh(cu)})),jf=Yh(_c,{Icon:Xh(function(t,e){return(t=qh({},Tf,t,e))?t:null}),heading:Xh(cu),hotSpot:Xh(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:$c[e],y:parseFloat(t.getAttribute("y")),Yg:$c[o],origin:i}}),scale:Xh(nf)}),Cf=Yh(_c,{LinearRing:Gh(sf)}),Lf=Yh(_c,{color:Xh(ef),scale:Xh(nf)}),Rf=Yh(_c,{color:Xh(ef),width:Xh(cu)}),If=Yh(_c,{LineString:Uh(pf),LinearRing:Uh(hf),MultiGeometry:Uh(lf),Point:Uh(uf),Polygon:Uh(cf)}),Nf=Yh(Jc,{Track:Uh(af)}),Ff=Yh(_c,{ExtendedData:gf,Region:df,Link:function(t,e){Hh(kf,t,e)},address:Xh(du),description:Xh(du),name:Xh(du),open:Xh(hu),phoneNumber:Xh(du),visibility:Xh(hu)}),kf=Yh(_c,{href:Xh(rf)}),Df=Yh(_c,{LinearRing:Gh(sf)}),Of=Yh(_c,{Style:Xh(ff),key:Xh(du),styleUrl:Xh(rf)}),Uf=Yh(_c,{ExtendedData:gf,Region:df,MultiGeometry:Xh(lf,"geometry"),LineString:Xh(pf,"geometry"),LinearRing:Xh(hf,"geometry"),Point:Xh(uf,"geometry"),Polygon:Xh(cf,"geometry"),Style:Xh(ff),StyleMap:function(t,e){(t=qh(void 0,Vf,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:Xh(du),description:Xh(du),name:Xh(du),open:Xh(hu),phoneNumber:Xh(du),styleUrl:Xh(rf),visibility:Xh(hu)},Yh(Jc,{MultiTrack:Xh(function(t,e){if(t=qh([],Nf,t,e))return cl(e=new ll(null),t),e},"geometry"),Track:Xh(af,"geometry")})),Gf=Yh(_c,{color:Xh(ef),fill:Xh(hu),outline:Xh(hu)}),Bf=Yh(_c,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=du(t),e[e.length-1][o]=t)}}),Xf=Yh(_c,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=qh({},jf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=Nc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===Nc?(n=Cc,s=Lc,a=Rc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=M(f)),t=t.scale,o?(i==Nc&&(l=Ic,void 0===t&&(t=Fc)),i=new Yc({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=Dc)},LabelStyle:function(t,e){(t=qh({},Lf,t,e))&&(e[e.length-1].textStyle=new Hc({fill:new Mh({color:"color"in t?t.color:Tc}),scale:t.scale}))},LineStyle:function(t,e){(t=qh({},Rf,t,e))&&(e[e.length-1].strokeStyle=new Oa({color:"color"in t?t.color:Tc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=qh({},Gf,t,e))&&((e=e[e.length-1]).fillStyle=new Mh({color:"color"in t?t.color:Tc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline)&&(e.outline=t))}}),Vf=Yh(_c,{Pair:function(t,e){var o;!(t=qh({},Of,t,e))||(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),(t=t.Style)&&(e[e.length-1]=t))}});function Wf(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=Zf(t,e);if(o)return o}}function Zf(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(d(_c,o.namespaceURI)&&"name"==o.localName)return du(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,d(_c,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=Zf(t,o)))return e}function Kf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,zf(t,e));return o}function zf(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)d(_c,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=qh({},Ff,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!d(_c,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||c(i,zf(t,r));return i}function Yf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,t.lf(e));return o}function Hf(t,e){var o;for(e=[255*(4==(e=Be(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}wu(t,e.join(""))}function qf(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Ay):"MultiPoint"==n?(i=e.Zd(),r=Ry):"MultiLineString"==n?(i=e.gd(),r=Iy):"MultiPolygon"==n?(i=e.Td(),r=Fy):O(!1,39),_h(t,gy,r,i,o)}function Jf(t,e,o){_h({node:t},yy,Ny,[e],o)}function _f(t,e,o){var i={node:t};e.a&&t.setAttribute("id",e.a),t=e.N();var r={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};r[e.c]=1;var n,s=Object.keys(t||{}).sort().filter(function(t){return!r[t]});0<s.length&&(n=zh(t,s),_h(i,vy,Cy,[{names:s,values:n}],o)),(s=e.Lc())&&(s=s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),(s=s.Na())&&(t.name=s.Na())),t=zh(t,s=dy[o[o.length-1].node.namespaceURI]),_h(i,vy,Kh,t,o,s),t=o[0],(e=e.V())&&(e=il(e,!0,t)),_h(i,vy,Ay,[e],o)}function $f(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),_h(t,by,Ty,[i],o)}function Qf(t,e,o){var i=(e=e.Sd()).shift();_h(t={node:t},my,Ly,e,o),_h(t,my,ky,[i],o)}function ty(t,e){bu(t,Math.round(1e6*e)/1e6)}(Mu=qc.prototype).vg=function(t,e){if(t=qh([],Yh(_c,{Document:Oh(this.vg,this),Folder:Oh(this.vg,this),Placemark:Uh(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},Mu.Dg=function(t,e){var o=qh({geometry:null},Uf,t,e);if(o){var i=new Lh;return null!==(t=t.getAttribute("id"))&&i.jc(t),e=e[0],(t=o.geometry)&&il(t,!1,e),i.Ra(t),delete o.geometry,this.c&&i.hg(tf(o.Style,o.styleUrl,this.a,this.b,this.g)),delete o.Style,i.H(o),i}},Mu.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=ff(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Mu.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=qh(void 0,Vf,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Mu.xg=function(t,e){return d(_c,t.namespaceURI)&&(t=this.Dg(t,[el(this,t,e)]))?t:null},Mu.zc=function(t,e){if(!d(_c,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[el(this,t,e)]))?o:[];if("Placemark"==o)return(e=this.Dg(t,[el(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&c(o,i)}return o},Mu.Cp=function(t){return Fh(t)?Wf(this,t):kh(t)?Zf(this,t):"string"==typeof t?Wf(this,t=Dh(t)):void 0},Mu.Dp=function(t){var e=[];return Fh(t)?c(e,Kf(this,t)):kh(t)?c(e,zf(this,t)):"string"==typeof t&&c(e,Kf(this,t=Dh(t))),e},Mu.Gp=function(t){var e=[];return Fh(t)?c(e,Yf(this,t)):kh(t)?c(e,this.lf(t)):"string"==typeof t&&c(e,Yf(this,t=Dh(t))),e},Mu.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)d(_c,i.namespaceURI)&&"Region"==i.localName&&(e=qh({},mf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!d(_c,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||c(o,this.lf(i));return o};var ey=Yh(_c,["Document","Placemark"]),oy=Yh(_c,{Document:Vh(function(t,e,o){_h({node:t},iy,Py,e,o,void 0,this)}),Placemark:Vh(_f)}),iy=Yh(_c,{Placemark:Vh(_f)}),ry=Yh(_c,{Data:Vh(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&_h(t,ry,Kh,[e.displayName],o,["displayName"]),null!==e&&e.value&&_h(t,ry,Kh,[e.value],o,["value"])):_h(t,ry,Kh,[e],o,["value"])}),value:Vh(function(t,e){wu(t,e)}),displayName:Vh(function(t,e){t.appendChild(Rh.createCDATASection(e))})}),ny={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},sy=Yh(_c,["href"],Yh(Jc,["x","y","w","h"])),ay=Yh(_c,{href:Vh(wu)},Yh(Jc,{x:Vh(bu),y:Vh(bu),w:Vh(bu),h:Vh(bu)})),py=Yh(_c,["scale","heading","Icon","hotSpot"]),hy=Yh(_c,{Icon:Vh(function(t,e,o){t={node:t};var i=sy[o[o.length-1].node.namespaceURI],r=zh(e,i);_h(t,ay,Kh,r,o,i),r=zh(e,i=sy[Jc[0]]),_h(t,ay,My,r,o,i)}),heading:Vh(bu),hotSpot:Vh(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:Vh(ty)}),ly=Yh(_c,["color","scale"]),uy=Yh(_c,{color:Vh(Hf),scale:Vh(ty)}),cy=Yh(_c,["color","width"]),fy=Yh(_c,{color:Vh(Hf),width:Vh(bu)}),yy=Yh(_c,{LinearRing:Vh($f)}),gy=Yh(_c,{LineString:Vh($f),Point:Vh($f),Polygon:Vh(Qf),GeometryCollection:Vh(qf)}),dy=Yh(_c,"name open visibility address phoneNumber description styleUrl Style".split(" ")),vy=Yh(_c,{ExtendedData:Vh(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)_h(t,ry,jy,[{name:i[n],value:e[n]}],o)}),MultiGeometry:Vh(qf),LineString:Vh($f),LinearRing:Vh($f),Point:Vh($f),Polygon:Vh(Qf),Style:Vh(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof Yc&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=zh(i,e=xy[o[o.length-1].node.namespaceURI]),_h(t,Sy,Kh,i,o,e)}),address:Vh(wu),description:Vh(wu),name:Vh(wu),open:Vh(vu),phoneNumber:Vh(wu),styleUrl:Vh(wu),visibility:Vh(vu)}),by=Yh(_c,{coordinates:Vh(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}wu(t,a)})}),my=Yh(_c,{outerBoundaryIs:Vh(Jf),innerBoundaryIs:Vh(Jf)}),wy=Yh(_c,{color:Vh(Hf)}),xy=Yh(_c,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Sy=Yh(_c,{IconStyle:Vh(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"})),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=zh(n,e=py[o[o.length-1].node.namespaceURI]),_h(t,hy,Kh,n,o,e)}),LabelStyle:Vh(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=zh(i,e=ly[o[o.length-1].node.namespaceURI]),_h(t,uy,Kh,i,o,e)}),LineStyle:Vh(function(t,e,o){t={node:t};var i=cy[o[o.length-1].node.namespaceURI];e=zh({color:e.a,width:e.c},i),_h(t,fy,Kh,e,o,i)}),PolyStyle:Vh(function(t,e,o){_h({node:t},wy,Ey,[e.b],o)})});function My(t,e,o){return Ih(Jc[0],"gx:"+o)}function Py(t,e){return Ih(e[e.length-1].node.namespaceURI,"Placemark")}function Ay(t,e){if(t)return Ih(e[e.length-1].node.namespaceURI,ny[t.U()])}var Ey=Zh("color"),Ty=Zh("coordinates"),jy=Zh("Data"),Cy=Zh("ExtendedData"),Ly=Zh("innerBoundaryIs"),Ry=Zh("Point"),Iy=Zh("LineString"),Ny=Zh("LinearRing"),Fy=Zh("Polygon"),ky=Zh("outerBoundaryIs");function Dy(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function Oy(t){tl.call(this),t=t||{},this.defaultDataProjection=new vt({code:"",units:"tile-pixels"}),this.b=t.featureClass||Dy,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function Uy(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function Gy(){ru.call(this),this.defaultDataProjection=Bt("EPSG:4326")}function By(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}qc.prototype.Xb=function(t,e){e=ol(this,e);var o=Ih(_c[4],"kml");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",Jc[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:o},r={};return 1<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=zh(r,t=ey[o.namespaceURI]),_h(i,oy,Kh,r,[e],t,this),o},Ya.Dd=function(){},function(t){function e(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function s(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}var o=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)};e.c=0,e.i=1,e.b=2,e.a=5,e.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=o(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=o(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;return o<128?i:(i|=(127&(o=e[this.ea++]))<<7,o<128?i:(i|=(127&(o=e[this.ea++]))<<14,o<128?i:(i|=(127&(o=e[this.ea++]))<<21,o<128?i:function(t,e,o){var i=o.lc,r=i[o.ea++],n=(112&r)>>4;if(r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return s(t,n,e);if((r=i[o.ea++])<128)return s(t,n|(1&r)<<31,e);throw Error("Expected varint not more than 10 bytes")}(i|(15&e[this.ea])<<28,t,this))))},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i<t;){var r,n,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128!=(192&(r=e[i+1]))||(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null)),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===e.c)for(;127<this.lc[this.ea++];);else if(t===e.b)this.ea=this.Ka()+this.ea;else if(t===e.a)this.ea+=4;else{if(t!==e.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},t.default=e}(Ya.Dd=Ya.Dd||{}),Ya.Dd=Ya.Dd.default,Ya.xf={},Ya.xf.Bf=function(){},function(t){function e(t,e){this.layers=t.Ag(s,{},e)}function p(t,e){this.x=t,this.y=e}function o(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag(n,this,e)}function n(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function i(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(r,this,e),this.length=this.me.length}function r(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function s(t,e,o){3===t&&((t=new a(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},p.Kq=function(t){return!(t instanceof p)&&Array.isArray(t)?new p(t[0],t[1]):t},o.b=["Unknown","Point","LineString","Polygon"],o.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new p(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},o.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]};var a=i;i.prototype.feature=function(t){if(t<0||t>=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new o(this.Cc,t,this.extent,this.ne,this.pe)};var h=a;t.default={Bf:e,Wj:o,Xj:h},t.Bf=e,t.Wj=o,t.Xj=h}(Ya.xf=Ya.xf||{}),(Mu=Dy.prototype).get=function(t){return this.c[t]},Mu.Bb=function(){return this.f},Mu.G=function(){return this.a||(this.a="Point"===this.i?k(this.b):W(this.b,0,this.b.length,2)),this.a},Mu.Wn=function(){return this.g},Mu.ec=function(){return this.b},Mu.ga=Dy.prototype.ec,Mu.V=function(){return this},Mu.Xn=function(){return this.c},Mu.Vd=Dy.prototype.V,Mu.qa=function(){return 2},Mu.Lc=w,Mu.U=function(){return this.i},e(Oy,tl),(Mu=Oy.prototype).U=function(){return"arraybuffer"},Mu.Oa=function(t,e){var o=this.c;t=new Ya.Dd(t),t=new Ya.xf.Bf(t);var i,r=[],n=this.b;for(i in t.layers)if(!o||-1!=o.indexOf(i))for(var s,a,p,h,l,u,c,f,y,g=t.layers[i],d=0,v=g.length;d<v;++d)n===Dy?(s=void 0,p=i,Uy(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=i,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],Uy(c=c.Oh(),y,f),1===h?u=new(1===c.length?ar:fl)(null):2===h?u=new(1===c.length?pl:ll)(null):3===h&&(u=new br(null)),u.ba("XY",y,f)),l=il(u,!1,ol(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},Mu.kb=function(){return this.defaultDataProjection},Mu.mn=function(t){this.c=t},Mu.Tb=function(){},Mu.Sc=function(){},Mu.Bd=function(){},Mu.$c=function(){},Mu.Wb=function(){},e(Gy,ru);var Xy=[null],Vy=Yh(Xy,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:By}),Wy=Yh(Xy,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,ct((t=qh({fe:{}},Zy,t,e)).fe)||(il(n=new ar(n),!1,o),(o=new Lh(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=qh({md:[],fe:{}},Vy,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)c(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new br(null)).ba("XY",r,[r.length]):(n=new pl(null)).ba("XY",r),il(n,!1,o),(o=new Lh(n)).jc(i),o.H(t.fe),e.features.push(o)}}),Zy=Yh(Xy,{tag:By});function Ky(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function zy(){}function Yy(){}Gy.prototype.zc=function(t,e){return e=el(this,t,e),"osm"==t.localName&&(t=qh({Sh:{},features:[]},Wy,t,[e])).features?t.features:[]},Gy.prototype.Vg=function(){},Gy.prototype.Xb=function(){},Gy.prototype.ie=function(){},zy.prototype.read=function(t){return Fh(t)?this.a(t):kh(t)?this.b(t):"string"==typeof t?(t=Dh(t),this.a(t)):null},e(Yy,zy),Yy.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Yy.prototype.b=function(t){return(t=qh({},Hy,t,[]))?t:null};var Po=[null,"http://www.opengis.net/ows/1.1"],Hy=Yh(Po,{ServiceIdentification:Xh(function(t,e){return qh({},sg,t,e)}),ServiceProvider:Xh(function(t,e){return qh({},ag,t,e)}),OperationsMetadata:Xh(function(t,e){return qh({},og,t,e)})}),qy=Yh(Po,{DeliveryPoint:Xh(du),City:Xh(du),AdministrativeArea:Xh(du),PostalCode:Xh(du),Country:Xh(du),ElectronicMailAddress:Xh(du)}),Jy=Yh(Po,{Value:Bh(du)}),_y=Yh(Po,{AllowedValues:Xh(function(t,e){return qh({},Jy,t,e)})}),$y=Yh(Po,{Phone:Xh(function(t,e){return qh({},ig,t,e)}),Address:Xh(function(t,e){return qh({},qy,t,e)})}),Qy=Yh(Po,{HTTP:Xh(function(t,e){return qh({},tg,t,e)})}),tg=Yh(Po,{Get:Bh(function(t,e){var o=Ky(t);if(o)return qh({href:o},rg,t,e)}),Post:void 0}),eg=Yh(Po,{DCP:Xh(function(t,e){return qh({},Qy,t,e)})}),og=Yh(Po,{Operation:function(t,e){var o=t.getAttribute("name");(t=qh({},eg,t,e))&&(e[e.length-1][o]=t)}}),ig=Yh(Po,{Voice:Xh(du),Facsimile:Xh(du)}),rg=Yh(Po,{Constraint:Bh(function(t,e){var o=t.getAttribute("name");if(o)return qh({name:o},_y,t,e)})}),ng=Yh(Po,{IndividualName:Xh(du),PositionName:Xh(du),ContactInfo:Xh(function(t,e){return qh({},$y,t,e)})}),sg=Yh(Po,{Title:Xh(du),ServiceTypeVersion:Xh(du),ServiceType:Xh(du)}),ag=Yh(Po,{ProviderName:Xh(du),ProviderSite:Xh(Ky),ServiceContact:Xh(function(t,e){return qh({},ng,t,e)})});function pg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function hg(t){t=t||{},tl.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function lg(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return cg(t,o||1e5)}function ug(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=fg(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function cg(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r=t[o],n="";32<=r;)n+=String.fromCharCode(63+(32|31&r)),r>>=5;e+=n+=String.fromCharCode(r+63)}return e}function fg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)r=o[t],o[t]=1&r?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function yg(t){t=t||{},tl.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326")}function gg(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function dg(t,e,o,i,r,n,s){var a=t.type,p=bg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new Lh).Ra(il(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function vg(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(hg,Mc),(Mu=hg.prototype).ae=function(t,e){return new Lh(t=this.wd(t,e))},Mu.zg=function(t,e){return[this.ae(t,e)]},Mu.wd=function(t,e){var o=Vi(this.a);return pg(t=ug(t,o,this.b),t.length,o,t),il(new pl(er(t,0,t.length,o),this.a),!1,ol(this,e))},Mu.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},Mu.Wg=function(t,e){return this.ge(t[0],e)},Mu.Cd=function(t,e){return e=(t=il(t,!0,ol(this,e))).ga(),t=t.qa(),pg(e,e.length,t,e),lg(e,t,this.b)},e(yg,rl),yg.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null;t.transform&&(o=(n=t.transform).scale,i=n.translate);var r=t.arcs;if(n)for(var n=o,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,vg(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=dg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(dg(a,r,o,i,s,v,e))));return n},yg.prototype.Fg=function(){return this.defaultDataProjection};var bg={Point:function(t,e,o){return t=t.coordinates,e&&o&&vg(t,e,o),new ar(t)},LineString:function(t,e){return new pl(t=gg(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=gg(t.arcs[i],e);return new br(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)vg(t[i],e,o);return new fl(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=gg(t.arcs[i],e);return new ll(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=gg(n[a],e);o[i]=s}return new yl(o)}};function mg(t){this.c=(t=t||{}).featureType,this.a=t.featureNS,this.b=t.gmlFormat||new xu,this.o=t.schemaLocation||wg["1.1.0"],ru.call(this)}(Mu=yg.prototype).Zc=function(){},Mu.he=function(){},Mu.je=function(){},Mu.Cg=function(){},Mu.Rc=function(){},e(mg,ru);var wg={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function xg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Mg(t,e)}mg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return ht(o,el(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=Uh(au.prototype.be),t=!(t=qh([],this.b.b,t,e,this.b))?[]:t},mg.prototype.j=function(t){return Fh(t)?jg(t):kh(t)?qh({},Tg,t,[]):"string"==typeof t?jg(t=Dh(t)):void 0},mg.prototype.g=function(t){return Fh(t)?xg(this,t):kh(t)?Mg(this,t):"string"==typeof t?xg(this,t=Dh(t)):void 0};var Sg={"http://www.opengis.net/gml":{boundedBy:Xh(au.prototype.gf,"bounds")}};function Mg(t,e){var o={},i=gu(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,qh(o,Sg,e,[],t.b)}var Pg={"http://www.opengis.net/wfs":{totalInserted:Xh(yu),totalUpdated:Xh(yu),totalDeleted:Xh(yu)}},Ag={"http://www.opengis.net/ogc":{FeatureId:Uh(function(t){return t.getAttribute("fid")})}},Eg={"http://www.opengis.net/wfs":{Feature:function(t,e){Hh(Ag,t,e)}}},Tg={"http://www.opengis.net/wfs":{TransactionSummary:Xh(function(t,e){return qh({},Pg,t,e)},"transactionSummary"),InsertResults:Xh(function(t,e){return qh([],Eg,t,e)},"insertIds")}};function jg(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return qh({},Tg,t,[])}var Cg={"http://www.opengis.net/wfs":{PropertyName:Vh(wu)}};function Lg(t,e){var o=Ih("http://www.opengis.net/ogc","Filter"),i=Ih("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function Rg(t,e){return e.indexOf(t=(t||"feature")+":")?t+e:e}var Ig={"http://www.opengis.net/wfs":{Insert:Vh(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=Ih(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Ru.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c;i.lb||(i.lb={},i.lb[n]={});var a=e.N();e=[];var p=[];for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof Ui?l in i.lb[n]||(i.lb[n][l]=Vh(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=Vh(wu)))}var l=ht({},i);l.node=r,_h(l,i.lb,Zh(void 0,n),p,o,e)}else xu.prototype.ii(r,e,o)}),Update:Vh(function(t,e,o){var i=o[o.length-1];O(void 0!==e.a,27);var r=i.featurePrefix,n=i.featureNS;if(t.setAttribute("typeName",Rg(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}_h({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},Ig,Zh("Property"),s,o),Lg(t,r)}}),Delete:Vh(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",Rg(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Lg(t,e)}),Property:Vh(function(t,e,o){var i=Ih("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),wu(i,e.name),void 0!==e.value&&null!==e.value&&(i=Ih("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof Ui?2===r?Ru.prototype.ai(i,e.value,o):xu.prototype.od(i,e.value,o):wu(i,e.value))}),Native:Vh(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&wu(t,e.value)})}};function Ng(t,e,o){var i={node:t};e.b.forEach(function(t){_h(i,Gg,Zh(t.kc),[t],o)})}function Fg(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Dg(t,e.b),Og(t,""+e.i)}function kg(t,e,o){wu(t=Ih("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function Dg(t,e){kg("PropertyName",t,e)}function Og(t,e){kg("Literal",t,e)}function Ug(t,e){var o=Ih("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=Ih("http://www.opengis.net/gml","timePosition"),o.appendChild(t),wu(t,e)}var Gg={"http://www.opengis.net/wfs":{Query:Vh(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?Rg(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=ht({},i)).node=t,_h(e,Cg,Zh("PropertyName"),s,o),(i=i.filter)&&(s=Ih("http://www.opengis.net/ogc","Filter"),t.appendChild(s),_h({node:s},Gg,Zh(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:Vh(function(t,e){var o=Ih("http://www.opengis.net/fes","ValueReference");wu(o,e.b),t.appendChild(o),o=Ih("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=Ih("http://www.opengis.net/gml","begin"),o.appendChild(t),Ug(t,e.a),t=Ih("http://www.opengis.net/gml","end"),o.appendChild(t),Ug(t,e.i)}),And:Vh(Ng),Or:Vh(Ng),Not:Vh(function(t,e,o){e=e.condition,_h({node:t},Gg,Zh(e.kc),[e],o)}),BBOX:Vh(function(t,e,o){o[o.length-1].srsName=e.srsName,Dg(t,e.geometryName),xu.prototype.od(t,e.extent,o)}),Intersects:Vh(function(t,e,o){o[o.length-1].srsName=e.srsName,Dg(t,e.geometryName),xu.prototype.od(t,e.geometry,o)}),Within:Vh(function(t,e,o){o[o.length-1].srsName=e.srsName,Dg(t,e.geometryName),xu.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:Vh(Fg),PropertyIsNotEqualTo:Vh(Fg),PropertyIsLessThan:Vh(Fg),PropertyIsLessThanOrEqualTo:Vh(Fg),PropertyIsGreaterThan:Vh(Fg),PropertyIsGreaterThanOrEqualTo:Vh(Fg),PropertyIsNull:Vh(function(t,e){Dg(t,e.b)}),PropertyIsBetween:Vh(function(t,e){Dg(t,e.b);var o=Ih("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),Og(o,""+e.a),o=Ih("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),Og(o,""+e.i)}),PropertyIsLike:Vh(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Dg(t,e.b),Og(t,""+e.c)})}};function Bg(t){t=t||{},tl.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function Xg(t){return(t=t.X()).length?t.join(" "):""}function Vg(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function Wg(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+Vg(t[o])+")");return e.join(",")}function Zg(t){var e,o=t.U(),i=(0,Kg[o])(t),o=o.toUpperCase();return t instanceof Xi&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length&&(o+=" "+t)),i.length?o+"("+i+")":o+" EMPTY"}mg.prototype.l=function(t){var e,o,i=Ih("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox&&(O(t.geometryName,12),e=Hl(t.geometryName,t.bbox,t.srsName),o=o?Yl(o,e):e)),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=ht({},(o=[o])[o.length-1])).node=i,_h(e,Gg,Zh("Query"),t,o),i},mg.prototype.v=function(t,e,o,i){var r,n=[],s=Ih("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",wg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),_h(a,Ig,Zh("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),_h(a,Ig,Zh("Update"),e,n)),o&&_h({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Ig,Zh("Delete"),o,n),i.nativeElements&&_h({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Ig,Zh("Native"),i.nativeElements,n),s},mg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},mg.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){var e=[{}];return this.b.gf(t,e),Bt(e.pop().srsName)}return null},e(Bg,Mc);var Kg={Point:Xg,LineString:Vg,Polygon:Wg,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+Xg(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+Vg(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+Wg(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(Zg(t[o]));return e.join(",")}};function zg(t){this.a=t,this.b=-1}function Yg(t){this.i=t,this.a="XY"}function Hg(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){i.type=4;var o=e.b,r=!1,n=!1;do{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;"a"<=(s=e.a.charAt(++e.b))&&s<="z"||"A"<=s&&s<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function qg(t,e){return(e=t.b.type==e)&&Hg(t),e}function Jg(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!qg(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(td(t))}function _g(t){for(var e=[Jg(t)];qg(t,5);)e.push(Jg(t));return e}function $g(t){for(var e=[t.sg()];qg(t,5);)e.push(t.sg());return e}function Qg(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&Hg(t),e}function td(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(Mu=Bg.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new Lh).Ra(t),e):null},Mu.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new Lh).Ra(o[i]),e.push(t);return e},Mu.wd=function(t,e){return Hg(t=new Yg(new zg(t))),(t=function t(e){var o=e.b;if(qg(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i&&Hg(e)),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(qg(e,2)){for(o=[];o.push(t(e)),qg(e,5););if(qg(e,3)){e=o;break t}}else if(Qg(e)){e=[];break t}throw Error(td(e))}return new ql(e)}if(r=od[o],i=ed[o],!r||!i)throw Error("Invalid geometry type: "+o);return o=r.call(e),new i(o,e.a)}throw Error(td(e))}(t))?il(t,!1,e):null},Mu.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},Mu.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new ql(o),this.Cd(t,e)},Mu.Cd=function(t,e){return Zg(il(t,!0,e))},(Mu=Yg.prototype).tg=function(){if(qg(this,2)){var t=Jg(this);if(qg(this,3))return t}else if(Qg(this))return null;throw Error(td(this))},Mu.sg=function(){if(qg(this,2)){var t=_g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.ug=function(){if(qg(this,2)){var t=$g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.fp=function(){if(qg(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];qg(this,5);)t.push(this.tg());else t=_g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.ep=function(){if(qg(this,2)){var t=$g(this);if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))},Mu.gp=function(){if(qg(this,2)){for(var t=[this.ug()];qg(this,5);)t.push(this.ug());if(qg(this,3))return t}else if(Qg(this))return[];throw Error(td(this))};var ed={POINT:ar,LINESTRING:pl,POLYGON:br,MULTIPOINT:fl,MULTILINESTRING:ll,MULTIPOLYGON:yl},od={POINT:Yg.prototype.tg,LINESTRING:Yg.prototype.sg,POLYGON:Yg.prototype.ug,MULTIPOINT:Yg.prototype.fp,MULTILINESTRING:Yg.prototype.ep,MULTIPOLYGON:Yg.prototype.gp};function id(){this.version=void 0}function rd(t,e){return qh({},Md,t,e)}function nd(t,e){return qh({},md,t,e)}function sd(t,e){if(e=rd(t,e))return t=[gu(t.getAttribute("width")),gu(t.getAttribute("height"))],e.size=t,e}function ad(t,e){return qh([],Pd,t,e)}e(id,zy),id.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},id.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=qh({version:this.version},pd,t,[]))?t:null};var Xy=[null,"http://www.opengis.net/wms"],pd=Yh(Xy,{Service:Xh(function(t,e){return qh({},ld,t,e)}),Capability:Xh(function(t,e){return qh({},hd,t,e)})}),hd=Yh(Xy,{Request:Xh(function(t,e){return qh({},bd,t,e)}),Exception:Xh(function(t,e){return qh([],yd,t,e)}),Layer:Xh(function(t,e){return qh({},gd,t,e)})}),ld=Yh(Xy,{Name:Xh(du),Title:Xh(du),Abstract:Xh(du),KeywordList:Xh(ad),OnlineResource:Xh(Ky),ContactInformation:Xh(function(t,e){return qh({},ud,t,e)}),Fees:Xh(du),AccessConstraints:Xh(du),LayerLimit:Xh(yu),MaxWidth:Xh(yu),MaxHeight:Xh(yu)}),ud=Yh(Xy,{ContactPersonPrimary:Xh(function(t,e){return qh({},cd,t,e)}),ContactPosition:Xh(du),ContactAddress:Xh(function(t,e){return qh({},fd,t,e)}),ContactVoiceTelephone:Xh(du),ContactFacsimileTelephone:Xh(du),ContactElectronicMailAddress:Xh(du)}),cd=Yh(Xy,{ContactPerson:Xh(du),ContactOrganization:Xh(du)}),fd=Yh(Xy,{AddressType:Xh(du),Address:Xh(du),City:Xh(du),StateOrProvince:Xh(du),PostCode:Xh(du),Country:Xh(du)}),yd=Yh(Xy,{Format:Uh(du)}),gd=Yh(Xy,{Name:Xh(du),Title:Xh(du),Abstract:Xh(du),KeywordList:Xh(ad),CRS:Bh(du),EX_GeographicBoundingBox:Xh(function(t,e){if(i=qh({},vd,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:Bh(function(t){var e=[fu(t.getAttribute("minx")),fu(t.getAttribute("miny")),fu(t.getAttribute("maxx")),fu(t.getAttribute("maxy"))],o=[fu(t.getAttribute("resx")),fu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:Bh(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:lu(t.getAttribute("multipleValues")),nearestValue:lu(t.getAttribute("nearestValue")),current:lu(t.getAttribute("current")),values:du(t)}}),Attribution:Xh(function(t,e){return qh({},dd,t,e)}),AuthorityURL:Bh(function(t,e){if(e=rd(t,e))return e.name=t.getAttribute("name"),e}),Identifier:Bh(du),MetadataURL:Bh(function(t,e){if(e=rd(t,e))return e.type=t.getAttribute("type"),e}),DataURL:Bh(rd),FeatureListURL:Bh(rd),Style:Bh(function(t,e){return qh({},Sd,t,e)}),MinScaleDenominator:Xh(cu),MaxScaleDenominator:Xh(cu),Layer:Bh(function(t,e){var o=e[e.length-1],i=qh({},gd,t,e);if(i)return void 0===(e=lu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=gu(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=lu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=lu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,(e=fu(t.getAttribute("fixedWidth")))||(e=o.fixedWidth),i.fixedWidth=e,(t=fu(t.getAttribute("fixedHeight")))||(t=o.fixedHeight),i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),dd=Yh(Xy,{Title:Xh(du),OnlineResource:Xh(Ky),LogoURL:Xh(sd)}),vd=Yh(Xy,{westBoundLongitude:Xh(cu),eastBoundLongitude:Xh(cu),southBoundLatitude:Xh(cu),northBoundLatitude:Xh(cu)}),bd=Yh(Xy,{GetCapabilities:Xh(nd),GetMap:Xh(nd),GetFeatureInfo:Xh(nd)}),md=Yh(Xy,{Format:Bh(du),DCPType:Bh(function(t,e){return qh({},wd,t,e)})}),wd=Yh(Xy,{HTTP:Xh(function(t,e){return qh({},xd,t,e)})}),xd=Yh(Xy,{Get:Xh(rd),Post:Xh(rd)}),Sd=Yh(Xy,{Name:Xh(du),Title:Xh(du),Abstract:Xh(du),LegendURL:Bh(sd),StyleSheetURL:Xh(rd),StyleURL:Xh(rd)}),Md=Yh(Xy,{Format:Xh(du),OnlineResource:Xh(Ky)}),Pd=Yh(Xy,{Keyword:Uh(du)});function Ad(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Ru,this.c=t.layers||null,ru.call(this)}function Ed(){this.i=new Yy}function Td(t){var e=du(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t)&&!isNaN(e)))return[t,e]}e(Ad,ru),Ad.prototype.zc=function(t,e){var o={};e&&ht(o,el(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a);var i=t.localName;if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),this.c&&!d(this.c,a)||(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=Uh(this.b.wg,this.b),s=Yh([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),(h=qh([],s,h,o,this.b))&&c(e,h)))}"FeatureCollection"==i&&(t=qh([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Ad.prototype.Vg=function(){},Ad.prototype.Xb=function(){},Ad.prototype.ie=function(){},e(Ed,zy),Ed.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Ed.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o?(o.version=e,(o=qh(o,jd,t,[]))?o:null):null};var Po=[null,"http://www.opengis.net/wmts/1.0"],Xy=[null,"http://www.opengis.net/ows/1.1"],jd=Yh(Po,{Contents:Xh(function(t,e){return qh({},Cd,t,e)})}),Cd=Yh(Po,{Layer:Bh(function(t,e){return qh({},Ld,t,e)}),TileMatrixSet:Bh(function(t,e){return qh({},Od,t,e)})}),Ld=Yh(Po,{Style:Bh(function(t,e){if(e=qh({},Rd,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:Bh(du),TileMatrixSetLink:Bh(function(t,e){return qh({},Id,t,e)}),Dimension:Bh(function(t,e){return qh({},kd,t,e)}),ResourceURL:Bh(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template");t=t.getAttribute("resourceType");var i={};return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},Yh(Xy,{Title:Xh(du),Abstract:Xh(du),WGS84BoundingBox:Xh(function(t,e){if(2==(t=qh([],Dd,t,e)).length)return P(t)}),Identifier:Xh(du)})),Rd=Yh(Po,{LegendURL:Bh(function(t){var e={};return e.format=t.getAttribute("format"),e.href=Ky(t),e})},Yh(Xy,{Title:Xh(du),Identifier:Xh(du)})),Id=Yh(Po,{TileMatrixSet:Xh(du),TileMatrixSetLimits:Xh(function(t,e){return qh([],Nd,t,e)})}),Nd=Yh(Po,{TileMatrixLimits:Uh(function(t,e){return qh({},Fd,t,e)})}),Fd=Yh(Po,{TileMatrix:Xh(du),MinTileRow:Xh(yu),MaxTileRow:Xh(yu),MinTileCol:Xh(yu),MaxTileCol:Xh(yu)}),kd=Yh(Po,{Default:Xh(du),Value:Bh(du)},Yh(Xy,{Identifier:Xh(du)})),Dd=Yh(Xy,{LowerCorner:Uh(Td),UpperCorner:Uh(Td)}),Od=Yh(Po,{WellKnownScaleSet:Xh(du),TileMatrix:Bh(function(t,e){return qh({},Ud,t,e)})},Yh(Xy,{SupportedCRS:Xh(du),Identifier:Xh(du)})),Ud=Yh(Po,{TopLeftCorner:Xh(Td),ScaleDenominator:Xh(cu),TileWidth:Xh(yu),TileHeight:Xh(yu),MatrixWidth:Xh(yu),MatrixHeight:Xh(yu)},Yh(Xy,{Identifier:Xh(du)}));function Gd(t){je.call(this),t=t||{},this.a=null,this.f=Zt,this.c=void 0,de(this,Le("projection"),this.Am,this),de(this,Le("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function Bd(t,e,o){Xi.call(this),this.Ng(t,e||0,o)}function Xd(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function Vd(t,e,o){for(var i,r,n,s,a,p=[],h=t(0),l=t(1),u=e(h),c=e(l),f=[l,h],y=[c,u],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)n=g.pop(),h=f.pop(),u=y.pop(),(l=n.toString())in d||(p.push(u[0],u[1]),d[l]=!0),s=g.pop(),l=f.pop(),c=y.pop(),S((r=e(i=t(a=(n+s)/2)))[0],r[1],u[0],u[1],c[0],c[1])<o?(p.push(c[0],c[1]),d[l=s.toString()]=!0):(g.push(s,a,a,n),y.push(c,r,r,u),f.push(l,i,i,h));return p}function Wd(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:Zd,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||Ti.bind(this,"EW"),this.Ua=t.latLabelFormatter||Ti.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new Hc({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Mh({color:"rgba(0,0,0,1)"}),stroke:new Oa({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new Hc({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Mh({color:"rgba(0,0,0,1)"}),stroke:new Oa({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(Gd,je),(Mu=Gd.prototype).ka=function(){this.Ke(!1),je.prototype.ka.call(this)},Mu.Am=function(){var t=this.Uh();t&&(this.f=Wt(Bt("EPSG:4326"),t),this.a&&this.set("position",this.f(this.a)))},Mu.Bm=function(){var t;No&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},Mu.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:M(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=wr(At,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},Mu.op=function(t){t.type="error",this.Ke(!1),this.b(t)},Mu.Dk=function(){return this.get("accuracy")},Mu.Ek=function(){return this.get("accuracyGeometry")||null},Mu.Gk=function(){return this.get("altitude")},Mu.Hk=function(){return this.get("altitudeAccuracy")},Mu.ym=function(){return this.get("heading")},Mu.zm=function(){return this.get("position")},Mu.Uh=function(){return this.get("projection")},Mu.ll=function(){return this.get("speed")},Mu.Vh=function(){return this.get("tracking")},Mu.Gh=function(){return this.get("trackingOptions")},Mu.Wh=function(t){this.set("projection",Bt(t))},Mu.Ke=function(t){this.set("tracking",t)},Mu.wj=function(t){this.set("trackingOptions",t)},e(Bd,Xi),(Mu=Bd.prototype).clone=function(){var t=new Bd(null);return Wi(t,this.ja,this.A.slice()),t.s(),t},Mu.Kb=function(t,e,o,i){var r=this.A;t-=r[0];var n=e-r[1];if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},Mu.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=Xd(this)},Mu.wa=function(){return this.A.slice(0,this.a)},Mu.se=function(t){var e=this.A,o=e[this.a]-e[0];return F(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},Mu.pd=function(){return Math.sqrt(Xd(this))},Mu.U=function(){return"Circle"},Mu.Xa=function(t){var e=this.G();return!!nt(t,e)&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||H(t,this.sb,this))},Mu.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];Wi(this,this.ja,i),this.s()},Mu.Ng=function(t,e,o){if(t){var i;for(Zi(this,o,t,0),this.A||(this.A=[]),t=$i(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else Wi(this,"XY",null);this.s()},Mu.X=function(){},Mu.ma=function(){},Mu.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var Zd=new Oa({color:"rgba(0,0,0,0.2)"}),Kd=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function zd(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=Vd(function(t){return[a,p+(h-p)*t]},Vt(Bt("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new pl(null)).ba("XY",o),nt(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],x(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new ar(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function Yd(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,p=t.j,h=o,o=Vd(function(t){return[s+(a-s)*t,n]},Vt(Bt("EPSG:4326"),p),h),(l=void 0!==t.c[l]?t.c[l]:new pl(null)).ba("XY",o),nt(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[x(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new ar(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function Hd(t,e,o,i,r){Ae.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function qd(t,e,o,i,r,n,s){Hd.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=s}function Jd(t,e,o,i,r,n){this.c=n||null,Hd.call(this,t,e,o,n?0:2,i),this.i=r}function _d(t,e){Ae.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function $d(t){if(!t.i)return t;var e=t.i;do{if(2==e.getState())return e}while(e=e.i);return t}function Qd(t,e){t.state=e,t.s()}function tv(t,e,o,i,r){_d.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function ev(t){t.c.forEach(me),t.c=null}(Mu=Wd.prototype).Cm=function(){return this.v},Mu.al=function(){return this.i},Mu.hl=function(){return this.c},Mu.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&Xt(this.j,g)||(e=Bt("EPSG:4326"),o=g.G(),l=Yt(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=Vt(e,g),this.D=Vt(g,e),this.S=this.D($(o)),this.j=g),g.i&&(e=rt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=Kd.length;d<o&&(r[0]=c-(s=Kd[d]/2),r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=Kd[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Yt(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=zd(this,r=x(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=zd(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=x(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=zd(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=Yd(this,y=x(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=Yd(this,y=Math.max(y-d,this.l),t,f,o);for(y=x(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=Yd(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},Mu.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(Hd,Ae),Hd.prototype.s=function(){this.b("change")},Hd.prototype.G=function(){return this.extent},Hd.prototype.getState=function(){return this.state},e(qd,Hd),(Mu=qd.prototype).Y=function(t){return void 0===t?this.M:(t=G(t))in this.c?this.c[t]:(e=ct(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e);var e},Mu.Fm=function(){this.state=3,this.i.forEach(me),this.i=null,this.s()},Mu.Gm=function(){void 0===this.resolution&&(this.resolution=tt(this.extent)/this.M.height),this.state=2,this.i.forEach(me),this.i=null,this.s()},Mu.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[ve(this.M,"error",this.Fm,this),ve(this.M,"load",this.Gm,this)],this.g(this,this.j))},Mu.Og=function(t){this.M=t},e(Jd,Hd),Jd.prototype.g=function(t){this.state=t?3:2,this.s()},Jd.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},Jd.prototype.Y=function(){return this.i},e(_d,Ae),_d.prototype.s=function(){this.b("change")},_d.prototype.bb=function(){return this.key+"/"+this.ta},_d.prototype.f=function(){return this.ta},_d.prototype.getState=function(){return this.state},e(tv,_d),(Mu=tv.prototype).ka=function(){1==this.state&&ev(this),this.i&&Se(this.i),this.state=5,this.s(),_d.prototype.ka.call(this)},Mu.Y=function(){return this.M},Mu.bb=function(){return this.g},Mu.Dm=function(){this.state=3,this.M=ov,ev(this),this.s()},Mu.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,ev(this),this.s()},Mu.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[ve(this.M,"error",this.Dm,this),ve(this.M,"load",this.Em,this)],this.j(this,this.g))};var ov=new Image;function iv(t){t=t||{},kr.call(this,{handleEvent:Di}),this.g=t.formatConstructors||[],this.o=t.projection?Bt(t.projection):null,this.a=null,this.target=t.target||null}function rv(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function nv(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function sv(t){var e=t.v;e&&(e=t.target||e.a,t.a=[de(e,"drop",rv,t),de(e,"dragenter",nv,t),de(e,"dragover",nv,t),de(e,"drop",nv,t)])}function av(t){t.a&&(t.a.forEach(me),t.a=null)}ov.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(iv,kr),iv.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new hv(pv,t,r,i))},iv.prototype.Ha=function(t){kr.prototype.Ha.call(this,t),(t?sv:av)(this)},iv.prototype.setMap=function(t){av(this),kr.prototype.setMap.call(this,t),this.c()&&sv(this)};var pv="addfeatures";function hv(t,e,o,i){Me.call(this,t),this.features=o,this.file=e,this.projection=i}function lv(t){t=t||{},Jr.call(this,{handleDownEvent:fv,handleDragEvent:uv,handleUpEvent:cv}),this.l=t.condition||zr,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function uv(t){var e,o,i;Hr(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==xi&&void 0!==this.g&&(i=o-this.g,Dr(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),Ur(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function cv(t){if(!Hr(t))return!0;Ir(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0);Dr(t,o,void 0,void 0);var o=t.Pa(),i=this.u,o=t.constrainResolution(o,0,e);return Ur(t,o,void 0,i),this.j=0,!1}function fv(t){return!(!Hr(t)||!this.l(t))&&(Ir(t.map.Z(),1,1),!(this.a=this.g=void 0))}function yv(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=Yn(),this.b=[],this.B=null,this.fa=Yn(),this.na=Yn()}function gv(t,e,o,i,r,n,s){var a=t.coordinates.length,p=t.Sf();s&&(o+=r),s=[e[o],e[o+1]];for(var h=[NaN,NaN],l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=R(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1);s[0]=h[0],s[1]=h[1];var f=c}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function dv(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function vv(t,e,o,i,r,n,s,a,p){var h;t.B&&U(i,t.T)?h=t.B:(t.B||(t.B=[]),h=Gi(t.coordinates,0,t.coordinates.length,2,i,t.B),_n(t.T,i)),i=!ct(n);for(var l,u,c=0,f=s.length,y=0,g=t.fa,d=t.na,v=0,b=0,m=t.a!=s||t.overlaps?0:200;c<f;)switch((F=s[c])[0]){case 0:y=F[1],i&&n[G(y).toString()]||!y.V()?c=F[2]:void 0===p||nt(p,y.V().G())?++c:c=F[2]+1;break;case 1:m<v&&(t.Va(e,r),v=0),m<b&&(e.stroke(),b=0),v||b||(e.beginPath(),l=u=NaN),++c;break;case 2:w=h[y=F[1]],F=h[y+1],C=h[y+2]-w,y=h[y+3]-F,y=Math.sqrt(C*C+y*y),e.moveTo(w+y,F),e.arc(w,F,y,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:y=F[1];var w=F[2],x=F[3],S=F[4]*o,M=F[5]*o,P=F[6],A=F[7],E=F[8],T=F[9],j=F[10],C=F[11],L=F[12],R=F[13],I=F[14];for(j&&(C+=r);y<w;y+=2){var N,F=h[y]-S,j=h[y+1]-M;R&&(F=Math.round(F),j=Math.round(j)),1==L&&!C||(os(g,N=F+S,k=j+M,L,L,C,-N,-k),e.setTransform.apply(e,g)),N=e.globalAlpha,1!=A&&(e.globalAlpha=N*A);var k=I+E>x.width?x.width-E:I,D=P+T>x.height?x.height-T:P;e.drawImage(x,E,T,k,D,F,j,k*o,D*o),1!=A&&(e.globalAlpha=N),1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 5:for(y=F[1],w=F[2],M=F[3],P=F[4]*o,A=F[5]*o,C=F[6],L=F[7]*o,x=F[8],S=F[9],(j=F[10])&&(C+=r);y<w;y+=2){for(F=h[y]+P,j=h[y+1]+A,1==L&&!C||(os(g,F,j,L,L,C,-F,-j),e.setTransform.apply(e,g)),1<(T=(E=M.split("\n")).length)?j-=(T-1)/2*(R=Math.round(1.5*e.measureText("M").width)):R=0,I=0;I<T;I++)N=E[I],S&&e.strokeText(N,F,j),x&&e.fillText(N,F,j),j+=R;1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 6:if(a&&(y=a(y=F[1])))return y;++c;break;case 7:m?v++:t.Va(e,r),++c;break;case 8:for(y=F[1],w=F[2],F=h[y],L=(j=h[y+1])+.5|0,(C=F+.5|0)===l&&L===u||(e.moveTo(F,j),l=C,u=L),y+=2;y<w;y+=2)C=(F=h[y])+.5|0,L=(j=h[y+1])+.5|0,y!=w-2&&C===l&&L===u||(e.lineTo(F,j),l=C,u=L);++c;break;case 9:t.R=F[2],v&&(t.Va(e,r),v=0,b&&(e.stroke(),b=0)),e.fillStyle=F[1],++c;break;case 10:var y=void 0===F[8]||F[8],O=F[9];w=F[2],b&&(e.stroke(),b=0),e.strokeStyle=F[1],e.lineWidth=y?w*o:w,e.lineCap=F[3],e.lineJoin=F[4],e.miterLimit=F[5],Lo&&(w=F[6],C=F[7],y&&o!==O&&(w=w.map(function(t){return t*o/O}),C*=o/O,F[6]=w,F[7]=C,F[9]=o),e.lineDashOffset=C,e.setLineDash(w)),++c;break;case 11:e.font=F[1],e.textAlign=F[2],e.textBaseline=F[3],++c;break;case 12:m?b++:e.stroke(),++c;break;default:++c}v&&t.Va(e,r),b&&e.stroke()}function bv(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function mv(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,t.a.push(e=[6,e]),t.b.push(e)}function wv(t,e,o,i){yv.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function xv(t,e,o,i){yv.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Sv(t,e,o,i,r){var n=t.coordinates.length;return e=gv(t,e,o,i,r,!1,!1),t.a.push(n=[8,n,e]),t.b.push(n),i}function Mv(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&U(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Pv(t,e,o,i){yv.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Av(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p],l=t.coordinates.length;o=gv(t,e,o,h,r,!0,!s),t.a.push(o=[8,l,o]),t.b.push(o),s&&(t.a.push(o=[3]),t.b.push(o)),o=h}return t.b.push(e=[7]),n&&t.a.push(e),s&&(t.a.push(n=[12]),t.b.push(n)),o}function Ev(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==s&&U(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function Tv(t,e,o,i){yv.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function jv(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Ye(1,1),this.j=Yn()}e(hv,Me),e(lv,Jr),e(yv,gs),yv.prototype.Va=function(t,e){var o;this.R&&(o=$n(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},yv.prototype.La=function(t,e,o,i,r){vv(this,t,e,o,i,r,this.a,void 0,void 0)},yv.prototype.Te=w,yv.prototype.Sf=function(){return this.Ua},e(wv,yv),wv.prototype.qc=function(t,e){var o,i;this.M&&(dv(this,e),o=t.ga(),i=this.coordinates.length,t=gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),mv(this,e))},wv.prototype.oc=function(t,e){var o,i;this.M&&(dv(this,e),o=t.ga(),i=this.coordinates.length,t=gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),mv(this,e))},wv.prototype.Te=function(){bv(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},wv.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(xv,yv),(Mu=xv.prototype).Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Mu.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(Mv(this),dv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),Sv(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),mv(this,e))},Mu.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){Mv(this),dv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Sv(this,i,r,o[n],t);this.b.push([12]),mv(this,e)}},Mu.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),bv(this),this.i=null},Mu.Ma=function(t,e){t=e.a,this.i.strokeStyle=ze(t||fs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||cs,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Pv,yv),(Mu=Pv.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,gv(this,o,0,o.length,t.qa(),!1,!1),this.a.push(t=[1],r=[2,r]),this.b.push(t,r),this.b.push(t=[7]),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(this.a.push(i=[12]),this.b.push(i)),mv(this,e))},Mu.rc=function(t,e){var o=this.i;Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);o=t.Bb();Av(this,t.ec(),0,o,t.qa()),mv(this,e)},Mu.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){Ev(this,t),dv(this,e),this.b.push([9,Xe(us)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=dl(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Av(this,i,r,o[n],t);mv(this,e)}},Mu.Te=function(){bv(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},Mu.Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Mu.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=ze(t||us)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=ze(t||fs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():cs,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(Tv,yv),Tv.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),dv(this,n),t=[5,r=this.coordinates.length,t=gv(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),mv(this,n))},Tv.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=ze((o=o.b)||us),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():cs,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=ze(o||fs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(jv,Es);var Cv={0:[[!0]]};function Lv(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function Rv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function Iv(t,e){var o=t.c;t=o[0];var i=o[1],r=o[2];return Gi(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}jv.prototype.Ea=function(t,e,o,i,r,n){var s,a=2*(i=Math.round(i))+1,p=os(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),h=this.g;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):h.clearRect(0,0,a,a),void 0!==this.f&&(z(s=V(),t),A(s,e*(this.f+i),s));var l=function(t){if(void 0!==Cv[t])return Cv[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)Lv(o,t+e,t+i),Lv(o,t+i,t+e),Lv(o,t-i,t+e),Lv(o,t-e,t+i),Lv(o,t-e,t-i),Lv(o,t-i,t-e),Lv(o,t+i,t-e),Lv(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return Cv[t]=o}(i);return function(t,e,o,i,r,n,s){var a,p,h=Object.keys(t.a).map(Number);h.sort(function(t,e){return e-t});var l=0;for(a=h.length;l<a;++l){var u=t.a[h[l].toString()];for(p=As.length-1;0<=p;--p){var c=u[As[p]];if(void 0!==c&&(c=vv(c,e,1,o,i,r,c.b,n,s)))return c}}}(this,h,p,o,r,function(t){for(var e=h.getImageData(0,0,a,a).data,o=0;o<a;o++)for(var i=0;i<a;i++)if(l[o][i]&&0<e[4*(i*a+o)+3])return(t=n(t))?t:void h.clearRect(0,0,a,a)},s)},jv.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(this.a[o]=t={}),void 0===(o=t[e])&&(o=new Nv[e](this.v,this.c,this.l,this.o),t[e]=o),o},jv.prototype.i=function(){return ct(this.a)},jv.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number);s.sort(D);var a=Iv(this,o);t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||As;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var Nv={Circle:Pv,Image:wv,LineString:xv,Polygon:Pv,Text:Tv};function Fv(t){Te.call(this),this.a=t}function kv(t,e){var o=e.getState();return 2!=o&&3!=o&&de(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function Dv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function Ov(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=G(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function Uv(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[G(r).toString()]=r}}function Gv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function Bv(t,e,o,i){e=G(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Xv(t,e,o,i,r,n,s,a,p,h){var l=G(e).toString();l in t.wantedTiles||(t.wantedTiles[l]={});var u=t.wantedTiles[l];t=t.tileQueue;for(var c,f=o.minZoom,y=s;f<=y;--y)for(var g,d=ee(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(c=d.da;c<=d.ia;++c)s-y<=a?(0==(g=e.Nc(y,b,c,i,r)).getState()&&(u[g.bb()]=!0,g.bb()in t.a||t.f([g,l,oe(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,c,r)}function Vv(t){Fv.call(this,t),this.fa=Yn()}function Wv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=ot(o),p=it(o),h=_(o);o=J(o),$n(e.coordinateToPixelTransform,a),$n(e.coordinateToPixelTransform,p),$n(e.coordinateToPixelTransform,h),$n(e.coordinateToPixelTransform,o),t.save(),ys(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),ys(t,s,r/2,n/2)}function Zv(t,e,o,i,r){var n,s,a,p=t.a;Ee(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,ys(o,-(a=i.viewState.rotation),n/2,s/2),t=r||Kv(t,i,0),p.b(new ls(e,new ds(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ys(o,a,n/2,s/2))}function Kv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return os(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function zv(t,e){return G(t)-G(e)}function Yv(t,e){return(t=.5*t/e)*t}function Hv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,qv[i.U()])(t,i,o,e)),p}e(Fv,Te),Fv.prototype.Ea=w,Fv.prototype.Ue=Oi,Fv.prototype.Nf=function(o,i,r){return function(e,t){return uw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Fv.prototype.na=function(t){2===t.target.getState()&&Dv(this)},e(Vv,Fv),Vv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Di,this))return o.call(i,this.a,null)},Vv.prototype.ef=function(t,e,o,i){Zv(this,"postcompose",t,e,i)};var qv={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(hl(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(mr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=ul(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=gl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;r<n;++r)(0,qv[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function Jv(t){Vv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=V(),this.f=this.o=null,this.g=Ye()}function _v(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e(Jv,Vv),Jv.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=Kv(this,t,0);Zv(this,"precompose",o,t,l);var u=e.extent,c=void 0!==u;if(c&&Wv(o,t,u),(u=this.f)&&!u.i()){var f,y=0,g=0,d=(f=Ee(this.a,"render")?(f=o.canvas.width,d=o.canvas.height,a&&(y=((v=Math.round(Math.sqrt(f*f+d*d)))-f)/2,g=(v-d)/2,f=d=v),this.g.canvas.width=f,this.g.canvas.height=d,this.g):o).globalAlpha;f.globalAlpha=e.opacity,f!=o&&f.translate(y,g);var v=t.size[0]*r,b=t.size[1]*r;if(ys(f,-a,v/2,b/2),u.La(f,r,l,a,n),h.u&&s.i&&!N(p,i)){for(var s=i[0],h=rt(p),m=0;s<p[0];)l=Kv(this,t,l=h*--m),u.La(f,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=Kv(this,t,l=h*++m),u.La(f,r,l,a,n),s-=h;l=Kv(this,t,0)}ys(f,a,v/2,b/2),f!=o&&(Zv(this,"render",f,t,l),o.drawImage(f.canvas,-y,-g),f.translate(-y,-g)),f.globalAlpha=d}c&&o.restore(),this.ef(o,t,e,l)},Jv.prototype.Ea=function(t,e,o,i,r){if(this.f){var n=this.a,s={};return this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Jv.prototype.D=function(){Dv(this)},Jv.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=n.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=Hv(f,t,e[i],Yv(h,l),this.D,this)||o;else o=Hv(f,t,e,Yv(h,l),this.D,this)||o;t=o}else t=!1;this.c=this.c||t}}var n=this.a,o=n.ha();Uv(t.attributions,o.j),Gv(t,o);var i=t.viewHints[0],r=t.viewHints[1],s=n.T,a=n.na;if(!this.c&&!s&&i||!a&&r)return!0;var p=t.extent,i=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,r=n.i,u=n.c;if(void 0===(s=n.get(sb))&&(s=zv),p=A(p,u*h),u=a.projection.G(),o.u&&a.projection.i&&!N(u,t.extent)&&(t=Math.max(rt(p)/2,rt(u)),p[0]=u[0]-t,p[2]=u[2]+t),!this.c&&this.l==h&&this.v==r&&this.o==s&&N(this.j,p))return!0;this.f=null,this.c=!1;var c,f=new jv(.5*h/l,p,h,o.T,n.c);return o.Yd(p,h,i),s?(c=[],o.$b(p,function(t){c.push(t)},this),c.sort(s),c.forEach(e,this)):o.$b(p,e,this),Rv(f),this.l=h,this.v=r,this.o=s,this.j=p,this.f=f,!0},e(_v,js);var $v=new _v;function Qv(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(Qv,Cs);var tb=new Qv;function eb(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function ob(t,e){Fv.call(this,e),this.c=t,this.T=new Zs([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=Yn(),this.S=Yn(),this.C=ks(),this.u=null}function ib(t,e,o,i){var r;Ee(t=t.a,e)&&(r=i.viewState,t.b(new ls(e,new Fp(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function rb(t,e){ob.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=V(),this.o=this.f=this.B=null}function nb(t){var e=ht({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,Vn.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(ob,Fv),ob.prototype.Gi=function(t,e,o){ib(this,"precompose",o,t),ta(o,34962,this.T);var i,r=o.b,n=ra(o,$v,tb);this.u?i=this.u:this.u=i=new eb(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,Ds(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,Ds(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),ib(this,"postcompose",o,t)},ob.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(rb,ob),(Mu=rb.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},Mu.ka=function(){var t=this.f;t&&(Lp(t,this.c.f)(),this.f=null),ob.prototype.ka.call(this)},Mu.Ea=function(t,e,o,i,r){if(this.f&&this.o){o=e.viewState;var n=this.a,s={};return this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Mu.Ue=function(t,e){if(this.f&&this.o){var o=e.viewState;return i=this.f,r=t,n=this.c.f,s=o.resolution,a=o.rotation,t=e.pixelRatio,o=this.o.opacity,e=e.skippedFeatureUids,(p=n.b).bindFramebuffer(p.FRAMEBUFFER,oa(n)),void 0!==Rp(i,n,r,s,a,t,o,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1)}var i,r,n,s,a,p;return!1},Mu.lg=function(t,e,o,i){if(t=$n(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},Mu.Hi=function(){Dv(this)},Mu.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=Hv(f,t,e[i],Yv(h,l),this.Hi,this)||o;else o=Hv(f,t,e,Yv(h,l),this.Hi,this)||o;t=o}else t=!1;this.l=this.l||t}}var r=this.a;e=r.ha(),Uv(t.attributions,e.j),Gv(t,e);var n=t.viewHints[0],s=t.viewHints[1],a=r.T,p=r.na;if(!this.l&&!a&&n||!p&&s)return!0;var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c;if(void 0===(p=r.get(sb))&&(p=zv),s=A(s,u*h),!this.l&&this.I==h&&this.R==a&&this.B==p&&N(this.D,s))return!0;this.f&&t.postRenderFunctions.push(Lp(this.f,o)),this.l=!1;var c,f=new Cp(.5*h/l,s,r.c);return e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),function(t,e){for(var o in t.a){var i,r=t.a[o];for(i in r)r[i].Db(e)}}(f,o),this.I=h,this.R=a,this.B=p,this.D=s,this.f=f,!0},e(nb,Vn),nb.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Jv(this):"webgl"===o&&(e=new rb(t,this)),e},nb.prototype.D=function(){return this.u},nb.prototype.C=function(){return this.f},nb.prototype.g=function(t){this.u=void 0!==t?t:Th,this.f=null===t?void 0:Ah(this.u),this.s()};var sb="renderOrder";function ab(){return[[-1/0,-1/0,1/0,1/0]]}function pb(t){je.call(this),this.c=Bt(t.projection),this.j=hb(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function hb(t){if("string"==typeof t)return[new he({html:t})];if(t instanceof he)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new he({html:r}):r}return o}return null}function lb(t,e){t.na=e,t.s()}function ub(t){pb.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=w,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(O(this.C,7),this.B=Qh(this.I,this.C)),this.fa=t.strategy||ab;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new pp:null,this.R=new pp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof Ne?e=(o=t.features).a:Array.isArray(t.features)&&(e=t.features),n||o||(o=new Ne(e)),e&&yb(this,e),o&&(i=o,r=!1,de(o=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),de(o,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),de(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},o),de(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},o),o.f=i)}function cb(t,e,o){t.v[e]=[de(o,"change",t.Oi,t),de(o,"propertychange",t.Oi,t)]}function fb(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(O(!(e in t.l),30),t.l[e]=o),i}function yb(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=G(a).toString();fb(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)cb(t,p=G(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new db("addfeature",i[n]))}function gb(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function db(t,e){Me.call(this,t),this.feature=e}function vb(t){var e;Jr.call(this,{handleDownEvent:mb,handleEvent:bb,handleUpEvent:wb}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(e=this.R)||"MultiPoint"===e?n=Tb:"LineString"===e||"MultiLineString"===e?n=jb:"Polygon"===e||"MultiPolygon"===e?n=Cb:"Circle"===e&&(n=Lb),n),this.Sa=t.minPoints||(this.g===Cb?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||Di;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new Bd([NaN,NaN])).Ng(t[0],Math.sqrt(Ii(t[0],t[1]))),e}:((i=this.g)===Tb?o=ar:i===jb?o=pl:i===Cb&&(o=br),function(t,e){return e?i===Cb?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new nb({source:new ub({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=jh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||Kr,this.Df=t.freehand?Di:t.freehandCondition||zr,de(this,Le("active"),this.ri,this)}function bb(t){this.u=this.g!==Tb&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Pb(this,t),e=!1):"pointermove"===t.type?e=xb(this,t):"dblclick"===t.type&&(e=!1),$r.call(this,t)&&e}function mb(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Mb(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function wb(t){var e=!0;xb(this,t);var o=this.g===Lb;return this.T?(this.l?this.u||o?this.Pd():Sb(this,t)?this.Cf(t)&&this.Pd():Pb(this,t):(Mb(this,t),this.g===Tb&&this.Pd()),e=!1):this.u&&(this.l=null,Ab(this)),e}function xb(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Tb?o=t.a:t.g===Cb?(o=(o=t.a[0])[o.length-1],Sb(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof br&&t.g!==Cb?(t.C||(t.C=new Lh(new pl(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),Eb(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Lh(new ar(e)),Eb(t))),!0}function Sb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===jb?i=t.a.length>t.Sa:t.g===Cb&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Mb(t,e){e=e.coordinate,t.l=e,t.g===Tb?t.a=e.slice():t.g===Cb?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Lb&&(t.I=t.a)),t.I&&(t.C=new Lh(new pl(t.I))),e=t.Za(t.a),t.j=new Lh,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),Eb(t),t.b(new Rb("drawstart",t.j))}function Pb(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===jb?(t.l=e.slice(),(i=t.a).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Cb&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),Eb(t),o&&t.Pd()}function Ab(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function Eb(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(pb,je),(Mu=pb.prototype).Ea=w,Mu.ya=function(){return this.j},Mu.xa=function(){return this.D},Mu.za=function(){return this.c},Mu.getState=function(){return this.na},Mu.sa=function(){this.s()},Mu.ua=function(t){this.j=hb(t),this.s()},e(ub,pb),(Mu=ub.prototype).yb=function(t){var e,o=G(t).toString();fb(this,o,t)&&(cb(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new db("addfeature",t))),this.s()},Mu.cd=function(t){yb(this,t),this.s()},Mu.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(me);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new db("clear")),this.s()},Mu.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},Mu.$b=function(t,e,o){return this.a?cp(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},Mu.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},Mu.Ah=function(){return this.f},Mu.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=lp(this.a),ct(this.g)||c(t,ut(this.g))),t},Mu.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},Mu.Uf=function(t){return up(this.a,t)},Mu.vh=function(t,e){var o=t[0],i=t[1],r=null,n=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],p=e||Di;return cp(this.a,a,function(t){var e;p(t)&&(e=t.V(),(s=e.Kb(o,i,n,e=s))<e&&(r=t,t=Math.sqrt(s),a[0]=o-t,a[1]=i-t,a[2]=o+t,a[3]=i+t))}),r},Mu.G=function(t){return this.a.G(t)},Mu.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},Mu.Mi=function(){return this.C},Mu.Ni=function(){return this.I},Mu.Oi=function(t){var e=G(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&hp(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(gb(this,t),this.o[o]=t)):e in this.l||(gb(this,t),this.l[e]=t),this.s(),this.b(new db("changefeature",t))},Mu.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];cp(i,s,function(t){return N(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},Mu.Gb=function(t){var e=G(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},Mu.Ig=function(t){var e=G(t).toString();this.v[e].forEach(me),delete this.v[e];var o=t.a;void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new db("removefeature",t))},e(db,Me),e(vb,Jr),(Mu=vb.prototype).setMap=function(t){Jr.prototype.setMap.call(this,t),this.ri()},Mu.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===jb?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Cb&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),Eb(this))},Mu.Pd=function(){var t=Ab(this),e=this.a,o=t.V();this.g===jb?(e.pop(),this.Za(e,o)):this.g===Cb&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new fl([e])):"MultiLineString"===this.R?t.Ra(new ll([e])):"MultiPolygon"===this.R&&t.Ra(new yl([e])),this.b(new Rb("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},Mu.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),Eb(this),this.b(new Rb("drawstart",this.j))},Mu.Xc=Oi,Mu.ri=function(){var t=this.v,e=this.c();t&&e||Ab(this),this.pa.setMap(e?t:null)};var Tb="Point",jb="LineString",Cb="Polygon",Lb="Circle";function Rb(t,e){Me.call(this,t),this.feature=e}function Ib(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),Jr.call(this,{handleDownEvent:Fb,handleDragEvent:kb,handleEvent:Nb,handleUpEvent:Db}),this.u=new nb({source:new ub({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=jh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new nb({source:new ub({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=jh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function Nb(t){return!(t instanceof Wo)||("pointermove"!=t.type||this.D||Bb(this,Gb(this,e=t.pixel,o=t.map)||o.Wa(e)),$r.call(this,t),!1);var e,o}function Fb(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=Gb(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=Ob(e(t)):null!==o?this.a=Ub(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=Ub(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=Ob(t)),!0}function kb(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),Bb(this,t)),!0}function Db(){this.a=null;var t=this.G();return t&&q(t)||this.g(null),!1}function Ob(e){return function(t){return P([e,t])}}function Ub(e,o){return e[0]==o[0]?function(t){return P([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return P([e,[o[0],t[1]]])}:null}function Gb(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return Fi(i,t)-Fi(i,e)});var r=r[0],n=Ei(i,r),s=o.Ja(n);if(Ni(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=Ii(s,e),o=Ii(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function Bb(t,e){var o=t.B;o?o.V().ma(e):(o=new Lh(new ar(e)),t.B=o,t.I.ha().yb(o))}function Xb(t){Me.call(this,Vb),this.b=t}e(Rb,Me),e(Ib,Jr),Ib.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),Jr.prototype.setMap.call(this,t)},Ib.prototype.G=function(){return this.j},Ib.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(xr(t)):e.Ra(void 0):(this.l=e=new Lh(t?xr(t):{}),this.u.ha().yb(e)),this.b(new Xb(this.j))},e(Xb,Me);var Vb="extentchanged";function Wb(t){var e;Jr.call(this,{handleDownEvent:Hb,handleDragEvent:qb,handleEvent:_b,handleUpEvent:Jb}),this.ad=t.condition||qr,this.$a=function(t){return Kr(t)&&Zr(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||Di,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new pp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new nb({source:new ub({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=jh(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),de(this.u,"add",this.wn,this),de(this.u,"remove",this.xn,this),this.R=null}function Zb(t,e){t.C||(t.C=!0,t.b(new om("modifystart",t.u,e)))}function Kb(t,e){!function(t,e){t=t.a;var o=[];t.forEach(function(t){e===t.feature&&o.push(t)});for(var i=o.length-1;0<=i;--i)t.remove(o[i])}(t,e),t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),be(e,"change",t.si,t)}function zb(t,e){var o=t.g;o?o.V().ma(e):(o=new Lh(new ar(e)),t.g=o,t.B.ha().yb(o))}function Yb(t,e){return t.index-e.index}function Hb(t){if(!this.ad(t))return!1;$b(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=P([o=o.V().X()]),n={};(r=up(this.a,r)).sort(Yb);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=G(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?Ci(h=tm(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):Ci(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):Ci(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&G(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&Zb(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function qb(t){this.I=!1,Zb(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":a[0]=a[1]=i=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(Ni(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}zb(this,t)}function Jb(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,hp(this.a,k(o),i),hp(this.a,e.G(),r)):hp(this.a,P(r.la),r);return this.C&&(this.b(new om("modifyend",this.u,t)),this.C=!1),!1}function _b(t){return!(t instanceof Wo)||(Lr((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,$b(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),$r.call(this,t)&&!e);var e}function $b(t,e,o){var i=o.Wa(e),r=A(k(i),o.Z().Pa()*t.fa);if(0<(r=up(t.a,r)).length){r.sort(function(t,e){return Qb(i,t)-Qb(i,e)});var n=r[0],s=n.la,a=tm(i,n),p=o.Ja(a),h=Ni(e,p);if(h<=t.fa){if(e={},"Circle"===n.geometry.U()&&1===n.index)t.pa=!0,zb(t,a);else for(h=o.Ja(s[0]),n=o.Ja(s[1]),o=Ii(p,h),p=Ii(p,n),h=Math.sqrt(Math.min(o,p)),t.pa=h<=t.fa,zb(t,a=t.pa?p<o?s[1]:s[0]:a),p=1,o=r.length;p<o&&(a=r[p].la,Ci(s[0],a[0])&&Ci(s[1],a[1])||Ci(s[0],a[1])&&Ci(s[1],a[0]));++p)e[G(a)]=!0;return e[G(s)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function Qb(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=Ii(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):Fi(t,e.la)}function tm(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):Ei(t,e.la)}function em(t,e,o,i,r){cp(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||U(t.depth,i))&&t.index>o&&(t.index+=r)})}function om(t,e,o){Me.call(this,t),this.features=e,this.mapBrowserEvent=o}function im(t){var e,o;kr.call(this,{handleEvent:rm}),this.C=(t=t||{}).condition||Zr,this.D=t.addCondition||Oi,this.B=t.removeCondition||Oi,this.I=t.toggleCondition||zr,this.l=t.multi||!1,this.o=t.filter||Di,this.j=t.hitTolerance||0,this.g=new nb({source:new ub({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(c((e=jh()).Polygon,e.LineString),c(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return d(o,t)}):Di,this.u=t,this.a={},de(t=this.g.ha().f,"add",this.Fn,this),de(t,"remove",this.Jn,this)}function rm(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(lt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=G(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||d(s.a,t)?(i||r)&&d(s.a,t)&&(a.push(t),e=G(t),delete this.a[e]):(p.push(t),t=G(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new nm(sm,p,a,t)),Wr(t)}function nm(t,e,o,i){Me.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(Wb,Jr),(Mu=Wb.prototype).kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&$b(this,this.va,e),de(t,"change",this.si,this)},Mu.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),Jr.prototype.Ha.call(this,t)},Mu.setMap=function(t){this.B.setMap(t),Jr.prototype.setMap.call(this,t)},Mu.wn=function(t){this.kg(t.element)},Mu.si=function(t){this.l||(Kb(this,t=t.target),this.kg(t))},Mu.xn=function(t){Kb(this,t.element)},Mu.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},Mu.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Mu.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(P(n),s)}},Mu.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Mu.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Mu.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(P(u),c)}},Mu.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};i.Pf=(t={feature:t,geometry:e,index:1,la:[o,o]}).Pf=[i,t],this.a.Ca(k(o),i),this.a.Ca(e.G(),t)},Mu.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},Mu.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),em(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(P(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(P(e.la),e),this.j.push([e,0]),this.I=!0},Mu.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t=this.R;Zb(this,t);var e,o=this.j,i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=G(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=e=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<e[n.depth[0]].length&&(e[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<e.length&&(e.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a&&(u.pop(),u.push(u[0]),l=u.length-1))}c&&(c=r,this.l=!0,c.ma(e),this.l=!1,e=[],void 0!==h&&(this.a.remove(h),e.push(h.la[0])),void 0!==p&&(this.a.remove(p),e.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:e},this.a.Ca(P(h.la),h)),em(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new om("modifyend",this.u,t)),!(this.C=!1)}return!1},e(om,Me),e(im,kr),(Mu=im.prototype).Gn=function(){return this.g.ha().f},Mu.Hn=function(){return this.j},Mu.In=function(t){return t=G(t),this.a[t]},Mu.Kn=function(t){this.j=t},Mu.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),kr.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},Mu.Fn=function(t){var e=this.v;e&&e.xj(t.element)},Mu.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(nm,Me);var sm="select";function am(t){Jr.call(this,{handleEvent:hm,handleDownEvent:Di,handleUpEvent:lm}),this.l=(t=t||{}).source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return Fi(this.I,t.la)-Fi(this.I,e.la)}.bind(this),this.a=new pp,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function pm(t,e,o,i){var r,n=i.Wa([e[0]-t.g,e[1]+t.g]),s=i.Wa([e[0]+t.g,e[1]-t.g]),n=P([n,s]),a=up(t.a,n),p=!1,n=!1,h=s=null;return 0<(a=t.R&&!t.C?a.filter(function(t){return"Circle"!==t.feature.V().U()}):a).length&&(t.I=o,a.sort(t.va),r=a[0].la,p="Circle"===a[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Ii(e,o),e=Ii(e,p),(p=(p=Math.sqrt(Math.min(o,e)))<=t.g)&&(n=!0,s=e<o?r[1]:r[0],h=i.Ja(s))):t.C&&(s=p?function(t,e){var o=e.pd();e=(i=e.wa())[0];var i=i[1],r=t[0]-e;t=t[1]-i,r||t||(r=1);var n=Math.sqrt(r*r+t*t);return[e+o*r/n,i+o*t/n]}(o,a[0].feature.V()):Ei(o,r),Ni(e,h=i.Ja(s))<=t.g&&(n=!0,t.R&&!p&&(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Ii(h,o),e=Ii(h,p),p=(p=Math.sqrt(Math.min(o,e)))<=t.g)))&&(s=e<o?r[1]:r[0],h=i.Ja(s)),n&&(h=[Math.round(h[0]),Math.round(h[1])])),{nq:n,vertex:s,wq:h}}function hm(t){var e=pm(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),$r.call(this,t)}function lm(){var t=ut(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function um(t){var e,o;Jr.call(this,{handleDownEvent:cm,handleDragEvent:ym,handleMoveEvent:gm,handleUpEvent:fm}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return d(e,t)}):Di,this.C=o,this.l=t.hitTolerance||0,this.g=null,de(this,Le("active"),this.u,this)}function cm(t){if(this.g=dm(this,t.pixel,t.map),this.a||!this.g)return!1;this.a=t.coordinate,gm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new bm("translatestart",e,t.coordinate)),!0}function fm(t){if(this.a){this.a=null,gm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new bm("translateend",e,t.coordinate)),!0}return!1}function ym(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new Ne([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new bm("translating",e,t)))}function gm(t){var e=t.map.a;dm(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function dm(t,e,o){return o.we(e,function(t){if(!this.j||d(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function vm(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function bm(t,e,o){Me.call(this,t),this.features=e,this.coordinate=o}function mm(t){var e=ht({},t=t||{});delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,nb.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,de(this,Le(Sm),this.Bl,this),this.pj(t.gradient||wm),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),de(this,Le(xm),this.cg,this),de(this,Le(Mm),this.cg,this),this.cg();var o=t.weight||"weight",i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?x(t,0,1):1)|0,o=this.B[e];return o||(o=[new Ph({image:new Yc({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(sb,null),de(this,"render",this.Sl,this)}e(am,Jr),(Mu=am.prototype).yb=function(t,e){e=void 0===e||e;var o,i=G(t),r=t.V();!r||(o=this.fa[r.U()])&&(this.T[i]=r.G(V()),o.call(this,t,r)),e&&(this.B[i]=de(t,"change",this.Ln,this))},Mu.Ak=function(t){this.yb(t)},Mu.Bk=function(t){this.Gb(t)},Mu.ui=function(t){var e;t instanceof db?e=t.feature:t instanceof Oe&&(e=t.element),this.yb(e)},Mu.vi=function(t){var e;t instanceof db?e=t.feature:t instanceof Oe&&(e=t.element),this.Gb(e)},Mu.Ln=function(t){var e;t=t.target,this.D?(e=G(t))in this.u||(this.u[e]=t):this.Dj(t)},Mu.Gb=function(e,t){t=void 0===t||t;var o=G(e),i=this.T[o];if(i){var r=this.a,n=[];for(cp(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(me(this.B[o]),delete this.B[o])},Mu.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(me),i.length=0,e.forEach(this.Bk,this)),Jr.prototype.setMap.call(this,t),t&&(this.j?i.push(de(this.j,"add",this.ui,this),de(this.j,"remove",this.vi,this)):this.l&&i.push(de(this.l,"addfeature",this.ui,this),de(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},Mu.Xc=Oi,Mu.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},Mu.Mn=function(t,e){for(var o=0,i=(e=Sr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Mu.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},Mu.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Mu.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},Mu.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Mu.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(P(l),u)}},Mu.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},Mu.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},e(um,Jr),um.prototype.B=function(){return this.l},um.prototype.I=function(t){this.l=t},um.prototype.setMap=function(t){var e=this.v;Jr.prototype.setMap.call(this,t),vm(this,e)},um.prototype.u=function(){vm(this,null)},e(bm,Me),e(mm,nb);var wm=["#00f","#0ff","#0f0","#ff0","#f00"];(Mu=mm.prototype).uh=function(){return this.get(xm)},Mu.Bh=function(){return this.get(Sm)},Mu.yi=function(){return this.get(Mm)},Mu.Bl=function(){for(var t=this.Bh(),e=Ye(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},Mu.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Ye(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},Mu.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},Mu.jj=function(t){this.set(xm,t)},Mu.pj=function(t){this.set(Sm,t)},Mu.Uc=function(t){this.set(Mm,t)};var xm="blur",Sm="gradient",Mm="radius";function Pm(t){Vv.call(this,t),this.v=Yn(),this.j=null}function Am(t){Pm.call(this,t),this.M=null,this.c=Yn()}function Em(t,e,o,i){var r=zt(o,e,t);return o=Ft(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=Ft(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Tm(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function jm(t,e,g,d,o,v,i,r,n,s,a){var b=Ye(Math.round(g*t),Math.round(g*e));if(!n.length)return b.canvas;b.scale(g,g);var m=V();n.forEach(function(t){K(m,t.extent)});var w=Ye(Math.round(g*rt(m)/d),Math.round(g*tt(m)/d)),p=g/d;n.forEach(function(t){w.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-m[0])*p,-(t.extent[3]-m[3])*p,rt(t.extent)*p,tt(t.extent)*p)});var x=ot(i);return r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],s=e[2][1];t=(o[0][0]-x[0])/v;var a=-(o[0][1]-x[1])/v,p=(o[1][0]-x[0])/v,h=-(o[1][1]-x[1])/v,l=(o[2][0]-x[0])/v,u=-(o[2][1]-x[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(b.save(),b.beginPath(),r=Tm(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Tm(n,s,p,h),l=Tm(n,s,l,u),b.moveTo(p[0],p[1]),b.lineTo(r[0],r[1]),b.lineTo(l[0],l[1]),b.clip(),b.transform(i[0],i[2],i[1],i[3],t,a),b.translate(m[0]-o,m[3]-e),b.scale(d/g,-d/g),b.drawImage(w.canvas,0,0),b.restore())}),a&&(b.save(),b.strokeStyle="black",b.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-x[0])/v;var e=-(n[0][1]-x[1])/v,o=(n[1][0]-x[0])/v,i=-(n[1][1]-x[1])/v,r=(n[2][0]-x[0])/v,n=-(n[2][1]-x[1])/v;b.beginPath(),b.moveTo(o,i),b.lineTo(t,e),b.lineTo(r,n),b.closePath(),b.stroke()}),b.restore()),b.canvas}function Cm(t,e,o,i,r){this.i=t,this.f=e;var n={},s=Vt(this.f,this.i);this.a=function(t){var e=t[0]+"/"+t[1];return n[e]||(n[e]=s(t)),n[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&rt(i)==rt(this.i.G()),this.b=this.i.G()?rt(this.i.G()):null,this.j=this.f.G()?rt(this.f.G()):null,t=ot(o),e=it(o),i=_(o),o=J(o),r=this.a(t);var a,p=this.a(e),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=P([s,a,p,h]),c=e.b?rt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=P([o,i,r,n]),g|=.25<rt(d)/e.j),!y&&e.i.c&&c&&(g|=.25<c))}if(g||!e.g||nt(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(L(s[0],f)+L(p[0],f))/2-L(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(a=1/0,this.c.forEach(function(t){a=Math.min(a,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-a>this.b/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-a>this.b/2&&(e[0][0]-=this.b),e[1][0]-a>this.b/2&&(e[1][0]-=this.b),e[2][0]-a>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])<this.b/2&&(t.source=e))},this)),n={}}function Lm(t){var e=V();return t.c.forEach(function(t){t=t.source,z(e,t[0]),z(e,t[1]),z(e,t[2])}),e}function Rm(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?et(o,a):o,a=Em(t,e,$(s),i);this.j=new Cm(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Lm(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),Hd.call(this,o,i,this.o,r,n)}function Im(t){pb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function Nm(t,e){return e=t.C?t.C[v(t.C,e,0)]:e}function Fm(t,e){t.Y().src=e}function km(t,e){Me.call(this,t),this.image=e}e(Pm,Vv),Pm.prototype.S=function(t,e,o){Zv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!N(r,t.extent)&&nt(r,t.extent))&&Wv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i&&o.restore()),this.ef(o,t,e)},Pm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Pm.prototype.u=function(t,e,o,i){if(this.Y()){if(this.a.ha().Ea!==w)return Vv.prototype.u.apply(this,arguments);var r=$n(this.v,t.slice());return Ri(r,e.viewState.resolution/this.f),this.j||(this.j=Ye(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0}},e(Am,Pm),Am.prototype.Y=function(){return this.M?this.M.Y():null},Am.prototype.C=function(){return this.c},Am.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=et(l,e.extent)),h[0]||h[1]||st(l)||(e=p.Y(l,a,i,n.projection))&&kv(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=os(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),os(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),Uv(t.attributions,e.f),Gv(t,p),this.f=a*i/n),!!this.M},e(Rm,Hd),Rm.prototype.ka=function(){1==this.state&&(me(this.ee),this.ee=null),Hd.prototype.ka.call(this)},Rm.prototype.Y=function(){return this.g},Rm.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=jm(rt(this.i)/this.c,tt(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},Rm.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=de(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(me(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e(Im,pb),Im.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!Xt(r,i)){if(this.a){if(this.fa==this.i&&Xt(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&Z(this.a.G(),t))return this.a;Se(this.a),this.a=null}return this.a=new Rm(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return this.Jc(t,e,o,i=r?r:i)},Im.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new km(Dm,t));break;case 2:this.b(new km(Om,t));break;case 3:this.b(new km(Um,t))}},e(km,Me);var Dm="imageloadstart",Om="imageloadend",Um="imageloaderror";function Gm(t){Im.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function Bm(t){this.f=t.source,this.$a=Yn(),this.g=Ye(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,Gm.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),de(this.f,"change",this.ro,this)}function Xm(t,e){ob.call(this,t,e),this.o=this.f=this.M=null}function Vm(t){Vn.call(this,t||{})}function Wm(t){Pm.call(this,t),this.c=null===this.c?null:Ye(),this.o=null,this.g=[],this.l=V(),this.va=new B(0,0,0,0),this.B=Yn(),this.T=0}function Zm(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function Km(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(Gm,Im),Gm.prototype.Jc=function(t,e,o,i){e=Nm(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t)||(at(t=t.slice(),this.va),(i=this.pa(t,e,o,[rt(t)/e*o,tt(t)/e*o],i))&&(r=new Jd(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(Bm,Gm),(Mu=Bm.prototype).tk=function(t,n,s,e,o){var a=new jv(.5*n/s,t,n,this.f.T,this.Sa);this.f.Yd(t,n,o);var i,r,p=!1;return this.f.$b(t,function(t){var e;if(!(i=p))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=!Array.isArray(e)?[e]:e).length;i<r;++i)o=Hv(a,t,e[i],Yv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),Rv(a),p?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),i=this,r=$(t),o=e,e=s/(e=n),t=os(i.$a,o[0]/2,o[1]/2,e,-e,0,-r[0],-r[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},Mu.Ea=function(t,e,o,i,r,n){if(this.B){var s={};return this.B.Ea(t,e,0,i,r,function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,n(t)})}},Mu.no=function(){return this.f},Mu.oo=function(){return this.I},Mu.po=function(){return this.v},Mu.qo=function(){this.s()},Mu.ro=function(){lb(this,this.f.getState())},Mu.Ii=function(t){this.I=void 0!==t?t:Th,this.v=t?Ah(this.I):void 0,this.s()},e(Xm,ob),Xm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Xm.prototype.ng=function(t,e){var o,i,r=this.c.i,n=t.pixelRatio,s=t.viewState,a=s.center,p=s.resolution,h=s.rotation,l=this.M,u=this.Ib,c=this.a.ha(),f=t.viewHints,y=t.extent;return void 0!==e.extent&&(y=et(y,e.extent)),f[0]||f[1]||st(y)||(e=c.Y(y,p,n,s.projection))&&kv(this,e)&&(o=this,i=(i=l=e).Y(),u=aa(o.c.i,i),this.Ib&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,r,this.Ib))),l&&(r=this.c.f.j,s=this,e=r.width,o=r.height,i=n,r=a,a=p,p=h,h=l.G(),e*=a,o*=a,Hn(s=s.S),ts(s,2*i/e,2*i/o),Qn(s,-p),es(s,h[0]-r[0],h[1]-r[1]),ts(s,(h[2]-h[0])/2,(h[3]-h[1])/2),es(s,1,1),this.o=null,Hn(n=this.v),ts(n,1,-1),es(n,0,-1),this.M=l,this.Ib=u,Uv(t.attributions,l.f),Gv(t,c)),!!l},Xm.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,Di,this)},Xm.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof Bm){var r=$n(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,Di,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,es(e=Yn(),-1,-1),ts(e,2/n[0],2/n[1]),es(e,0,n[1]),ts(e,1,-1),n=is(this.S.slice()),es(s=Yn(),0,r[1]),ts(s,1,-1),ts(s,r[0]/2,r[1]/2),es(s,1,1),qn(s,n),qn(s,e),this.o=s),!((t=$n(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Ye(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(Vm,Vn),Vm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Am(this):"webgl"===o&&(e=new Xm(t,this)),e},e(Wm,Pm),Wm.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(st(y=void 0!==e.extent?et(y,e.extent):y))return!1;var g=te(l,y,c),d=l.Pc(u),v=l.Da(u),b=X(l.gb(u),l.j),d=F(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o);(b={})[u]={};var m=this.Nf(p,r,b),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||Qd(M,2),Zm(this,M)||(M=$d(M)),Zm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):$t(l,M.ta,m,x,w)||(M=Qt(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&N(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(D);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=os(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),os(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),Bv(t.usedTiles,p,u,g),Xv(t,p,l,o,r,y,u,a.Ud()),Ov(t,p),Gv(t,p),0<this.g.length},Wm.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},Wm.prototype.Y=function(){var t=this.c;return t?t.canvas:null},Wm.prototype.C=function(){return this.B},e(Km,js);var zm=new Km;function Ym(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(Ym,Cs);var Hm=new Ym;function qm(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function Jm(t,e){ob.call(this,t,e),this.I=zm,this.fa=Hm,this.f=null,this.B=new Zs([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function _m(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,Vn.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function $m(t){this.c=null,Wm.call(this,t),this.I=!1,this.D=Yn(),this.T="vector"==t.j?1:0}e(Jm,ob),(Mu=Jm.prototype).ka=function(){ea(this.c.f,this.B),ob.prototype.ka.call(this)},Mu.Nf=function(e,i,r){var n=this.c;return function(o,t){return uw(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},Mu.mg=function(){ob.prototype.mg.call(this),this.f=null},Mu.ng=function(t,e,o){var i,r,n,s,a,p=this.c,h=o.b,l=t.viewState,u=l.projection,c=this.a,f=c.ha(),y=f.Ta(u),g=y.tc(l.resolution),d=y.Da(g),v=f.Xd(g,t.pixelRatio,u),b=v[0]/X(y.gb(g),this.R)[0],m=d/b,w=f.nb(b)*f.Wf(u),x=l.center,S=t.extent,M=te(y,S,d);if(this.o&&(s=this.o,a=M,s.ca==a.ca&&s.da==a.da&&s.$==a.$&&s.ia==a.ia)&&this.l==f.i)m=this.D;else{var P=[M.$-M.ca+1,M.ia-M.da+1],P=m*(C=(O(0<(n=Math.max(P[0]*v[0],P[1]*v[1])),29),Math.pow(2,Math.ceil(Math.log(n)/Math.LN2)))),A=y.Pc(g),m=[L=A[0]+M.ca*v[0]*m,m=A[1]+M.da*v[1]*m,L+P,m+P];i=t,r=C,a=(s=this).c.i,void 0===s.j||s.j!=r?(i.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,a,s.g,s.Ib)),i=sa(a,r,r),n=a.createFramebuffer(),a.bindFramebuffer(36160,n),a.framebufferTexture2D(36160,36064,3553,i,0),s.Ib=i,s.g=n,s.j=r):a.bindFramebuffer(36160,s.g),h.viewport(0,0,C,C),h.clearColor(0,0,0,0),h.clear(16384),h.disable(3042),C=ra(o,this.I,this.fa),o.Qc(C),this.f||(this.f=new qm(h,C)),ta(o,34962,this.B),h.enableVertexAttribArray(this.f.b),h.vertexAttribPointer(this.f.b,2,5126,!1,16,0),h.enableVertexAttribArray(this.f.a),h.vertexAttribPointer(this.f.a,2,5126,!1,16,8),h.uniform1i(this.f.i,0),(o={})[g]={};for(var E,T=this.Nf(f,u,o),j=c.kd(),C=!0,L=V(),R=new B(0,0,0,0),I=M.ca;I<=M.$;++I)for(E=M.da;E<=M.ia;++E){if(A=f.Nc(g,I,E,b,u),void 0!==e.extent){var N=y.Aa(A.ta,L);if(!nt(N,e.extent))continue}if(2==(N=(A=!(N=2==(N=A.getState())||4==N||3==N&&!j)?$d(A):A).getState())){if(p.a.b.hasOwnProperty(A.bb())){o[g][A.ta.toString()]=A;continue}}else if(4==N||3==N&&!j)continue;C=!1,(N=$t(y,A.ta,T,R,L))||(A=Qt(y,A.ta,R,L))&&T(g+1,A)}(e=Object.keys(o).map(Number)).sort(D);for(var F,T=new Float32Array(4),j=0,R=e.length;j<R;++j)for(F in I=o[e[j]])A=I[F],N=y.Aa(A.ta,L),T[0]=2*(N[2]-N[0])/P,T[1]=2*(N[3]-N[1])/P,T[2]=2*(N[0]-m[0])/P-1,T[3]=2*(N[1]-m[1])/P-1,h.uniform4fv(this.f.c,T),Op(p,A,v,w*b),h.drawArrays(5,0,4);C?(this.o=M,this.D=m,this.l=f.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}Bv(t.usedTiles,f,g,M);var k=p.j;return Xv(t,f,y,b,u,S,g,c.Ud(),function(t){2!=t.getState()||p.a.b.hasOwnProperty(t.bb())||t.bb()in k.a||k.f([t,oe(y,t.ta),y.Da(t.ta[0]),v,w*b])},this),Ov(t,f),Gv(t,f),Hn(h=this.v),es(h,(Math.round(x[0]/d)*d-m[0])/(m[2]-m[0]),(Math.round(x[1]/d)*d-m[1])/(m[3]-m[1])),l.rotation&&Qn(h,l.rotation),ts(h,t.size[0]*l.resolution/(m[2]-m[0]),t.size[1]*l.resolution/(m[3]-m[1])),es(h,-.5,-.5),!0},Mu.lg=function(t,e,o,i){if(this.g){t=[(t=$n(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(_m,Vn),(Mu=_m.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Wm(this):"webgl"===o&&(e=new Jm(t,this)),e},Mu.Ud=function(){return this.get("preload")},Mu.zi=function(t){this.set("preload",t)},Mu.kd=function(){return this.get("useInterimTilesOnError")},Mu.Ai=function(t){this.set("useInterimTilesOnError",t)},e($m,Wm);var Qm={image:As,hybrid:["Polygon","LineString"]},tw={hybrid:["Image","Text"],vector:As};function ew(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,nb.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function ow(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+G(e);n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s;var a=setTimeout(function(){r(),o&&o()},1e4);window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function iw(t,e,o,i,r,n,s,a,p,h,l){if(_d.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),a=this.j.G(),r=this.c.G(),q(n=a?et(n,a):n))if((a=t.G())&&(r=r?et(r,a):a),i=Em(t,o,$(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new Cm(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Lm(this.l),r&&(t.i?(o[1]=x(o[1],r[1],r[3]),o[3]=x(o[3],r[1],r[3])):o=et(o,r)),q(o)){for(e=(t=ee(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function rw(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return nw(i)}function nw(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[L((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function sw(){}function aw(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o){for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));return e}if(o=/\{(\d+)-(\d+)\}/.exec(t)){for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));return e}return e.push(t),e}function pw(t){kp.call(this),this.highWaterMark=void 0!==t?t:2048}function hw(t){return t.c>t.highWaterMark}function lw(t){pb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new pw(t.cacheSize),this.o=[0,0],this.uc=""}function uw(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,e.b.hasOwnProperty(n)&&((s=2===(n=e.get(n)).getState())&&(s=!1!==r(n))),s||(a=!1);return a}function cw(t,e){t.uc!==e&&(t.uc=e,t.s())}function fw(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=oe(o,i),e=T(n=pe(n),t)?i:(i=rt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?ee(o,r,i):o.a?o.a[i]:null)||p(o,n,t)))?e:null}function yw(t,e){Me.call(this,t),this.tile=e}function gw(t){lw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):sw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function dw(t){gw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||mw,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||tv,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function vw(t,e,o,i,r,n,s){return r=(o=fw(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,de(r,"change",t.Li,t),r}function bw(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=vw(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=vw(t,e,o,i,r,n,a),t.a.set(s,h);return h}function mw(t,e){t.Y().src=e}function ww(t){this.B=void 0!==t.hidpi&&t.hidpi,dw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,ow("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(Mu=$m.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Ye()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,Wm.prototype.sd.apply(this,arguments)},Mu.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(sb)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v=p.c[p.a[g]];v.S=null,y.Nd=!1;var b,m,w=h.ha(),x=w.tileGrid,S=v.ta,M=v.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(v.ta[0]),E=et(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(b=x=w.nb(),A=$n(A=os(this.D,0,0,1/A*b,-1/A*b,0,-S[0],-S[3]),[E[0],E[3]]).concat($n(A,[E[2],E[1]]))):(x=P,A=E,Xt(u,M)||(m=!0,v.ig(u))),y.Nd=!1,w=new jv(0,A,x,w.l,h.c),A=Yv(x,l),x=v.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){b=x[S],m&&b.V().tb(M,u);var T=void 0;if((j=b.Lc())?T=j.call(b,P):(j=h.f)&&(T=j(b,P)),T){var j=A,C=w;if(T=!Array.isArray(T)?[T]:T){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=Hv(C,b,T[R],j,this.Fi,this)||L;else L=Hv(C,b,T,j,this.Fi,this)||L;b=L}else b=!1;this.I=this.I||b,y.Nd=y.Nd||b}}Rv(w),v.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=Qm[u.j])&&l.Lg!==c)for(l.Lg=c,v=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(v),f=P.nb(),p.j||(p.j=Ye()),y=p.j,g=P.Xd(v,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,v=p.a.length;d<v;++d)w=(M=p.c[p.a[d]]).ta,m=l/c,P=Hn(this.D),"tile-pixels"==M.a.a?(m=u.Aa(w,this.l),ts(P,A=l/f*(w=u.Da(w[0]))/c,A),es(P,Math.round((m[0]-g[0])/w*f),Math.round((g[3]-m[3])/w*f))):(ts(P,m,-m),es(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);Wm.prototype.Of.apply(this,arguments)}},Mu.Ea=function(t,e,o,i,r){var n=e.viewState.resolution,s=e.viewState.rotation;o=null==o?0:o;var a=this.a,p={},h=this.g,l=a.ha();e=l.Ta(e.viewState.projection);for(var u=l.tileGrid,c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=A(g=e.Aa(g,this.l),o*n,d);if(T(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=ot(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=G(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},Mu.Fi=function(){Dv(this)},Mu.ef=function(t,e,o){var i=(l=this.a).ha(),r=tw[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(es(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=ot(P),C=C.size,os(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):Kv(this,C,0),v*l/T,0),T=Iv(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,ys(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}Wm.prototype.ef.apply(this,arguments)},e(ew,nb),(Mu=ew.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new $m(this):e},Mu.Ud=function(){return this.get("preload")},Mu.kd=function(){return this.get("useInterimTilesOnError")},Mu.Bi=function(t){this.set("preload",t)},Mu.Ci=function(t){this.set("useInterimTilesOnError",t)},e(iw,_d),iw.prototype.ka=function(){1==this.state&&(this.yd.forEach(me),this.yd=null),_d.prototype.ka.call(this)},iw.prototype.Y=function(){return this.v},iw.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=jm(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},iw.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=de(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(me(o),--i||(this.yd.forEach(me),this.yd=null,this.de()))},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(pw,kp),pw.prototype.fd=function(t){for(var e,o,i;hw(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=p(t[i],o[1],o[2])),e)break;Se(this.pop())}},e(lw,pb),(Mu=lw.prototype).Ki=function(){return hw(this.a)},Mu.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},Mu.Wf=function(){return 0},Mu.Sb=function(t,e,o){return t+"/"+e+"/"+o},Mu.Zf=function(){return this.va},Mu.ab=function(){return this.tileGrid},Mu.Ta=function(t){return this.tileGrid||re(t)},Mu.Wd=function(t){var e=this.c;return e&&!Xt(e,t)?null:this.a},Mu.nb=function(){return this.$a},Mu.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=X(o.gb(t),this.o),1==e?t:u(t,e,this.o)},Mu.sa=function(){this.a.clear(),this.s()},Mu.Ug=w,e(yw,Me),e(gw,lw),(Mu=gw.prototype).pb=function(){return this.tileLoadFunction},Mu.qb=function(){return this.tileUrlFunction},Mu.rb=function(){return this.urls},Mu.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new yw("tileloadstart",t));break;case 2:this.b(new yw("tileloadend",t));break;case 3:this.b(new yw("tileloaderror",t))}},Mu.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},Mu.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?cw(this,e):this.s()},Mu.jb=function(t){var e=this.urls=aw(t);this.cb(this.Fc?this.Fc.bind(this):rw(e,this.tileGrid),t)},Mu.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):rw(t,this.tileGrid),e)},Mu.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(dw,gw),(Mu=dw.prototype).Ki=function(){if(hw(this.a))return!0;for(var t in this.g)if(hw(this.g[t]))return!0;return!1},Mu.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},Mu.Wf=function(t){return this.c&&t&&!Xt(this.c,t)?0:this.Xf()},Mu.Xf=function(){return 0},Mu.Zf=function(t){return!(this.c&&t&&!Xt(this.c,t))&&gw.prototype.Zf.call(this,t)},Mu.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!Xt(e,t)?((e=G(t).toString())in this.v||(this.v[e]=re(t)),this.v[e]):this.tileGrid},Mu.Wd=function(t){var e=this.c;return!e||Xt(e,t)?this.a:((t=G(t).toString())in this.g||(this.g[t]=new pw(this.a.highWaterMark)),this.g[t])},Mu.Nc=function(t,e,o,i,r){if(this.c&&r&&!Xt(this.c,r)){var n,s=this.Wd(r);if(t=this.Sb.apply(this,o=[t,e,o]),s.b.hasOwnProperty(t)&&(n=s.get(t)),e=this.uc,n&&n.key==e)return n;var a=this.c,p=this.Ta(a),h=this.Ta(r),l=fw(this,o,r);return(i=new iw(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return bw(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,n?(i.i=n,s.replace(t,i)):s.set(t,i),i}return bw(this,t,e,o,i,r)},Mu.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},Mu.Qb=function(t,e){(t=Bt(t))&&((t=G(t).toString())in this.v||(this.v[t]=e))},e(ww,dw);var xw=new he({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Sw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ne({extent:pe(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function Mw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Sw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Pw(this)}function Pw(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Aw(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function Aw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function Ew(t){ub.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof ar,10),t},this.source=t.source,this.source.J("change",Ew.prototype.sa,this)}function Tw(t){if(void 0!==t.resolution){t.features.length=0;for(var e=V(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];G(a).toString()in r||!(a=t.geometryFunction(a))||(k(a=a.X(),e),A(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=G(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?Ai(o,r.X()):e.splice(i,1)}return Ri(o,1/e.length),(t=new Lh(new ar(o))).set("features",e),t}(t,a)))}}}function jw(t,e){var o=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))});var i=o.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function Cw(t){Im.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||Fm,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function Lw(t){Im.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||Fm,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function Rw(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||Fm;Im.call(this,{attributions:t.attributions,logo:t.logo,projection:Bt(t.projection)}),this.M=new qd(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,de(this.M,"change",this.o,this)}function Iw(t){Im.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||Fm,this.f=t.params||{},this.l=!0,kw(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}ww.prototype.T=function(){return this.f},ww.prototype.fa=function(){return this.l},ww.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?lb(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=ne({extent:t=pe(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=nw(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return qt(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=Wt(Bt("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=pt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=ee(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new he({html:e,tileRanges:n})})).push(xw),this.ua(t)),this.D=e,lb(this,"ready"))},e(Sw,dw),e(Mw,Sw),(Mu=Mw.prototype).Kk=function(){return this.f},Mu.tq=function(t){ht(this.f,t),Pw(this)},Mu.Xp=function(t){this.f=t||{},Pw(this)},Mu.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void lb(this,"error")}Aw(this,o),this.l[t]=o,lb(this,"ready")}else lb(this,"error")},Mu.Cl=function(){lb(this,"error")},e(Ew,ub),(Mu=Ew.prototype).$n=function(){return this.distance},Mu.ao=function(){return this.source},Mu.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Tw(this),this.cd(this.features))},Mu.Yp=function(t){this.distance=t,this.sa()},Mu.sa=function(){this.clear(),Tw(this),this.cd(this.features),ub.prototype.sa.call(this)},e(Cw,Im),(Mu=Cw.prototype).co=function(){return this.v},Mu.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=Nm(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t))return r;ht(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2;1!=this.B&&(a=this.B*rt(t)/2,p=this.B*tt(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p);var a=e/o,p=Math.ceil(rt(t)/a),h=Math.ceil(tt(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=jw(n,r),this.M=new qd(t,e,o,this.j,r,this.R,this.g),this.I=this.i,de(this.M,"change",this.o,this),this.M},Mu.bo=function(){return this.g},Mu.eo=function(){return this.f},Mu.fo=function(t){this.M=null,this.g=t,this.s()},Mu.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},Mu.io=function(t){ht(this.v,t),this.M=null,this.s()},e(Lw,Im),(Mu=Lw.prototype).ko=function(){return this.g},Mu.Jc=function(t,e,o){e=Nm(this,e),o=this.T?o:1;var i=this.M;if(i&&this.B==this.i&&i.resolution==e&&i.a==o&&N(i.G(),t))return i;1!=this.v&&at(t=t.slice(),this.v);var r,n,s,a,p,h,l,u=[rt(t)/e*o,tt(t)/e*o];return void 0!==this.I?(i=this.I,r=$(t),n=this.pa,s=rt(t),a=tt(t),p=u[0],h=u[1],l=.0254/this.l,u={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(u[0]),SETDISPLAYHEIGHT:Math.round(u[1]),SETVIEWSCALE:p*a<h*s?s*n/(p*l):a*n/(h*l),SETVIEWCENTERX:r[0],SETVIEWCENTERY:r[1]},ht(u,this.g),i=jw(i,u),de(i=new qd(t,e,o,this.j,i,this.R,this.f),"change",this.o,this)):i=null,this.M=i,this.B=this.i,i},Mu.jo=function(){return this.f},Mu.mo=function(t){ht(this.g,t),this.s()},Mu.lo=function(t){this.M=null,this.f=t,this.s()},e(Rw,Im),Rw.prototype.Jc=function(t){return nt(t,this.M.G())?this.M:null},Rw.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(rt(i)/(tt(i)/n)))!=o&&(r=(i=Ye(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r))),Im.prototype.o.call(this,t)},e(Iw,Im);var Nw=[101,101];function Fw(t,e,o,i,r,n){if(O(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:O(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,e=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=e.join(","),jw(t.g,n)}function kw(t){t.l=0<=Pi(t.f.VERSION||"1.3.0")}function Dw(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[Ow];Sw.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}(Mu=Iw.prototype).so=function(t,e,o,i){if(void 0!==this.g){var r=Q(t,e,0,Nw),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS};return ht(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,Fw(this,r,Nw,1,Bt(o),n)}},Mu.uo=function(){return this.f},Mu.Jc=function(t,e,o,i){if(void 0===this.g)return null;var r=(e=Nm(this,e))/(o=!(1==o||this.va&&void 0!==this.T)?1:o),n=$(t),s=Q(n,r,0,[Math.ceil(rt(t)/r),Math.ceil(tt(t)/r)]);return t=Q(n,r,0,[Math.ceil(this.I*rt(t)/r),Math.ceil(this.I*tt(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&N(n.G(),s)?n:(ht(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(rt(t)/r),this.B[1]=Math.round(tt(t)/r),i=Fw(this,t,this.B,o,i,s),this.M=new qd(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,de(this.M,"change",this.o,this),this.M)},Mu.to=function(){return this.v},Mu.vo=function(){return this.g},Mu.wo=function(t){this.M=null,this.v=t,this.s()},Mu.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},Mu.yo=function(t){ht(this.f,t),kw(this),this.M=null,this.s()},e(Dw,Sw);var Ow=new he({html:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function Uw(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;i<e;++i){var r=i,n=t[i],s=null;n instanceof lw?(n=new _m({source:n}),s=new Wm(n)):n instanceof Im&&(n=new Vm({source:n}),s=new Am(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)de(this.g[e],"change",this.s,this);this.T=new mi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return Gn(t.a)})).length;i<r;++i)o[G(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:Yn(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:Yn(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},Im.call(this,{}),t.operation&&this.v(t.operation,t.lib)}Ya.df={},Ya.df.Af=function(){},function(t){function a(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function e(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+a.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=a(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var h=!0;try{new ImageData(10,10)}catch(t){h=!1}var l=document.createElement("canvas").getContext("2d");e.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},e.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},e.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},e.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},e.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,h?new ImageData(t,e,o):((e=l.createImageData(e,o)).data.set(t),e)),n),this.dh()},t.default={Af:e},t.Af=e}(Ya.df=Ya.df||{}),e(Uw,Im),Uw.prototype.v=function(t,e){this.B=new Ya.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},Uw.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=ht({},this.I)).viewState=ht({},o.viewState),h=$(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(rt(t)/e),o.size[1]=Math.round(tt(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,wi((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&Z(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var s,a,p,h=this.g[o],n=t.layerStatesArray[o];if(!(h=h.sd(r=t,n)?(s=r.size[0],a=r.size[1],!Gw||(p=Gw.canvas).width!==s||p.height!==a?Gw=Ye(s,a):Gw.clearRect(0,0,s,a),h.S(r,n,Gw),Gw.getImageData(0,0,s,a)):null))break t;e[o]=h}this.b(new Bw(Xw,t,i={})),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},Uw.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution&&Z(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Ye(Math.round(rt(e)/r),Math.round(tt(e)/r)),this.f=new Jd(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new Bw(Vw,t,i))))};var Gw=null;function Bw(t,e,o){Me.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(Bw,Me),Uw.prototype.Jc=function(){return null};var Xw="beforeoperations",Vw="afteroperations";function Ww(t){var e=t.layer.indexOf("-"),e=zw[-1==e?t.layer:t.layer.slice(0,e)],o=Kw[t.layer];Sw.call(this,{attributions:Zw,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(Ww,Sw);var Zw=[new he({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),Ow],Kw={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},zw={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function Yw(t){dw.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=V(),cw(this,Hw(this))}function Hw(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function qw(t){lw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function Jw(t,e,o){_d.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function _w(t){var e;this.f=null,dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?ow(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function $w(t){var e;lw.call(this,{projection:Bt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=sw,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?ow(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function Qw(t,e,o,i,r,n){_d.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function tx(t){var e;0==t.state&&(t.state=1,t.l?ow(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function ex(t){var e=(t=t||{}).params||{};dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",ix(this),this.fa=V(),nx(this),cw(this,rx(this))}function ox(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),jw(1==a.length?a[0]:a[L((e[1]<<e[0])+e[2],a.length)],s)}}function ix(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function rx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function nx(t){t.l=0<=Pi(t.f.VERSION||"1.3.0")}function sx(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;_d.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=et(y,a.Aa(t));.5<=rt(o)/g&&.5<=tt(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(de(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function ax(t,e){t.Pg($h(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function px(t,e,o,i,r){_d.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function hx(t){gw.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||ax,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||px,this.f={},this.tileGrid||(this.tileGrid=this.Ta(Bt(t.projection||"EPSG:3857")))}function lx(t){this.o=t.matrixIds,Jt.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function ux(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=Bt(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<h.length)||b(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,u?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new lx({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function cx(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls;void 0===e&&void 0!==t.url&&(e=aw(t.url));var i=this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP",r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l};"KVP"==i&&ht(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C});var n=this.f,s=e&&0<e.length?nw(e.map(function(e){return e="KVP"==i?jw(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){if(t){var o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1};return ht(o,n),t=e,"KVP"==i?jw(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}}})):sw;dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),cw(this,fx(this))}function fx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function yx(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:dx){case dx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case vx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Jt({extent:e=[0,-e[1],e[0],0],origin:ot(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=nw((r=aw(r)).map(function(r){return function(t){if(t){var e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)};return r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}}})),dw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:gx,tileGrid:e,tileUrlFunction:r})}function gx(t,e,o,i,r){tv.call(this,t,e,o,i,r),this.a=null}e(Yw,dw),Yw.prototype.C=function(){return this.f},Yw.prototype.nb=function(t){return t},Yw.prototype.Fc=function(t,e,o){var i=this.tileGrid;if(!((i=i||this.Ta(o)).b.length<=t[0])){var r=i.Aa(t,this.l),n=X(i.gb(t[0]),this.o);1!=e&&(n=u(n,e,this.o)),ht(i={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f);var s=this.urls;return t=s?(o=o.mb.split(":").pop(),i.SIZE=n[0]+","+n[1],i.BBOX=r.join(","),i.BBOXSR=o,i.IMAGESR=o,i.DPI=Math.round(i.DPI?i.DPI*e:90*e),jw(t=(1==s.length?s[0]:s[L((t[1]<<t[0])+t[2],s.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),i)):void 0}},Yw.prototype.B=function(t){ht(this.f,t),cw(this,Hw(this))},e(qw,lw),qw.prototype.Nc=function(t,e,o){var i=this.Sb(t,e,o);if(this.a.b.hasOwnProperty(i))return this.a.get(i);var r=X(this.tileGrid.gb(t)),r=new Jw(t=[t,e,o],r,e=(e=fw(this,t))?fw(this,e).toString():"");return this.a.set(i,r),r},e(Jw,_d),Jw.prototype.Y=function(){if(this.a)return this.a;var t=this.c,e=Ye(t[0],t[1]);return e.strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas},Jw.prototype.load=function(){},e(_w,dw),(Mu=_w.prototype).Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},Mu.zo=function(){this.Ve()},Mu.pl=function(){return this.f},Mu.og=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;if(this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=rw(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}this.f=t,lb(this,"ready")},Mu.Ve=function(){lb(this,"error")},e($w,lw),(Mu=$w.prototype).Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},Mu.Do=function(){this.We()},Mu.ml=function(){return this.g},Mu.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(ve(e,"change",function(){s.call(a,this.getData(n))},e),tx(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},Mu.We=function(){lb(this,"error")},Mu.pg=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.g=t.template;var s=t.grids;if(s){if(this.l=rw(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}lb(this,"ready")}else lb(this,"error")},Mu.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=fw(this,t=[t,e,o],r),i=new Qw(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},Mu.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(Qw,_d),(Mu=Qw.prototype).Y=function(){return null},Mu.getData=function(t){if(!this.g||!this.j)return null;var e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)];return"string"!=typeof e?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},Mu.bb=function(){return this.o},Mu.De=function(){this.state=3,this.s()},Mu.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},Mu.Co=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.De()}this.Ji(e)}else this.De()},Mu.Bo=function(){this.De()},Mu.load=function(){this.v&&tx(this)},e(ex,dw),(Mu=ex.prototype).Fo=function(t,e,o,i){if(o=Bt(o),e=(s=(s=this.tileGrid)||this.Ta(o)).Be(t,e),!(s.b.length<=e[0])){var r=s.Da(e[0]),n=s.Aa(e,this.fa),s=X(s.gb(e[0]),this.o),a=this.C;return a&&(s=l(s,a,this.o),n=A(n,r*a,n)),a={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},ht(a,this.f,i),i=Math.floor((n[3]-t[1])/r),a[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),a[this.l?"J":"Y"]=i,ox(this,e,s,n,1,o,a)}},Mu.Xf=function(){return this.C},Mu.Sb=function(t,e,o){return this.R+dw.prototype.Sb.call(this,t,e,o)},Mu.Go=function(){return this.f},Mu.nb=function(t){return this.T&&void 0!==this.B?t:1},Mu.Fc=function(t,e,o){if(!((n=(n=this.tileGrid)||this.Ta(o)).b.length<=t[0])){1==e||this.T&&void 0!==this.B||(e=1);var i=n.Da(t[0]),r=n.Aa(t,this.fa),n=X(n.gb(t[0]),this.o),s=this.C;return s&&(n=l(n,s,this.o),r=A(r,i*s,r)),1!=e&&(n=u(n,e,this.o)),ht(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),ox(this,t,n,r,e,o,i)}},Mu.eb=function(t){dw.prototype.eb.call(this,t),ix(this)},Mu.Ho=function(t){ht(this.f,t),ix(this),nx(this),cw(this,rx(this))},e(sx,_d),sx.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],Se(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(me),this.g.length=0),this.i&&Se(this.i),this.state=5,this.s(),this.l.forEach(me),this.l.length=0,_d.prototype.ka.call(this)},sx.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},sx.prototype.bb=function(){return this.a.join("/")+"/"+this.u},sx.prototype.load=function(){var r=0,n=!1;0==this.state&&Qd(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&s(this.a,e),1==i.state&&(o=de(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,me(o),s(this.g,o),3==t&&(s(this.a,e),n=!0),r||Qd(this,0<this.a.length?2:3))}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){Qd(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(px,_d),(Mu=px.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),_d.prototype.ka.call(this)},Mu.Lm=function(){return this.o},Mu.Km=function(){return this.g},Mu.bb=function(){return this.l},Mu.Mm=function(){return this.a},Mu.load=function(){0==this.state&&(Qd(this,1),this.u(this,this.l),this.v(null,NaN,null))},Mu.$o=function(t,e){this.ig(e),this.mj(t)},Mu.Zo=function(){Qd(this,3)},Mu.mj=function(t){this.g=t,Qd(this,2)},Mu.ig=function(t){this.a=t},Mu.Pg=function(t){this.v=t},e(hx,gw),hx.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new sx(t=[t,e,o],void 0!==(o=(e=fw(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},hx.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=ae(t,void 0,o?o.gb(o.minZoom):void 0)),o},hx.prototype.nb=function(t){return null==t?gw.prototype.nb.call(this,t):t},hx.prototype.Xd=function(t,e,o){return t=X(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(lx,Jt),lx.prototype.l=function(){return this.o},e(cx,dw),(Mu=cx.prototype).Mk=function(){return this.f},Mu.Io=function(){return this.C},Mu.Jo=function(){return this.B},Mu.$k=function(){return this.l},Mu.kl=function(){return this.T},Mu.Ko=function(){return this.R},Mu.rl=function(){return this.fa},Mu.uq=function(t){ht(this.f,t),cw(this,fx(this))},e(yx,dw),e(gx,tv),gx.prototype.Y=function(){if(this.a)return this.a;var t=tv.prototype.Y.call(this);if(2!=this.state)return t;if(256==t.width&&256==t.height)return this.a=t;var e=Ye(256,256);return e.drawImage(t,0,0),this.a=e.canvas};var dx="default",vx="truncated";function bx(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Ye(t,t),this.f=this.i.canvas}function mx(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function wx(t){this.a=void 0!==(t=t||{}).initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==Xo?Xo:2048,this.b=void 0!==t.space?t.space:1,this.f=[new bx(this.a,this.b)],this.c=this.a,this.g=[new bx(this.c,this.b)]}function xx(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new bx(l,t.b),a.push(l),++h)}return null}return bx.prototype.get=function(t){return this.c[t]||null},bx.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),mx(this,t=n,o,e),s}return null},wx.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=xx(this,!1,t,e,o,i,n))?(t=xx(this,!0,t,e,o,r||w,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",he),he.prototype.getHTML=he.prototype.i,t("ol.Collection",Ne),Ne.prototype.extend=Ne.prototype.fg,Ne.prototype.getArray=Ne.prototype.tm,Ne.prototype.getLength=Ne.prototype.dc,Ne.prototype.insertAt=Ne.prototype.He,Ne.prototype.removeAt=Ne.prototype.Hg,Ne.prototype.setAt=Ne.prototype.Wp,t("ol.color.asArray",Be),t("ol.color.asString",Xe),t("ol.colorlike.asColorLike",ze),t("ol.control.defaults",ao),t("ol.coordinate.add",Ai),t("ol.coordinate.createStringXY",function(e){return function(t){return ki(t,e)}}),t("ol.coordinate.format",ji),t("ol.coordinate.rotate",Li),t("ol.coordinate.toStringHDMS",function(t,e){return t?Ti("NS",t[1],e)+" "+Ti("EW",t[0],e):""}),t("ol.coordinate.toStringXY",ki),t("ol.DeviceOrientation",fh),fh.prototype.getAlpha=fh.prototype.Fk,fh.prototype.getBeta=fh.prototype.Ik,fh.prototype.getGamma=fh.prototype.Ok,fh.prototype.getHeading=fh.prototype.um,fh.prototype.getTracking=fh.prototype.Th,fh.prototype.setTracking=fh.prototype.gg,t("ol.easing.easeIn",to),t("ol.easing.easeOut",eo),t("ol.easing.inAndOut",oo),t("ol.easing.linear",io),t("ol.easing.upAndDown",function(t){return t<.5?oo(2*t):1-oo(2*(t-.5))}),t("ol.extent.boundingExtent",P),t("ol.extent.buffer",A),t("ol.extent.containsCoordinate",T),t("ol.extent.containsExtent",N),t("ol.extent.containsXY",j),t("ol.extent.createEmpty",V),t("ol.extent.equals",Z),t("ol.extent.extend",K),t("ol.extent.getArea",q),t("ol.extent.getBottomLeft",J),t("ol.extent.getBottomRight",_),t("ol.extent.getCenter",$),t("ol.extent.getHeight",tt),t("ol.extent.getIntersection",et),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",ot),t("ol.extent.getTopRight",it),t("ol.extent.getWidth",rt),t("ol.extent.intersects",nt),t("ol.extent.isEmpty",st),t("ol.extent.applyTransform",pt),t("ol.Feature",Lh),Lh.prototype.getGeometry=Lh.prototype.V,Lh.prototype.getId=Lh.prototype.wm,Lh.prototype.getGeometryName=Lh.prototype.Qk,Lh.prototype.getStyle=Lh.prototype.xm,Lh.prototype.getStyleFunction=Lh.prototype.Lc,Lh.prototype.setGeometry=Lh.prototype.Ra,Lh.prototype.setStyle=Lh.prototype.hg,Lh.prototype.setId=Lh.prototype.jc,Lh.prototype.setGeometryName=Lh.prototype.Tc,t("ol.featureloader.xhr",Qh),t("ol.Geolocation",Gd),Gd.prototype.getAccuracy=Gd.prototype.Dk,Gd.prototype.getAccuracyGeometry=Gd.prototype.Ek,Gd.prototype.getAltitude=Gd.prototype.Gk,Gd.prototype.getAltitudeAccuracy=Gd.prototype.Hk,Gd.prototype.getHeading=Gd.prototype.ym,Gd.prototype.getPosition=Gd.prototype.zm,Gd.prototype.getProjection=Gd.prototype.Uh,Gd.prototype.getSpeed=Gd.prototype.ll,Gd.prototype.getTracking=Gd.prototype.Vh,Gd.prototype.getTrackingOptions=Gd.prototype.Gh,Gd.prototype.setProjection=Gd.prototype.Wh,Gd.prototype.setTracking=Gd.prototype.Ke,Gd.prototype.setTrackingOptions=Gd.prototype.wj,t("ol.Graticule",Wd),Wd.prototype.getMap=Wd.prototype.Cm,Wd.prototype.getMeridians=Wd.prototype.al,Wd.prototype.getParallels=Wd.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",Co),t("ol.has.CANVAS",Ro),t("ol.has.DEVICE_ORIENTATION",Io),t("ol.has.GEOLOCATION",No),t("ol.has.TOUCH",Fo),t("ol.has.WEBGL",Go),qd.prototype.getImage=qd.prototype.Y,tv.prototype.getImage=tv.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",On),t("ol.Kinetic",Nr),t("ol.loadingstrategy.all",ab),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=ee(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",Xp),Xp.prototype.addControl=Xp.prototype.kk,Xp.prototype.addInteraction=Xp.prototype.lk,Xp.prototype.addLayer=Xp.prototype.ih,Xp.prototype.addOverlay=Xp.prototype.jh,Xp.prototype.forEachFeatureAtPixel=Xp.prototype.we,Xp.prototype.forEachLayerAtPixel=Xp.prototype.Im,Xp.prototype.hasFeatureAtPixel=Xp.prototype.Yl,Xp.prototype.getEventCoordinate=Xp.prototype.Tf,Xp.prototype.getEventPixel=Xp.prototype.xe,Xp.prototype.getTarget=Xp.prototype.ag,Xp.prototype.getTargetElement=Xp.prototype.jd,Xp.prototype.getCoordinateFromPixel=Xp.prototype.Wa,Xp.prototype.getControls=Xp.prototype.Lk,Xp.prototype.getOverlays=Xp.prototype.fl,Xp.prototype.getOverlayById=Xp.prototype.el,Xp.prototype.getInteractions=Xp.prototype.Sk,Xp.prototype.getLayerGroup=Xp.prototype.Kc,Xp.prototype.getLayers=Xp.prototype.Xh,Xp.prototype.getPixelFromCoordinate=Xp.prototype.Ja,Xp.prototype.getSize=Xp.prototype.Ob,Xp.prototype.getView=Xp.prototype.Z,Xp.prototype.getViewport=Xp.prototype.sl,Xp.prototype.renderSync=Xp.prototype.Tp,Xp.prototype.removeControl=Xp.prototype.Mp,Xp.prototype.removeInteraction=Xp.prototype.Np,Xp.prototype.removeLayer=Xp.prototype.Pp,Xp.prototype.removeOverlay=Xp.prototype.Qp,Xp.prototype.setLayerGroup=Xp.prototype.qj,Xp.prototype.setSize=Xp.prototype.Qg,Xp.prototype.setTarget=Xp.prototype.Le,Xp.prototype.setView=Xp.prototype.iq,Xp.prototype.updateSize=Xp.prototype.Ad,t("ol.Object",je),je.prototype.getKeys=je.prototype.O,je.prototype.getProperties=je.prototype.N,je.prototype.setProperties=je.prototype.H,je.prototype.unset=je.prototype.P,t("ol.Observable",Te),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)me(t[e]);else me(t)}),Te.prototype.changed=Te.prototype.s,Te.prototype.dispatchEvent=Te.prototype.b,Te.prototype.getRevision=Te.prototype.L,Te.prototype.on=Te.prototype.J,Te.prototype.un=Te.prototype.K,t("ol.Overlay",Vp),Vp.prototype.getElement=Vp.prototype.Rd,Vp.prototype.getId=Vp.prototype.Jm,Vp.prototype.getMap=Vp.prototype.Me,Vp.prototype.getOffset=Vp.prototype.Dh,Vp.prototype.getPosition=Vp.prototype.Yh,Vp.prototype.getPositioning=Vp.prototype.Eh,Vp.prototype.setElement=Vp.prototype.lj,Vp.prototype.setOffset=Vp.prototype.rj,Vp.prototype.setPosition=Vp.prototype.Ne,Vp.prototype.setPositioning=Vp.prototype.uj,t("ol.proj.METERS_PER_UNIT",gt),t("ol.proj.setProj4",function(t){dt=t}),t("ol.proj.getPointResolution",Ft),t("ol.proj.addEquivalentProjections",kt),t("ol.proj.addProjection",Dt),t("ol.proj.addCoordinateTransforms",Ut),t("ol.proj.fromLonLat",function(t,e){return zt(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return zt(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",Bt),t("ol.proj.equivalent",Xt),t("ol.proj.getTransform",Vt),t("ol.proj.transform",zt),t("ol.proj.transformExtent",Yt),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||Co,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new ds(t,e,o=[0,0,o.width,o.height],i=ts(Yn(),e,e),0)}),t("ol.size.toSize",X),t("ol.Sphere",ft),ft.prototype.geodesicArea=ft.prototype.a,ft.prototype.haversineDistance=ft.prototype.b,_d.prototype.getTileCoord=_d.prototype.f,t("ol.tilegrid.createXYZ",ne),px.prototype.getFormat=px.prototype.Lm,px.prototype.getFeatures=px.prototype.Km,px.prototype.getProjection=px.prototype.Mm,px.prototype.setFeatures=px.prototype.mj,px.prototype.setProjection=px.prototype.ig,px.prototype.setLoader=px.prototype.Pg,t("ol.View",Pr),Pr.prototype.getAnimating=Pr.prototype.Ic,Pr.prototype.getInteracting=Pr.prototype.Rk,Pr.prototype.cancelAnimations=Pr.prototype.ed,Pr.prototype.constrainCenter=Pr.prototype.Ec,Pr.prototype.getCenter=Pr.prototype.wa,Pr.prototype.calculateExtent=Pr.prototype.dd,Pr.prototype.getMaxResolution=Pr.prototype.Nm,Pr.prototype.getMinResolution=Pr.prototype.Pm,Pr.prototype.getMaxZoom=Pr.prototype.Om,Pr.prototype.setMaxZoom=Pr.prototype.eq,Pr.prototype.getMinZoom=Pr.prototype.Qm,Pr.prototype.setMinZoom=Pr.prototype.fq,Pr.prototype.getProjection=Pr.prototype.Rm,Pr.prototype.getResolution=Pr.prototype.Pa,Pr.prototype.getResolutions=Pr.prototype.Sm,Pr.prototype.getResolutionForExtent=Pr.prototype.ze,Pr.prototype.getRotation=Pr.prototype.Qa,Pr.prototype.getZoom=Pr.prototype.Hh,Pr.prototype.getZoomForResolution=Pr.prototype.Ce,Pr.prototype.fit=Pr.prototype.Qf,Pr.prototype.centerOn=Pr.prototype.uk,Pr.prototype.setCenter=Pr.prototype.ob,Pr.prototype.setResolution=Pr.prototype.Vc,Pr.prototype.setRotation=Pr.prototype.Oe,Pr.prototype.setZoom=Pr.prototype.lq,t("ol.xml.getAllTextContent",Nh),t("ol.xml.parse",Dh),Qs.prototype.getGL=Qs.prototype.Wo,Qs.prototype.useProgram=Qs.prototype.Qc,t("ol.tilegrid.TileGrid",Jt),Jt.prototype.forEachTileCoord=Jt.prototype.Rf,Jt.prototype.getMaxZoom=Jt.prototype.Ti,Jt.prototype.getMinZoom=Jt.prototype.Ui,Jt.prototype.getOrigin=Jt.prototype.Pc,Jt.prototype.getResolution=Jt.prototype.Da,Jt.prototype.getResolutions=Jt.prototype.Vi,Jt.prototype.getTileCoordExtent=Jt.prototype.Aa,Jt.prototype.getTileCoordForCoordAndResolution=Jt.prototype.Be,Jt.prototype.getTileCoordForCoordAndZ=Jt.prototype.bg,Jt.prototype.getTileSize=Jt.prototype.gb,Jt.prototype.getZForResolution=Jt.prototype.tc,t("ol.tilegrid.WMTS",lx),lx.prototype.getMatrixIds=lx.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",ux),t("ol.style.AtlasManager",wx),t("ol.style.Circle",Sh),Sh.prototype.setRadius=Sh.prototype.Uc,t("ol.style.Fill",Mh),Mh.prototype.getColor=Mh.prototype.i,Mh.prototype.setColor=Mh.prototype.c,t("ol.style.Icon",Yc),Yc.prototype.getAnchor=Yc.prototype.Hc,Yc.prototype.getColor=Yc.prototype.Lo,Yc.prototype.getImage=Yc.prototype.Y,Yc.prototype.getOrigin=Yc.prototype.Oc,Yc.prototype.getSrc=Yc.prototype.Mo,Yc.prototype.getSize=Yc.prototype.ic,t("ol.style.Image",mh),mh.prototype.getOpacity=mh.prototype.Ze,mh.prototype.getRotateWithView=mh.prototype.$e,mh.prototype.getRotation=mh.prototype.af,mh.prototype.getScale=mh.prototype.bf,mh.prototype.getSnapToPixel=mh.prototype.Ae,mh.prototype.setOpacity=mh.prototype.td,mh.prototype.setRotation=mh.prototype.cf,mh.prototype.setScale=mh.prototype.ud,t("ol.style.RegularShape",wh),wh.prototype.getAnchor=wh.prototype.Hc,wh.prototype.getAngle=wh.prototype.Pi,wh.prototype.getFill=wh.prototype.Fa,wh.prototype.getImage=wh.prototype.Y,wh.prototype.getOrigin=wh.prototype.Oc,wh.prototype.getPoints=wh.prototype.Qi,wh.prototype.getRadius=wh.prototype.Ri,wh.prototype.getRadius2=wh.prototype.Fh,wh.prototype.getSize=wh.prototype.ic,wh.prototype.getStroke=wh.prototype.Ga,t("ol.style.Stroke",Oa),Oa.prototype.getColor=Oa.prototype.No,Oa.prototype.getLineCap=Oa.prototype.Vk,Oa.prototype.getLineDash=Oa.prototype.Oo,Oa.prototype.getLineDashOffset=Oa.prototype.Wk,Oa.prototype.getLineJoin=Oa.prototype.Xk,Oa.prototype.getMiterLimit=Oa.prototype.bl,Oa.prototype.getWidth=Oa.prototype.Po,Oa.prototype.setColor=Oa.prototype.Qo,Oa.prototype.setLineCap=Oa.prototype.aq,Oa.prototype.setLineDashOffset=Oa.prototype.bq,Oa.prototype.setLineJoin=Oa.prototype.cq,Oa.prototype.setMiterLimit=Oa.prototype.gq,Oa.prototype.setWidth=Oa.prototype.jq,t("ol.style.Style",Ph),Ph.prototype.getGeometry=Ph.prototype.V,Ph.prototype.getGeometryFunction=Ph.prototype.Pk,Ph.prototype.getFill=Ph.prototype.Fa,Ph.prototype.setFill=Ph.prototype.pf,Ph.prototype.getImage=Ph.prototype.Y,Ph.prototype.setImage=Ph.prototype.Og,Ph.prototype.getStroke=Ph.prototype.Ga,Ph.prototype.setStroke=Ph.prototype.qf,Ph.prototype.getText=Ph.prototype.Na,Ph.prototype.setText=Ph.prototype.xd,Ph.prototype.getZIndex=Ph.prototype.Ba,Ph.prototype.setGeometry=Ph.prototype.Ra,Ph.prototype.setZIndex=Ph.prototype.Vb,t("ol.style.Text",Hc),Hc.prototype.getFont=Hc.prototype.Nk,Hc.prototype.getOffsetX=Hc.prototype.cl,Hc.prototype.getOffsetY=Hc.prototype.dl,Hc.prototype.getFill=Hc.prototype.Fa,Hc.prototype.getRotateWithView=Hc.prototype.Ro,Hc.prototype.getRotation=Hc.prototype.So,Hc.prototype.getScale=Hc.prototype.To,Hc.prototype.getStroke=Hc.prototype.Ga,Hc.prototype.getText=Hc.prototype.Na,Hc.prototype.getTextAlign=Hc.prototype.nl,Hc.prototype.getTextBaseline=Hc.prototype.ol,Hc.prototype.setFont=Hc.prototype.nj,Hc.prototype.setOffsetX=Hc.prototype.sj,Hc.prototype.setOffsetY=Hc.prototype.tj,Hc.prototype.setFill=Hc.prototype.pf,Hc.prototype.setRotation=Hc.prototype.Uo,Hc.prototype.setScale=Hc.prototype.Si,Hc.prototype.setStroke=Hc.prototype.qf,Hc.prototype.setText=Hc.prototype.xd,Hc.prototype.setTextAlign=Hc.prototype.vj,Hc.prototype.setTextBaseline=Hc.prototype.hq,t("ol.source.BingMaps",ww),t("ol.source.BingMaps.TOS_ATTRIBUTION",xw),ww.prototype.getApiKey=ww.prototype.T,ww.prototype.getImagerySet=ww.prototype.fa,t("ol.source.CartoDB",Mw),Mw.prototype.getConfig=Mw.prototype.Kk,Mw.prototype.updateConfig=Mw.prototype.tq,Mw.prototype.setConfig=Mw.prototype.Xp,t("ol.source.Cluster",Ew),Ew.prototype.getDistance=Ew.prototype.$n,Ew.prototype.getSource=Ew.prototype.ao,Ew.prototype.setDistance=Ew.prototype.Yp,t("ol.source.Image",Im),t("ol.source.ImageArcGISRest",Cw),Cw.prototype.getParams=Cw.prototype.co,Cw.prototype.getImageLoadFunction=Cw.prototype.bo,Cw.prototype.getUrl=Cw.prototype.eo,Cw.prototype.setImageLoadFunction=Cw.prototype.fo,Cw.prototype.setUrl=Cw.prototype.ho,Cw.prototype.updateParams=Cw.prototype.io,t("ol.source.ImageCanvas",Gm),t("ol.source.ImageMapGuide",Lw),Lw.prototype.getParams=Lw.prototype.ko,Lw.prototype.getImageLoadFunction=Lw.prototype.jo,Lw.prototype.updateParams=Lw.prototype.mo,Lw.prototype.setImageLoadFunction=Lw.prototype.lo,t("ol.source.ImageStatic",Rw),t("ol.source.ImageVector",Bm),Bm.prototype.getSource=Bm.prototype.no,Bm.prototype.getStyle=Bm.prototype.oo,Bm.prototype.getStyleFunction=Bm.prototype.po,Bm.prototype.setStyle=Bm.prototype.Ii,t("ol.source.ImageWMS",Iw),Iw.prototype.getGetFeatureInfoUrl=Iw.prototype.so,Iw.prototype.getParams=Iw.prototype.uo,Iw.prototype.getImageLoadFunction=Iw.prototype.to,Iw.prototype.getUrl=Iw.prototype.vo,Iw.prototype.setImageLoadFunction=Iw.prototype.wo,Iw.prototype.setUrl=Iw.prototype.xo,Iw.prototype.updateParams=Iw.prototype.yo,t("ol.source.OSM",Dw),t("ol.source.OSM.ATTRIBUTION",Ow),t("ol.source.Raster",Uw),Uw.prototype.setOperation=Uw.prototype.v,t("ol.source.Source",pb),pb.prototype.getAttributions=pb.prototype.ya,pb.prototype.getLogo=pb.prototype.xa,pb.prototype.getProjection=pb.prototype.za,pb.prototype.refresh=pb.prototype.sa,pb.prototype.setAttributions=pb.prototype.ua,t("ol.source.Stamen",Ww),t("ol.source.Tile",lw),lw.prototype.getTileGrid=lw.prototype.ab,t("ol.source.TileArcGISRest",Yw),Yw.prototype.getParams=Yw.prototype.C,Yw.prototype.updateParams=Yw.prototype.B,t("ol.source.TileDebug",qw),t("ol.source.TileImage",dw),dw.prototype.setRenderReprojectionEdges=dw.prototype.Pb,dw.prototype.setTileGridForProjection=dw.prototype.Qb,t("ol.source.TileJSON",_w),_w.prototype.getTileJSON=_w.prototype.pl,t("ol.source.TileUTFGrid",$w),$w.prototype.getTemplate=$w.prototype.ml,$w.prototype.forDataAtCoordinateAndResolution=$w.prototype.zk,t("ol.source.TileWMS",ex),ex.prototype.getGetFeatureInfoUrl=ex.prototype.Fo,ex.prototype.getParams=ex.prototype.Go,ex.prototype.updateParams=ex.prototype.Ho,gw.prototype.getTileLoadFunction=gw.prototype.pb,gw.prototype.getTileUrlFunction=gw.prototype.qb,gw.prototype.getUrls=gw.prototype.rb,gw.prototype.setTileLoadFunction=gw.prototype.vb,gw.prototype.setTileUrlFunction=gw.prototype.cb,gw.prototype.setUrl=gw.prototype.jb,gw.prototype.setUrls=gw.prototype.eb,t("ol.source.Vector",ub),ub.prototype.addFeature=ub.prototype.yb,ub.prototype.addFeatures=ub.prototype.cd,ub.prototype.forEachFeature=ub.prototype.sh,ub.prototype.forEachFeatureInExtent=ub.prototype.$b,ub.prototype.forEachFeatureIntersectingExtent=ub.prototype.th,ub.prototype.getFeaturesCollection=ub.prototype.Ah,ub.prototype.getFeatures=ub.prototype.Xe,ub.prototype.getFeaturesAtCoordinate=ub.prototype.zh,ub.prototype.getFeaturesInExtent=ub.prototype.Uf,ub.prototype.getClosestFeatureToCoordinate=ub.prototype.vh,ub.prototype.getExtent=ub.prototype.G,ub.prototype.getFeatureById=ub.prototype.yh,ub.prototype.getFormat=ub.prototype.Mi,ub.prototype.getUrl=ub.prototype.Ni,ub.prototype.removeFeature=ub.prototype.Gb,t("ol.source.VectorTile",hx),t("ol.source.WMTS",cx),cx.prototype.getDimensions=cx.prototype.Mk,cx.prototype.getFormat=cx.prototype.Io,cx.prototype.getLayer=cx.prototype.Jo,cx.prototype.getMatrixSet=cx.prototype.$k,cx.prototype.getRequestEncoding=cx.prototype.kl,cx.prototype.getStyle=cx.prototype.Ko,cx.prototype.getVersion=cx.prototype.rl,cx.prototype.updateDimensions=cx.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=b(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var n=t.Contents.TileMatrixSet,o=1<e.TileMatrixSetLink.length?"projection"in r?m(e.TileMatrixSetLink,function(e){var t=b(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=Bt(t),i=Bt(r.projection);return o&&i?Xt(o,i):t==r.projection}):m(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0,i=e.TileMatrixSetLink[o=o<0?0:o].TileMatrixSet,s=e.TileMatrixSetLink[o].TileMatrixSetLimits,a=e.Format[0];"format"in r&&(a=r.format),o=m(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault});var o=e.Style[o=o<0?0:o].Identifier,p={};"Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),p[e]=o});var h,l,u=b(t.Contents.TileMatrixSet,function(t){return t.Identifier==i}),c="projection"in r?Bt(r.projection):Bt(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox;void 0!==f&&(h=Bt("EPSG:4326").G(),h=f[0]==h[0]&&f[2]==h[2],l=Yt(f,"EPSG:4326",c),(f=c.G())&&(N(f,l)||(l=void 0)));var s=ux(u,l,s),y=[],u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(l=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;l<f;++l){var g=b(t[l].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;d(g,"KVP")&&y.push(t[l].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(a=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:i,format:a,projection:c,requestEncoding:u,tileGrid:s,style:o,dimensions:p,wrapX:h,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",Sw),t("ol.source.Zoomify",yx),Dy.prototype.getExtent=Dy.prototype.G,Dy.prototype.getId=Dy.prototype.Wn,Dy.prototype.getGeometry=Dy.prototype.V,Dy.prototype.getProperties=Dy.prototype.Xn,Dy.prototype.getType=Dy.prototype.U,t("ol.render.VectorContext",gs),Fp.prototype.setStyle=Fp.prototype.rd,Fp.prototype.drawGeometry=Fp.prototype.zb,Fp.prototype.drawFeature=Fp.prototype.te,ds.prototype.drawCircle=ds.prototype.Zb,ds.prototype.setStyle=ds.prototype.rd,ds.prototype.drawGeometry=ds.prototype.zb,ds.prototype.drawFeature=ds.prototype.te,t("ol.proj.common.add",Ht),t("ol.proj.Projection",vt),vt.prototype.getCode=vt.prototype.Jk,vt.prototype.getExtent=vt.prototype.G,vt.prototype.getUnits=vt.prototype.Un,vt.prototype.getMetersPerUnit=vt.prototype.sc,vt.prototype.getWorldExtent=vt.prototype.tl,vt.prototype.isGlobal=vt.prototype.dm,vt.prototype.setGlobal=vt.prototype.$p,vt.prototype.setExtent=vt.prototype.Vn,vt.prototype.setWorldExtent=vt.prototype.kq,vt.prototype.setGetPointResolution=vt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",gt),t("ol.layer.Base",Un),Un.prototype.getExtent=Un.prototype.G,Un.prototype.getMaxResolution=Un.prototype.fc,Un.prototype.getMinResolution=Un.prototype.gc,Un.prototype.getOpacity=Un.prototype.hc,Un.prototype.getVisible=Un.prototype.Mb,Un.prototype.getZIndex=Un.prototype.Ba,Un.prototype.setExtent=Un.prototype.vc,Un.prototype.setMaxResolution=Un.prototype.Ac,Un.prototype.setMinResolution=Un.prototype.Bc,Un.prototype.setOpacity=Un.prototype.wc,Un.prototype.setVisible=Un.prototype.xc,Un.prototype.setZIndex=Un.prototype.Vb,t("ol.layer.Group",Bn),Bn.prototype.getLayers=Bn.prototype.qd,Bn.prototype.setLayers=Bn.prototype.xi,t("ol.layer.Heatmap",mm),mm.prototype.getBlur=mm.prototype.uh,mm.prototype.getGradient=mm.prototype.Bh,mm.prototype.getRadius=mm.prototype.yi,mm.prototype.setBlur=mm.prototype.jj,mm.prototype.setGradient=mm.prototype.pj,mm.prototype.setRadius=mm.prototype.Uc,t("ol.layer.Image",Vm),Vm.prototype.getSource=Vm.prototype.ha,t("ol.layer.Layer",Vn),Vn.prototype.getSource=Vn.prototype.ha,Vn.prototype.setSource=Vn.prototype.Wc,t("ol.layer.Tile",_m),_m.prototype.getPreload=_m.prototype.Ud,_m.prototype.getSource=_m.prototype.ha,_m.prototype.setPreload=_m.prototype.zi,_m.prototype.getUseInterimTilesOnError=_m.prototype.kd,_m.prototype.setUseInterimTilesOnError=_m.prototype.Ai,t("ol.layer.Vector",nb),nb.prototype.getSource=nb.prototype.ha,nb.prototype.getStyle=nb.prototype.D,nb.prototype.getStyleFunction=nb.prototype.C,nb.prototype.setStyle=nb.prototype.g,t("ol.layer.VectorTile",ew),ew.prototype.getPreload=ew.prototype.Ud,ew.prototype.getUseInterimTilesOnError=ew.prototype.kd,ew.prototype.setPreload=ew.prototype.Bi,ew.prototype.setUseInterimTilesOnError=ew.prototype.Ci,t("ol.interaction.DoubleClickZoom",Gr),t("ol.interaction.DoubleClickZoom.handleEvent",Br),t("ol.interaction.DragAndDrop",iv),t("ol.interaction.DragAndDrop.handleEvent",Di),t("ol.interaction.DragBox",un),un.prototype.getGeometry=un.prototype.V,t("ol.interaction.DragPan",Qr),t("ol.interaction.DragRotate",rn),t("ol.interaction.DragRotateAndZoom",lv),t("ol.interaction.DragZoom",wn),t("ol.interaction.Draw",vb),t("ol.interaction.Draw.handleEvent",bb),vb.prototype.removeLastPoint=vb.prototype.Op,vb.prototype.finishDrawing=vb.prototype.Pd,vb.prototype.extend=vb.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0];t=t[1];var i=Math.sqrt(Ii(o,t));return Mr(e=e||Sr(new Bd(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=P(t),(e=e||new br(null)).ma([[J(t),_(t),it(t),ot(t),J(t)]]),e}}),t("ol.interaction.Extent",Ib),Ib.prototype.getExtent=Ib.prototype.G,Ib.prototype.setExtent=Ib.prototype.g,Xb.prototype.extent_=Xb.prototype.b,t("ol.interaction.Interaction",kr),kr.prototype.getActive=kr.prototype.c,kr.prototype.getMap=kr.prototype.f,kr.prototype.setActive=kr.prototype.Ha,t("ol.interaction.KeyboardPan",xn),t("ol.interaction.KeyboardPan.handleEvent",Sn),t("ol.interaction.KeyboardZoom",Mn),t("ol.interaction.KeyboardZoom.handleEvent",Pn),t("ol.interaction.Modify",Wb),t("ol.interaction.Modify.handleEvent",_b),Wb.prototype.removePoint=Wb.prototype.hj,t("ol.interaction.MouseWheelZoom",An),t("ol.interaction.MouseWheelZoom.handleEvent",En),An.prototype.setMouseAnchor=An.prototype.T,t("ol.interaction.PinchRotate",Cn),t("ol.interaction.PinchZoom",Nn),t("ol.interaction.Pointer",Jr),t("ol.interaction.Pointer.handleEvent",$r),t("ol.interaction.Select",im),im.prototype.getFeatures=im.prototype.Gn,im.prototype.getHitTolerance=im.prototype.Hn,im.prototype.getLayer=im.prototype.In,t("ol.interaction.Select.handleEvent",rm),im.prototype.setHitTolerance=im.prototype.Kn,t("ol.interaction.Snap",am),am.prototype.addFeature=am.prototype.yb,am.prototype.removeFeature=am.prototype.Gb,t("ol.interaction.Translate",um),um.prototype.getHitTolerance=um.prototype.B,um.prototype.setHitTolerance=um.prototype.I,t("ol.geom.Circle",Bd),Bd.prototype.getCenter=Bd.prototype.wa,Bd.prototype.getRadius=Bd.prototype.pd,Bd.prototype.getType=Bd.prototype.U,Bd.prototype.intersectsExtent=Bd.prototype.Xa,Bd.prototype.setCenter=Bd.prototype.ob,Bd.prototype.setCenterAndRadius=Bd.prototype.Ng,Bd.prototype.setRadius=Bd.prototype.Uc,Bd.prototype.transform=Bd.prototype.tb,t("ol.geom.Geometry",Ui),Ui.prototype.getClosestPoint=Ui.prototype.Ab,Ui.prototype.intersectsCoordinate=Ui.prototype.sb,Ui.prototype.getExtent=Ui.prototype.G,Ui.prototype.simplify=Ui.prototype.Rb,Ui.prototype.transform=Ui.prototype.tb,t("ol.geom.GeometryCollection",ql),ql.prototype.getGeometries=ql.prototype.Vf,ql.prototype.getType=ql.prototype.U,ql.prototype.intersectsExtent=ql.prototype.Xa,ql.prototype.setGeometries=ql.prototype.oj,ql.prototype.applyTransform=ql.prototype.Dc,t("ol.geom.LinearRing",nr),nr.prototype.getArea=nr.prototype.qn,nr.prototype.getCoordinates=nr.prototype.X,nr.prototype.getType=nr.prototype.U,nr.prototype.setCoordinates=nr.prototype.ma,t("ol.geom.LineString",pl),pl.prototype.appendCoordinate=pl.prototype.mk,pl.prototype.forEachSegment=pl.prototype.Ck,pl.prototype.getCoordinateAtM=pl.prototype.nn,pl.prototype.getCoordinates=pl.prototype.X,pl.prototype.getCoordinateAt=pl.prototype.wh,pl.prototype.getLength=pl.prototype.pn,pl.prototype.getType=pl.prototype.U,pl.prototype.intersectsExtent=pl.prototype.Xa,pl.prototype.setCoordinates=pl.prototype.ma,t("ol.geom.MultiLineString",ll),ll.prototype.appendLineString=ll.prototype.nk,ll.prototype.getCoordinateAtM=ll.prototype.rn,ll.prototype.getCoordinates=ll.prototype.X,ll.prototype.getLineString=ll.prototype.Yk,ll.prototype.getLineStrings=ll.prototype.gd,ll.prototype.getType=ll.prototype.U,ll.prototype.intersectsExtent=ll.prototype.Xa,ll.prototype.setCoordinates=ll.prototype.ma,t("ol.geom.MultiPoint",fl),fl.prototype.appendPoint=fl.prototype.qk,fl.prototype.getCoordinates=fl.prototype.X,fl.prototype.getPoint=fl.prototype.il,fl.prototype.getPoints=fl.prototype.Zd,fl.prototype.getType=fl.prototype.U,fl.prototype.intersectsExtent=fl.prototype.Xa,fl.prototype.setCoordinates=fl.prototype.ma,t("ol.geom.MultiPolygon",yl),yl.prototype.appendPolygon=yl.prototype.rk,yl.prototype.getArea=yl.prototype.sn,yl.prototype.getCoordinates=yl.prototype.X,yl.prototype.getInteriorPoints=yl.prototype.Uk,yl.prototype.getPolygon=yl.prototype.jl,yl.prototype.getPolygons=yl.prototype.Td,yl.prototype.getType=yl.prototype.U,yl.prototype.intersectsExtent=yl.prototype.Xa,yl.prototype.setCoordinates=yl.prototype.ma,t("ol.geom.Point",ar),ar.prototype.getCoordinates=ar.prototype.X,ar.prototype.getType=ar.prototype.U,ar.prototype.intersectsExtent=ar.prototype.Xa,ar.prototype.setCoordinates=ar.prototype.ma,t("ol.geom.Polygon",br),br.prototype.appendLinearRing=br.prototype.pk,br.prototype.getArea=br.prototype.tn,br.prototype.getCoordinates=br.prototype.X,br.prototype.getInteriorPoint=br.prototype.Tk,br.prototype.getLinearRingCount=br.prototype.Zk,br.prototype.getLinearRing=br.prototype.Ch,br.prototype.getLinearRings=br.prototype.Sd,br.prototype.getType=br.prototype.U,br.prototype.intersectsExtent=br.prototype.Xa,br.prototype.setCoordinates=br.prototype.ma,t("ol.geom.Polygon.circular",wr),t("ol.geom.Polygon.fromExtent",xr),t("ol.geom.Polygon.fromCircle",Sr),t("ol.geom.SimpleGeometry",Xi),Xi.prototype.getFirstCoordinate=Xi.prototype.ac,Xi.prototype.getLastCoordinate=Xi.prototype.bc,Xi.prototype.getLayout=Xi.prototype.cc,Xi.prototype.applyTransform=Xi.prototype.Dc,t("ol.format.EsriJSON",ml),ml.prototype.readFeature=ml.prototype.Tb,ml.prototype.readFeatures=ml.prototype.Oa,ml.prototype.readGeometry=ml.prototype.Sc,ml.prototype.readProjection=ml.prototype.kb,ml.prototype.writeGeometry=ml.prototype.$c,ml.prototype.writeGeometryObject=ml.prototype.je,ml.prototype.writeFeature=ml.prototype.Bd,ml.prototype.writeFeatureObject=ml.prototype.Zc,ml.prototype.writeFeatures=ml.prototype.Wb,ml.prototype.writeFeaturesObject=ml.prototype.he,t("ol.format.Feature",tl),t("ol.format.filter.and",Yl),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Kl,e))}),t("ol.format.filter.not",function(t){return new Wl(t)}),t("ol.format.filter.bbox",Hl),t("ol.format.filter.intersects",function(t,e,o){return new Ol(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new zl(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new Nl(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new Zl(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new Xl(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new Vl(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Fl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new kl(t,e)}),t("ol.format.filter.isNull",function(t){return new Bl(t)}),t("ol.format.filter.between",function(t,e,o){return new Ul(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new Gl(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Rl(t,e,o)}),t("ol.format.GeoJSON",Ql),Ql.prototype.readFeature=Ql.prototype.Tb,Ql.prototype.readFeatures=Ql.prototype.Oa,Ql.prototype.readGeometry=Ql.prototype.Sc,Ql.prototype.readProjection=Ql.prototype.kb,Ql.prototype.writeFeature=Ql.prototype.Bd,Ql.prototype.writeFeatureObject=Ql.prototype.Zc,Ql.prototype.writeFeatures=Ql.prototype.Wb,Ql.prototype.writeFeaturesObject=Ql.prototype.he,Ql.prototype.writeGeometry=Ql.prototype.$c,Ql.prototype.writeGeometryObject=Ql.prototype.je,t("ol.format.GML",xu),xu.prototype.writeFeatures=xu.prototype.Wb,xu.prototype.writeFeaturesNode=xu.prototype.Xb,t("ol.format.GML2",Ru),t("ol.format.GML3",xu),xu.prototype.writeGeometryNode=xu.prototype.ie,xu.prototype.writeFeatures=xu.prototype.Wb,xu.prototype.writeFeaturesNode=xu.prototype.Xb,au.prototype.readFeatures=au.prototype.Oa,t("ol.format.GPX",Vu),Vu.prototype.readFeature=Vu.prototype.Tb,Vu.prototype.readFeatures=Vu.prototype.Oa,Vu.prototype.readProjection=Vu.prototype.kb,Vu.prototype.writeFeatures=Vu.prototype.Wb,Vu.prototype.writeFeaturesNode=Vu.prototype.Xb,t("ol.format.IGC",Ac),Ac.prototype.readFeature=Ac.prototype.Tb,Ac.prototype.readFeatures=Ac.prototype.Oa,Ac.prototype.readProjection=Ac.prototype.kb,t("ol.format.KML",qc),qc.prototype.readFeature=qc.prototype.Tb,qc.prototype.readFeatures=qc.prototype.Oa,qc.prototype.readName=qc.prototype.Cp,qc.prototype.readNetworkLinks=qc.prototype.Dp,qc.prototype.readRegion=qc.prototype.Gp,qc.prototype.readRegionFromNode=qc.prototype.lf,qc.prototype.readProjection=qc.prototype.kb,qc.prototype.writeFeatures=qc.prototype.Wb,qc.prototype.writeFeaturesNode=qc.prototype.Xb,t("ol.format.MVT",Oy),Oy.prototype.readFeatures=Oy.prototype.Oa,Oy.prototype.readProjection=Oy.prototype.kb,Oy.prototype.setLayers=Oy.prototype.mn,t("ol.format.OSMXML",Gy),Gy.prototype.readFeatures=Gy.prototype.Oa,Gy.prototype.readProjection=Gy.prototype.kb,t("ol.format.Polyline",hg),t("ol.format.Polyline.encodeDeltas",lg),t("ol.format.Polyline.decodeDeltas",ug),t("ol.format.Polyline.encodeFloats",cg),t("ol.format.Polyline.decodeFloats",fg),hg.prototype.readFeature=hg.prototype.Tb,hg.prototype.readFeatures=hg.prototype.Oa,hg.prototype.readGeometry=hg.prototype.Sc,hg.prototype.readProjection=hg.prototype.kb,hg.prototype.writeGeometry=hg.prototype.$c,t("ol.format.TopoJSON",yg),yg.prototype.readFeatures=yg.prototype.Oa,yg.prototype.readProjection=yg.prototype.kb,t("ol.format.WFS",mg),mg.prototype.readFeatures=mg.prototype.Oa,mg.prototype.readTransactionResponse=mg.prototype.j,mg.prototype.readFeatureCollectionMetadata=mg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=Ih("http://www.opengis.net/ogc","Filter");return _h({node:e},Gg,Zh(t.kc),[t],[]),e}),mg.prototype.writeGetFeature=mg.prototype.l,mg.prototype.writeTransaction=mg.prototype.v,mg.prototype.readProjection=mg.prototype.kb,t("ol.format.WKT",Bg),Bg.prototype.readFeature=Bg.prototype.Tb,Bg.prototype.readFeatures=Bg.prototype.Oa,Bg.prototype.readGeometry=Bg.prototype.Sc,Bg.prototype.writeFeature=Bg.prototype.Bd,Bg.prototype.writeFeatures=Bg.prototype.Wb,Bg.prototype.writeGeometry=Bg.prototype.$c,t("ol.format.WMSCapabilities",id),t("ol.format.WMSGetFeatureInfo",Ad),Ad.prototype.readFeatures=Ad.prototype.Oa,t("ol.format.WMTSCapabilities",Ed),t("ol.format.filter.And",jl),t("ol.format.filter.Bbox",Cl),t("ol.format.filter.Comparison",Ll),t("ol.format.filter.ComparisonBinary",Il),t("ol.format.filter.During",Rl),t("ol.format.filter.EqualTo",Nl),t("ol.format.filter.Filter",El),t("ol.format.filter.GreaterThan",Fl),t("ol.format.filter.GreaterThanOrEqualTo",kl),t("ol.format.filter.Intersects",Ol),t("ol.format.filter.IsBetween",Ul),t("ol.format.filter.IsLike",Gl),t("ol.format.filter.IsNull",Bl),t("ol.format.filter.LessThan",Xl),t("ol.format.filter.LessThanOrEqualTo",Vl),t("ol.format.filter.Not",Wl),t("ol.format.filter.NotEqualTo",Zl),t("ol.format.filter.Or",Kl),t("ol.format.filter.Spatial",Dl),t("ol.format.filter.Within",zl),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",Xr),t("ol.events.condition.always",Di),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",Oi),t("ol.events.condition.pointerMove",Wr),t("ol.events.condition.singleClick",Zr),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",Kr),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(jo?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",zr),t("ol.events.condition.targetNotEditable",Yr),t("ol.events.condition.mouseOnly",Hr),t("ol.events.condition.primaryAction",qr),t("ol.control.Attribution",_e),t("ol.control.Attribution.render",$e),_e.prototype.getCollapsible=_e.prototype.Um,_e.prototype.setCollapsible=_e.prototype.Xm,_e.prototype.setCollapsed=_e.prototype.Wm,_e.prototype.getCollapsed=_e.prototype.Tm,t("ol.control.Control",Je),Je.prototype.getMap=Je.prototype.g,Je.prototype.setTarget=Je.prototype.f,t("ol.control.FullScreen",po),t("ol.control.MousePosition",yo),t("ol.control.MousePosition.render",go),yo.prototype.getCoordinateFormat=yo.prototype.xh,yo.prototype.getProjection=yo.prototype.Zh,yo.prototype.setCoordinateFormat=yo.prototype.kj,yo.prototype.setProjection=yo.prototype.$h,t("ol.control.OverviewMap",_p),t("ol.control.OverviewMap.render",$p),_p.prototype.getCollapsible=_p.prototype.$m,_p.prototype.setCollapsible=_p.prototype.cn,_p.prototype.setCollapsed=_p.prototype.bn,_p.prototype.getCollapsed=_p.prototype.Zm,_p.prototype.getOverviewMap=_p.prototype.gl,t("ol.control.Rotate",ro),t("ol.control.Rotate.render",no),t("ol.control.ScaleLine",oh),oh.prototype.getUnits=oh.prototype.C,t("ol.control.ScaleLine.render",rh),oh.prototype.setUnits=oh.prototype.I,t("ol.control.Zoom",so),t("ol.control.ZoomSlider",ah),t("ol.control.ZoomSlider.render",hh),t("ol.control.ZoomToExtent",ch),je.prototype.changed=je.prototype.s,je.prototype.dispatchEvent=je.prototype.b,je.prototype.getRevision=je.prototype.L,je.prototype.on=je.prototype.J,je.prototype.un=je.prototype.K,Ne.prototype.getKeys=Ne.prototype.O,Ne.prototype.getProperties=Ne.prototype.N,Ne.prototype.setProperties=Ne.prototype.H,Ne.prototype.unset=Ne.prototype.P,Ne.prototype.changed=Ne.prototype.s,Ne.prototype.dispatchEvent=Ne.prototype.b,Ne.prototype.getRevision=Ne.prototype.L,Ne.prototype.on=Ne.prototype.J,Ne.prototype.un=Ne.prototype.K,fh.prototype.getKeys=fh.prototype.O,fh.prototype.getProperties=fh.prototype.N,fh.prototype.setProperties=fh.prototype.H,fh.prototype.unset=fh.prototype.P,fh.prototype.changed=fh.prototype.s,fh.prototype.dispatchEvent=fh.prototype.b,fh.prototype.getRevision=fh.prototype.L,fh.prototype.on=fh.prototype.J,fh.prototype.un=fh.prototype.K,Lh.prototype.getKeys=Lh.prototype.O,Lh.prototype.getProperties=Lh.prototype.N,Lh.prototype.setProperties=Lh.prototype.H,Lh.prototype.unset=Lh.prototype.P,Lh.prototype.changed=Lh.prototype.s,Lh.prototype.dispatchEvent=Lh.prototype.b,Lh.prototype.getRevision=Lh.prototype.L,Lh.prototype.on=Lh.prototype.J,Lh.prototype.un=Lh.prototype.K,Gd.prototype.getKeys=Gd.prototype.O,Gd.prototype.getProperties=Gd.prototype.N,Gd.prototype.setProperties=Gd.prototype.H,Gd.prototype.unset=Gd.prototype.P,Gd.prototype.changed=Gd.prototype.s,Gd.prototype.dispatchEvent=Gd.prototype.b,Gd.prototype.getRevision=Gd.prototype.L,Gd.prototype.on=Gd.prototype.J,Gd.prototype.un=Gd.prototype.K,tv.prototype.getTileCoord=tv.prototype.f,Xp.prototype.getKeys=Xp.prototype.O,Xp.prototype.getProperties=Xp.prototype.N,Xp.prototype.setProperties=Xp.prototype.H,Xp.prototype.unset=Xp.prototype.P,Xp.prototype.changed=Xp.prototype.s,Xp.prototype.dispatchEvent=Xp.prototype.b,Xp.prototype.getRevision=Xp.prototype.L,Xp.prototype.on=Xp.prototype.J,Xp.prototype.un=Xp.prototype.K,Vp.prototype.getKeys=Vp.prototype.O,Vp.prototype.getProperties=Vp.prototype.N,Vp.prototype.setProperties=Vp.prototype.H,Vp.prototype.unset=Vp.prototype.P,Vp.prototype.changed=Vp.prototype.s,Vp.prototype.dispatchEvent=Vp.prototype.b,Vp.prototype.getRevision=Vp.prototype.L,Vp.prototype.on=Vp.prototype.J,Vp.prototype.un=Vp.prototype.K,sx.prototype.getTileCoord=sx.prototype.f,px.prototype.getTileCoord=px.prototype.f,Pr.prototype.getKeys=Pr.prototype.O,Pr.prototype.getProperties=Pr.prototype.N,Pr.prototype.setProperties=Pr.prototype.H,Pr.prototype.unset=Pr.prototype.P,Pr.prototype.changed=Pr.prototype.s,Pr.prototype.dispatchEvent=Pr.prototype.b,Pr.prototype.getRevision=Pr.prototype.L,Pr.prototype.on=Pr.prototype.J,Pr.prototype.un=Pr.prototype.K,lx.prototype.forEachTileCoord=lx.prototype.Rf,lx.prototype.getMaxZoom=lx.prototype.Ti,lx.prototype.getMinZoom=lx.prototype.Ui,lx.prototype.getOrigin=lx.prototype.Pc,lx.prototype.getResolution=lx.prototype.Da,lx.prototype.getResolutions=lx.prototype.Vi,lx.prototype.getTileCoordExtent=lx.prototype.Aa,lx.prototype.getTileCoordForCoordAndResolution=lx.prototype.Be,lx.prototype.getTileCoordForCoordAndZ=lx.prototype.bg,lx.prototype.getTileSize=lx.prototype.gb,lx.prototype.getZForResolution=lx.prototype.tc,wh.prototype.getOpacity=wh.prototype.Ze,wh.prototype.getRotateWithView=wh.prototype.$e,wh.prototype.getRotation=wh.prototype.af,wh.prototype.getScale=wh.prototype.bf,wh.prototype.getSnapToPixel=wh.prototype.Ae,wh.prototype.setOpacity=wh.prototype.td,wh.prototype.setRotation=wh.prototype.cf,wh.prototype.setScale=wh.prototype.ud,Sh.prototype.getAngle=Sh.prototype.Pi,Sh.prototype.getFill=Sh.prototype.Fa,Sh.prototype.getPoints=Sh.prototype.Qi,Sh.prototype.getRadius=Sh.prototype.Ri,Sh.prototype.getRadius2=Sh.prototype.Fh,Sh.prototype.getStroke=Sh.prototype.Ga,Sh.prototype.getOpacity=Sh.prototype.Ze,Sh.prototype.getRotateWithView=Sh.prototype.$e,Sh.prototype.getRotation=Sh.prototype.af,Sh.prototype.getScale=Sh.prototype.bf,Sh.prototype.getSnapToPixel=Sh.prototype.Ae,Sh.prototype.setOpacity=Sh.prototype.td,Sh.prototype.setRotation=Sh.prototype.cf,Sh.prototype.setScale=Sh.prototype.ud,Yc.prototype.getOpacity=Yc.prototype.Ze,Yc.prototype.getRotateWithView=Yc.prototype.$e,Yc.prototype.getRotation=Yc.prototype.af,Yc.prototype.getScale=Yc.prototype.bf,Yc.prototype.getSnapToPixel=Yc.prototype.Ae,Yc.prototype.setOpacity=Yc.prototype.td,Yc.prototype.setRotation=Yc.prototype.cf,Yc.prototype.setScale=Yc.prototype.ud,pb.prototype.getKeys=pb.prototype.O,pb.prototype.getProperties=pb.prototype.N,pb.prototype.setProperties=pb.prototype.H,pb.prototype.unset=pb.prototype.P,pb.prototype.changed=pb.prototype.s,pb.prototype.dispatchEvent=pb.prototype.b,pb.prototype.getRevision=pb.prototype.L,pb.prototype.on=pb.prototype.J,pb.prototype.un=pb.prototype.K,lw.prototype.getAttributions=lw.prototype.ya,lw.prototype.getLogo=lw.prototype.xa,lw.prototype.getProjection=lw.prototype.za,lw.prototype.refresh=lw.prototype.sa,lw.prototype.setAttributions=lw.prototype.ua,lw.prototype.getKeys=lw.prototype.O,lw.prototype.getProperties=lw.prototype.N,lw.prototype.setProperties=lw.prototype.H,lw.prototype.unset=lw.prototype.P,lw.prototype.changed=lw.prototype.s,lw.prototype.dispatchEvent=lw.prototype.b,lw.prototype.getRevision=lw.prototype.L,lw.prototype.on=lw.prototype.J,lw.prototype.un=lw.prototype.K,gw.prototype.getTileGrid=gw.prototype.ab,gw.prototype.refresh=gw.prototype.sa,gw.prototype.getAttributions=gw.prototype.ya,gw.prototype.getLogo=gw.prototype.xa,gw.prototype.getProjection=gw.prototype.za,gw.prototype.setAttributions=gw.prototype.ua,gw.prototype.getKeys=gw.prototype.O,gw.prototype.getProperties=gw.prototype.N,gw.prototype.setProperties=gw.prototype.H,gw.prototype.unset=gw.prototype.P,gw.prototype.changed=gw.prototype.s,gw.prototype.dispatchEvent=gw.prototype.b,gw.prototype.getRevision=gw.prototype.L,gw.prototype.on=gw.prototype.J,gw.prototype.un=gw.prototype.K,dw.prototype.getTileLoadFunction=dw.prototype.pb,dw.prototype.getTileUrlFunction=dw.prototype.qb,dw.prototype.getUrls=dw.prototype.rb,dw.prototype.setTileLoadFunction=dw.prototype.vb,dw.prototype.setTileUrlFunction=dw.prototype.cb,dw.prototype.setUrl=dw.prototype.jb,dw.prototype.setUrls=dw.prototype.eb,dw.prototype.getTileGrid=dw.prototype.ab,dw.prototype.refresh=dw.prototype.sa,dw.prototype.getAttributions=dw.prototype.ya,dw.prototype.getLogo=dw.prototype.xa,dw.prototype.getProjection=dw.prototype.za,dw.prototype.setAttributions=dw.prototype.ua,dw.prototype.getKeys=dw.prototype.O,dw.prototype.getProperties=dw.prototype.N,dw.prototype.setProperties=dw.prototype.H,dw.prototype.unset=dw.prototype.P,dw.prototype.changed=dw.prototype.s,dw.prototype.dispatchEvent=dw.prototype.b,dw.prototype.getRevision=dw.prototype.L,dw.prototype.on=dw.prototype.J,dw.prototype.un=dw.prototype.K,ww.prototype.setRenderReprojectionEdges=ww.prototype.Pb,ww.prototype.setTileGridForProjection=ww.prototype.Qb,ww.prototype.getTileLoadFunction=ww.prototype.pb,ww.prototype.getTileUrlFunction=ww.prototype.qb,ww.prototype.getUrls=ww.prototype.rb,ww.prototype.setTileLoadFunction=ww.prototype.vb,ww.prototype.setTileUrlFunction=ww.prototype.cb,ww.prototype.setUrl=ww.prototype.jb,ww.prototype.setUrls=ww.prototype.eb,ww.prototype.getTileGrid=ww.prototype.ab,ww.prototype.refresh=ww.prototype.sa,ww.prototype.getAttributions=ww.prototype.ya,ww.prototype.getLogo=ww.prototype.xa,ww.prototype.getProjection=ww.prototype.za,ww.prototype.setAttributions=ww.prototype.ua,ww.prototype.getKeys=ww.prototype.O,ww.prototype.getProperties=ww.prototype.N,ww.prototype.setProperties=ww.prototype.H,ww.prototype.unset=ww.prototype.P,ww.prototype.changed=ww.prototype.s,ww.prototype.dispatchEvent=ww.prototype.b,ww.prototype.getRevision=ww.prototype.L,ww.prototype.on=ww.prototype.J,ww.prototype.un=ww.prototype.K,Sw.prototype.setRenderReprojectionEdges=Sw.prototype.Pb,Sw.prototype.setTileGridForProjection=Sw.prototype.Qb,Sw.prototype.getTileLoadFunction=Sw.prototype.pb,Sw.prototype.getTileUrlFunction=Sw.prototype.qb,Sw.prototype.getUrls=Sw.prototype.rb,Sw.prototype.setTileLoadFunction=Sw.prototype.vb,Sw.prototype.setTileUrlFunction=Sw.prototype.cb,Sw.prototype.setUrl=Sw.prototype.jb,Sw.prototype.setUrls=Sw.prototype.eb,Sw.prototype.getTileGrid=Sw.prototype.ab,Sw.prototype.refresh=Sw.prototype.sa,Sw.prototype.getAttributions=Sw.prototype.ya,Sw.prototype.getLogo=Sw.prototype.xa,Sw.prototype.getProjection=Sw.prototype.za,Sw.prototype.setAttributions=Sw.prototype.ua,Sw.prototype.getKeys=Sw.prototype.O,Sw.prototype.getProperties=Sw.prototype.N,Sw.prototype.setProperties=Sw.prototype.H,Sw.prototype.unset=Sw.prototype.P,Sw.prototype.changed=Sw.prototype.s,Sw.prototype.dispatchEvent=Sw.prototype.b,Sw.prototype.getRevision=Sw.prototype.L,Sw.prototype.on=Sw.prototype.J,Sw.prototype.un=Sw.prototype.K,Mw.prototype.setRenderReprojectionEdges=Mw.prototype.Pb,Mw.prototype.setTileGridForProjection=Mw.prototype.Qb,Mw.prototype.getTileLoadFunction=Mw.prototype.pb,Mw.prototype.getTileUrlFunction=Mw.prototype.qb,Mw.prototype.getUrls=Mw.prototype.rb,Mw.prototype.setTileLoadFunction=Mw.prototype.vb,Mw.prototype.setTileUrlFunction=Mw.prototype.cb,Mw.prototype.setUrl=Mw.prototype.jb,Mw.prototype.setUrls=Mw.prototype.eb,Mw.prototype.getTileGrid=Mw.prototype.ab,Mw.prototype.refresh=Mw.prototype.sa,Mw.prototype.getAttributions=Mw.prototype.ya,Mw.prototype.getLogo=Mw.prototype.xa,Mw.prototype.getProjection=Mw.prototype.za,Mw.prototype.setAttributions=Mw.prototype.ua,Mw.prototype.getKeys=Mw.prototype.O,Mw.prototype.getProperties=Mw.prototype.N,Mw.prototype.setProperties=Mw.prototype.H,Mw.prototype.unset=Mw.prototype.P,Mw.prototype.changed=Mw.prototype.s,Mw.prototype.dispatchEvent=Mw.prototype.b,Mw.prototype.getRevision=Mw.prototype.L,Mw.prototype.on=Mw.prototype.J,Mw.prototype.un=Mw.prototype.K,ub.prototype.getAttributions=ub.prototype.ya,ub.prototype.getLogo=ub.prototype.xa,ub.prototype.getProjection=ub.prototype.za,ub.prototype.refresh=ub.prototype.sa,ub.prototype.setAttributions=ub.prototype.ua,ub.prototype.getKeys=ub.prototype.O,ub.prototype.getProperties=ub.prototype.N,ub.prototype.setProperties=ub.prototype.H,ub.prototype.unset=ub.prototype.P,ub.prototype.changed=ub.prototype.s,ub.prototype.dispatchEvent=ub.prototype.b,ub.prototype.getRevision=ub.prototype.L,ub.prototype.on=ub.prototype.J,ub.prototype.un=ub.prototype.K,Ew.prototype.addFeature=Ew.prototype.yb,Ew.prototype.addFeatures=Ew.prototype.cd,Ew.prototype.forEachFeature=Ew.prototype.sh,Ew.prototype.forEachFeatureInExtent=Ew.prototype.$b,Ew.prototype.forEachFeatureIntersectingExtent=Ew.prototype.th,Ew.prototype.getFeaturesCollection=Ew.prototype.Ah,Ew.prototype.getFeatures=Ew.prototype.Xe,Ew.prototype.getFeaturesAtCoordinate=Ew.prototype.zh,Ew.prototype.getFeaturesInExtent=Ew.prototype.Uf,Ew.prototype.getClosestFeatureToCoordinate=Ew.prototype.vh,Ew.prototype.getExtent=Ew.prototype.G,Ew.prototype.getFeatureById=Ew.prototype.yh,Ew.prototype.getFormat=Ew.prototype.Mi,Ew.prototype.getUrl=Ew.prototype.Ni,Ew.prototype.removeFeature=Ew.prototype.Gb,Ew.prototype.getAttributions=Ew.prototype.ya,Ew.prototype.getLogo=Ew.prototype.xa,Ew.prototype.getProjection=Ew.prototype.za,Ew.prototype.refresh=Ew.prototype.sa,Ew.prototype.setAttributions=Ew.prototype.ua,Ew.prototype.getKeys=Ew.prototype.O,Ew.prototype.getProperties=Ew.prototype.N,Ew.prototype.setProperties=Ew.prototype.H,Ew.prototype.unset=Ew.prototype.P,Ew.prototype.changed=Ew.prototype.s,Ew.prototype.dispatchEvent=Ew.prototype.b,Ew.prototype.getRevision=Ew.prototype.L,Ew.prototype.on=Ew.prototype.J,Ew.prototype.un=Ew.prototype.K,Im.prototype.getAttributions=Im.prototype.ya,Im.prototype.getLogo=Im.prototype.xa,Im.prototype.getProjection=Im.prototype.za,Im.prototype.refresh=Im.prototype.sa,Im.prototype.setAttributions=Im.prototype.ua,Im.prototype.getKeys=Im.prototype.O,Im.prototype.getProperties=Im.prototype.N,Im.prototype.setProperties=Im.prototype.H,Im.prototype.unset=Im.prototype.P,Im.prototype.changed=Im.prototype.s,Im.prototype.dispatchEvent=Im.prototype.b,Im.prototype.getRevision=Im.prototype.L,Im.prototype.on=Im.prototype.J,Im.prototype.un=Im.prototype.K,Cw.prototype.getAttributions=Cw.prototype.ya,Cw.prototype.getLogo=Cw.prototype.xa,Cw.prototype.getProjection=Cw.prototype.za,Cw.prototype.refresh=Cw.prototype.sa,Cw.prototype.setAttributions=Cw.prototype.ua,Cw.prototype.getKeys=Cw.prototype.O,Cw.prototype.getProperties=Cw.prototype.N,Cw.prototype.setProperties=Cw.prototype.H,Cw.prototype.unset=Cw.prototype.P,Cw.prototype.changed=Cw.prototype.s,Cw.prototype.dispatchEvent=Cw.prototype.b,Cw.prototype.getRevision=Cw.prototype.L,Cw.prototype.on=Cw.prototype.J,Cw.prototype.un=Cw.prototype.K,Gm.prototype.getAttributions=Gm.prototype.ya,Gm.prototype.getLogo=Gm.prototype.xa,Gm.prototype.getProjection=Gm.prototype.za,Gm.prototype.refresh=Gm.prototype.sa,Gm.prototype.setAttributions=Gm.prototype.ua,Gm.prototype.getKeys=Gm.prototype.O,Gm.prototype.getProperties=Gm.prototype.N,Gm.prototype.setProperties=Gm.prototype.H,Gm.prototype.unset=Gm.prototype.P,Gm.prototype.changed=Gm.prototype.s,Gm.prototype.dispatchEvent=Gm.prototype.b,Gm.prototype.getRevision=Gm.prototype.L,Gm.prototype.on=Gm.prototype.J,Gm.prototype.un=Gm.prototype.K,Lw.prototype.getAttributions=Lw.prototype.ya,Lw.prototype.getLogo=Lw.prototype.xa,Lw.prototype.getProjection=Lw.prototype.za,Lw.prototype.refresh=Lw.prototype.sa,Lw.prototype.setAttributions=Lw.prototype.ua,Lw.prototype.getKeys=Lw.prototype.O,Lw.prototype.getProperties=Lw.prototype.N,Lw.prototype.setProperties=Lw.prototype.H,Lw.prototype.unset=Lw.prototype.P,Lw.prototype.changed=Lw.prototype.s,Lw.prototype.dispatchEvent=Lw.prototype.b,Lw.prototype.getRevision=Lw.prototype.L,Lw.prototype.on=Lw.prototype.J,Lw.prototype.un=Lw.prototype.K,Rw.prototype.getAttributions=Rw.prototype.ya,Rw.prototype.getLogo=Rw.prototype.xa,Rw.prototype.getProjection=Rw.prototype.za,Rw.prototype.refresh=Rw.prototype.sa,Rw.prototype.setAttributions=Rw.prototype.ua,Rw.prototype.getKeys=Rw.prototype.O,Rw.prototype.getProperties=Rw.prototype.N,Rw.prototype.setProperties=Rw.prototype.H,Rw.prototype.unset=Rw.prototype.P,Rw.prototype.changed=Rw.prototype.s,Rw.prototype.dispatchEvent=Rw.prototype.b,Rw.prototype.getRevision=Rw.prototype.L,Rw.prototype.on=Rw.prototype.J,Rw.prototype.un=Rw.prototype.K,Bm.prototype.getAttributions=Bm.prototype.ya,Bm.prototype.getLogo=Bm.prototype.xa,Bm.prototype.getProjection=Bm.prototype.za,Bm.prototype.refresh=Bm.prototype.sa,Bm.prototype.setAttributions=Bm.prototype.ua,Bm.prototype.getKeys=Bm.prototype.O,Bm.prototype.getProperties=Bm.prototype.N,Bm.prototype.setProperties=Bm.prototype.H,Bm.prototype.unset=Bm.prototype.P,Bm.prototype.changed=Bm.prototype.s,Bm.prototype.dispatchEvent=Bm.prototype.b,Bm.prototype.getRevision=Bm.prototype.L,Bm.prototype.on=Bm.prototype.J,Bm.prototype.un=Bm.prototype.K,Iw.prototype.getAttributions=Iw.prototype.ya,Iw.prototype.getLogo=Iw.prototype.xa,Iw.prototype.getProjection=Iw.prototype.za,Iw.prototype.refresh=Iw.prototype.sa,Iw.prototype.setAttributions=Iw.prototype.ua,Iw.prototype.getKeys=Iw.prototype.O,Iw.prototype.getProperties=Iw.prototype.N,Iw.prototype.setProperties=Iw.prototype.H,Iw.prototype.unset=Iw.prototype.P,Iw.prototype.changed=Iw.prototype.s,Iw.prototype.dispatchEvent=Iw.prototype.b,Iw.prototype.getRevision=Iw.prototype.L,Iw.prototype.on=Iw.prototype.J,Iw.prototype.un=Iw.prototype.K,Dw.prototype.setRenderReprojectionEdges=Dw.prototype.Pb,Dw.prototype.setTileGridForProjection=Dw.prototype.Qb,Dw.prototype.getTileLoadFunction=Dw.prototype.pb,Dw.prototype.getTileUrlFunction=Dw.prototype.qb,Dw.prototype.getUrls=Dw.prototype.rb,Dw.prototype.setTileLoadFunction=Dw.prototype.vb,Dw.prototype.setTileUrlFunction=Dw.prototype.cb,Dw.prototype.setUrl=Dw.prototype.jb,Dw.prototype.setUrls=Dw.prototype.eb,Dw.prototype.getTileGrid=Dw.prototype.ab,Dw.prototype.refresh=Dw.prototype.sa,Dw.prototype.getAttributions=Dw.prototype.ya,Dw.prototype.getLogo=Dw.prototype.xa,Dw.prototype.getProjection=Dw.prototype.za,Dw.prototype.setAttributions=Dw.prototype.ua,Dw.prototype.getKeys=Dw.prototype.O,Dw.prototype.getProperties=Dw.prototype.N,Dw.prototype.setProperties=Dw.prototype.H,Dw.prototype.unset=Dw.prototype.P,Dw.prototype.changed=Dw.prototype.s,Dw.prototype.dispatchEvent=Dw.prototype.b,Dw.prototype.getRevision=Dw.prototype.L,Dw.prototype.on=Dw.prototype.J,Dw.prototype.un=Dw.prototype.K,Uw.prototype.getAttributions=Uw.prototype.ya,Uw.prototype.getLogo=Uw.prototype.xa,Uw.prototype.getProjection=Uw.prototype.za,Uw.prototype.refresh=Uw.prototype.sa,Uw.prototype.setAttributions=Uw.prototype.ua,Uw.prototype.getKeys=Uw.prototype.O,Uw.prototype.getProperties=Uw.prototype.N,Uw.prototype.setProperties=Uw.prototype.H,Uw.prototype.unset=Uw.prototype.P,Uw.prototype.changed=Uw.prototype.s,Uw.prototype.dispatchEvent=Uw.prototype.b,Uw.prototype.getRevision=Uw.prototype.L,Uw.prototype.on=Uw.prototype.J,Uw.prototype.un=Uw.prototype.K,Ww.prototype.setRenderReprojectionEdges=Ww.prototype.Pb,Ww.prototype.setTileGridForProjection=Ww.prototype.Qb,Ww.prototype.getTileLoadFunction=Ww.prototype.pb,Ww.prototype.getTileUrlFunction=Ww.prototype.qb,Ww.prototype.getUrls=Ww.prototype.rb,Ww.prototype.setTileLoadFunction=Ww.prototype.vb,Ww.prototype.setTileUrlFunction=Ww.prototype.cb,Ww.prototype.setUrl=Ww.prototype.jb,Ww.prototype.setUrls=Ww.prototype.eb,Ww.prototype.getTileGrid=Ww.prototype.ab,Ww.prototype.refresh=Ww.prototype.sa,Ww.prototype.getAttributions=Ww.prototype.ya,Ww.prototype.getLogo=Ww.prototype.xa,Ww.prototype.getProjection=Ww.prototype.za,Ww.prototype.setAttributions=Ww.prototype.ua,Ww.prototype.getKeys=Ww.prototype.O,Ww.prototype.getProperties=Ww.prototype.N,Ww.prototype.setProperties=Ww.prototype.H,Ww.prototype.unset=Ww.prototype.P,Ww.prototype.changed=Ww.prototype.s,Ww.prototype.dispatchEvent=Ww.prototype.b,Ww.prototype.getRevision=Ww.prototype.L,Ww.prototype.on=Ww.prototype.J,Ww.prototype.un=Ww.prototype.K,Yw.prototype.setRenderReprojectionEdges=Yw.prototype.Pb,Yw.prototype.setTileGridForProjection=Yw.prototype.Qb,Yw.prototype.getTileLoadFunction=Yw.prototype.pb,Yw.prototype.getTileUrlFunction=Yw.prototype.qb,Yw.prototype.getUrls=Yw.prototype.rb,Yw.prototype.setTileLoadFunction=Yw.prototype.vb,Yw.prototype.setTileUrlFunction=Yw.prototype.cb,Yw.prototype.setUrl=Yw.prototype.jb,Yw.prototype.setUrls=Yw.prototype.eb,Yw.prototype.getTileGrid=Yw.prototype.ab,Yw.prototype.refresh=Yw.prototype.sa,Yw.prototype.getAttributions=Yw.prototype.ya,Yw.prototype.getLogo=Yw.prototype.xa,Yw.prototype.getProjection=Yw.prototype.za,Yw.prototype.setAttributions=Yw.prototype.ua,Yw.prototype.getKeys=Yw.prototype.O,Yw.prototype.getProperties=Yw.prototype.N,Yw.prototype.setProperties=Yw.prototype.H,Yw.prototype.unset=Yw.prototype.P,Yw.prototype.changed=Yw.prototype.s,Yw.prototype.dispatchEvent=Yw.prototype.b,Yw.prototype.getRevision=Yw.prototype.L,Yw.prototype.on=Yw.prototype.J,Yw.prototype.un=Yw.prototype.K,qw.prototype.getTileGrid=qw.prototype.ab,qw.prototype.refresh=qw.prototype.sa,qw.prototype.getAttributions=qw.prototype.ya,qw.prototype.getLogo=qw.prototype.xa,qw.prototype.getProjection=qw.prototype.za,qw.prototype.setAttributions=qw.prototype.ua,qw.prototype.getKeys=qw.prototype.O,qw.prototype.getProperties=qw.prototype.N,qw.prototype.setProperties=qw.prototype.H,qw.prototype.unset=qw.prototype.P,qw.prototype.changed=qw.prototype.s,qw.prototype.dispatchEvent=qw.prototype.b,qw.prototype.getRevision=qw.prototype.L,qw.prototype.on=qw.prototype.J,qw.prototype.un=qw.prototype.K,_w.prototype.setRenderReprojectionEdges=_w.prototype.Pb,_w.prototype.setTileGridForProjection=_w.prototype.Qb,_w.prototype.getTileLoadFunction=_w.prototype.pb,_w.prototype.getTileUrlFunction=_w.prototype.qb,_w.prototype.getUrls=_w.prototype.rb,_w.prototype.setTileLoadFunction=_w.prototype.vb,_w.prototype.setTileUrlFunction=_w.prototype.cb,_w.prototype.setUrl=_w.prototype.jb,_w.prototype.setUrls=_w.prototype.eb,_w.prototype.getTileGrid=_w.prototype.ab,_w.prototype.refresh=_w.prototype.sa,_w.prototype.getAttributions=_w.prototype.ya,_w.prototype.getLogo=_w.prototype.xa,_w.prototype.getProjection=_w.prototype.za,_w.prototype.setAttributions=_w.prototype.ua,_w.prototype.getKeys=_w.prototype.O,_w.prototype.getProperties=_w.prototype.N,_w.prototype.setProperties=_w.prototype.H,_w.prototype.unset=_w.prototype.P,_w.prototype.changed=_w.prototype.s,_w.prototype.dispatchEvent=_w.prototype.b,_w.prototype.getRevision=_w.prototype.L,_w.prototype.on=_w.prototype.J,_w.prototype.un=_w.prototype.K,$w.prototype.getTileGrid=$w.prototype.ab,$w.prototype.refresh=$w.prototype.sa,$w.prototype.getAttributions=$w.prototype.ya,$w.prototype.getLogo=$w.prototype.xa,$w.prototype.getProjection=$w.prototype.za,$w.prototype.setAttributions=$w.prototype.ua,$w.prototype.getKeys=$w.prototype.O,$w.prototype.getProperties=$w.prototype.N,$w.prototype.setProperties=$w.prototype.H,$w.prototype.unset=$w.prototype.P,$w.prototype.changed=$w.prototype.s,$w.prototype.dispatchEvent=$w.prototype.b,$w.prototype.getRevision=$w.prototype.L,$w.prototype.on=$w.prototype.J,$w.prototype.un=$w.prototype.K,ex.prototype.setRenderReprojectionEdges=ex.prototype.Pb,ex.prototype.setTileGridForProjection=ex.prototype.Qb,ex.prototype.getTileLoadFunction=ex.prototype.pb,ex.prototype.getTileUrlFunction=ex.prototype.qb,ex.prototype.getUrls=ex.prototype.rb,ex.prototype.setTileLoadFunction=ex.prototype.vb,ex.prototype.setTileUrlFunction=ex.prototype.cb,ex.prototype.setUrl=ex.prototype.jb,ex.prototype.setUrls=ex.prototype.eb,ex.prototype.getTileGrid=ex.prototype.ab,ex.prototype.refresh=ex.prototype.sa,ex.prototype.getAttributions=ex.prototype.ya,ex.prototype.getLogo=ex.prototype.xa,ex.prototype.getProjection=ex.prototype.za,ex.prototype.setAttributions=ex.prototype.ua,ex.prototype.getKeys=ex.prototype.O,ex.prototype.getProperties=ex.prototype.N,ex.prototype.setProperties=ex.prototype.H,ex.prototype.unset=ex.prototype.P,ex.prototype.changed=ex.prototype.s,ex.prototype.dispatchEvent=ex.prototype.b,ex.prototype.getRevision=ex.prototype.L,ex.prototype.on=ex.prototype.J,ex.prototype.un=ex.prototype.K,hx.prototype.getTileLoadFunction=hx.prototype.pb,hx.prototype.getTileUrlFunction=hx.prototype.qb,hx.prototype.getUrls=hx.prototype.rb,hx.prototype.setTileLoadFunction=hx.prototype.vb,hx.prototype.setTileUrlFunction=hx.prototype.cb,hx.prototype.setUrl=hx.prototype.jb,hx.prototype.setUrls=hx.prototype.eb,hx.prototype.getTileGrid=hx.prototype.ab,hx.prototype.refresh=hx.prototype.sa,hx.prototype.getAttributions=hx.prototype.ya,hx.prototype.getLogo=hx.prototype.xa,hx.prototype.getProjection=hx.prototype.za,hx.prototype.setAttributions=hx.prototype.ua,hx.prototype.getKeys=hx.prototype.O,hx.prototype.getProperties=hx.prototype.N,hx.prototype.setProperties=hx.prototype.H,hx.prototype.unset=hx.prototype.P,hx.prototype.changed=hx.prototype.s,hx.prototype.dispatchEvent=hx.prototype.b,hx.prototype.getRevision=hx.prototype.L,hx.prototype.on=hx.prototype.J,hx.prototype.un=hx.prototype.K,cx.prototype.setRenderReprojectionEdges=cx.prototype.Pb,cx.prototype.setTileGridForProjection=cx.prototype.Qb,cx.prototype.getTileLoadFunction=cx.prototype.pb,cx.prototype.getTileUrlFunction=cx.prototype.qb,cx.prototype.getUrls=cx.prototype.rb,cx.prototype.setTileLoadFunction=cx.prototype.vb,cx.prototype.setTileUrlFunction=cx.prototype.cb,cx.prototype.setUrl=cx.prototype.jb,cx.prototype.setUrls=cx.prototype.eb,cx.prototype.getTileGrid=cx.prototype.ab,cx.prototype.refresh=cx.prototype.sa,cx.prototype.getAttributions=cx.prototype.ya,cx.prototype.getLogo=cx.prototype.xa,cx.prototype.getProjection=cx.prototype.za,cx.prototype.setAttributions=cx.prototype.ua,cx.prototype.getKeys=cx.prototype.O,cx.prototype.getProperties=cx.prototype.N,cx.prototype.setProperties=cx.prototype.H,cx.prototype.unset=cx.prototype.P,cx.prototype.changed=cx.prototype.s,cx.prototype.dispatchEvent=cx.prototype.b,cx.prototype.getRevision=cx.prototype.L,cx.prototype.on=cx.prototype.J,cx.prototype.un=cx.prototype.K,yx.prototype.setRenderReprojectionEdges=yx.prototype.Pb,yx.prototype.setTileGridForProjection=yx.prototype.Qb,yx.prototype.getTileLoadFunction=yx.prototype.pb,yx.prototype.getTileUrlFunction=yx.prototype.qb,yx.prototype.getUrls=yx.prototype.rb,yx.prototype.setTileLoadFunction=yx.prototype.vb,yx.prototype.setTileUrlFunction=yx.prototype.cb,yx.prototype.setUrl=yx.prototype.jb,yx.prototype.setUrls=yx.prototype.eb,yx.prototype.getTileGrid=yx.prototype.ab,yx.prototype.refresh=yx.prototype.sa,yx.prototype.getAttributions=yx.prototype.ya,yx.prototype.getLogo=yx.prototype.xa,yx.prototype.getProjection=yx.prototype.za,yx.prototype.setAttributions=yx.prototype.ua,yx.prototype.getKeys=yx.prototype.O,yx.prototype.getProperties=yx.prototype.N,yx.prototype.setProperties=yx.prototype.H,yx.prototype.unset=yx.prototype.P,yx.prototype.changed=yx.prototype.s,yx.prototype.dispatchEvent=yx.prototype.b,yx.prototype.getRevision=yx.prototype.L,yx.prototype.on=yx.prototype.J,yx.prototype.un=yx.prototype.K,iw.prototype.getTileCoord=iw.prototype.f,Fv.prototype.changed=Fv.prototype.s,Fv.prototype.dispatchEvent=Fv.prototype.b,Fv.prototype.getRevision=Fv.prototype.L,Fv.prototype.on=Fv.prototype.J,Fv.prototype.un=Fv.prototype.K,ob.prototype.changed=ob.prototype.s,ob.prototype.dispatchEvent=ob.prototype.b,ob.prototype.getRevision=ob.prototype.L,ob.prototype.on=ob.prototype.J,ob.prototype.un=ob.prototype.K,Xm.prototype.changed=Xm.prototype.s,Xm.prototype.dispatchEvent=Xm.prototype.b,Xm.prototype.getRevision=Xm.prototype.L,Xm.prototype.on=Xm.prototype.J,Xm.prototype.un=Xm.prototype.K,Jm.prototype.changed=Jm.prototype.s,Jm.prototype.dispatchEvent=Jm.prototype.b,Jm.prototype.getRevision=Jm.prototype.L,Jm.prototype.on=Jm.prototype.J,Jm.prototype.un=Jm.prototype.K,rb.prototype.changed=rb.prototype.s,rb.prototype.dispatchEvent=rb.prototype.b,rb.prototype.getRevision=rb.prototype.L,rb.prototype.on=rb.prototype.J,rb.prototype.un=rb.prototype.K,Vv.prototype.changed=Vv.prototype.s,Vv.prototype.dispatchEvent=Vv.prototype.b,Vv.prototype.getRevision=Vv.prototype.L,Vv.prototype.on=Vv.prototype.J,Vv.prototype.un=Vv.prototype.K,Pm.prototype.changed=Pm.prototype.s,Pm.prototype.dispatchEvent=Pm.prototype.b,Pm.prototype.getRevision=Pm.prototype.L,Pm.prototype.on=Pm.prototype.J,Pm.prototype.un=Pm.prototype.K,Am.prototype.changed=Am.prototype.s,Am.prototype.dispatchEvent=Am.prototype.b,Am.prototype.getRevision=Am.prototype.L,Am.prototype.on=Am.prototype.J,Am.prototype.un=Am.prototype.K,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,Jv.prototype.changed=Jv.prototype.s,Jv.prototype.dispatchEvent=Jv.prototype.b,Jv.prototype.getRevision=Jv.prototype.L,Jv.prototype.on=Jv.prototype.J,Jv.prototype.un=Jv.prototype.K,$m.prototype.changed=$m.prototype.s,$m.prototype.dispatchEvent=$m.prototype.b,$m.prototype.getRevision=$m.prototype.L,$m.prototype.on=$m.prototype.J,$m.prototype.un=$m.prototype.K,Un.prototype.getKeys=Un.prototype.O,Un.prototype.getProperties=Un.prototype.N,Un.prototype.setProperties=Un.prototype.H,Un.prototype.unset=Un.prototype.P,Un.prototype.changed=Un.prototype.s,Un.prototype.dispatchEvent=Un.prototype.b,Un.prototype.getRevision=Un.prototype.L,Un.prototype.on=Un.prototype.J,Un.prototype.un=Un.prototype.K,Bn.prototype.getExtent=Bn.prototype.G,Bn.prototype.getMaxResolution=Bn.prototype.fc,Bn.prototype.getMinResolution=Bn.prototype.gc,Bn.prototype.getOpacity=Bn.prototype.hc,Bn.prototype.getVisible=Bn.prototype.Mb,Bn.prototype.getZIndex=Bn.prototype.Ba,Bn.prototype.setExtent=Bn.prototype.vc,Bn.prototype.setMaxResolution=Bn.prototype.Ac,Bn.prototype.setMinResolution=Bn.prototype.Bc,Bn.prototype.setOpacity=Bn.prototype.wc,Bn.prototype.setVisible=Bn.prototype.xc,Bn.prototype.setZIndex=Bn.prototype.Vb,Bn.prototype.getKeys=Bn.prototype.O,Bn.prototype.getProperties=Bn.prototype.N,Bn.prototype.setProperties=Bn.prototype.H,Bn.prototype.unset=Bn.prototype.P,Bn.prototype.changed=Bn.prototype.s,Bn.prototype.dispatchEvent=Bn.prototype.b,Bn.prototype.getRevision=Bn.prototype.L,Bn.prototype.on=Bn.prototype.J,Bn.prototype.un=Bn.prototype.K,Vn.prototype.getExtent=Vn.prototype.G,Vn.prototype.getMaxResolution=Vn.prototype.fc,Vn.prototype.getMinResolution=Vn.prototype.gc,Vn.prototype.getOpacity=Vn.prototype.hc,Vn.prototype.getVisible=Vn.prototype.Mb,Vn.prototype.getZIndex=Vn.prototype.Ba,Vn.prototype.setExtent=Vn.prototype.vc,Vn.prototype.setMaxResolution=Vn.prototype.Ac,Vn.prototype.setMinResolution=Vn.prototype.Bc,Vn.prototype.setOpacity=Vn.prototype.wc,Vn.prototype.setVisible=Vn.prototype.xc,Vn.prototype.setZIndex=Vn.prototype.Vb,Vn.prototype.getKeys=Vn.prototype.O,Vn.prototype.getProperties=Vn.prototype.N,Vn.prototype.setProperties=Vn.prototype.H,Vn.prototype.unset=Vn.prototype.P,Vn.prototype.changed=Vn.prototype.s,Vn.prototype.dispatchEvent=Vn.prototype.b,Vn.prototype.getRevision=Vn.prototype.L,Vn.prototype.on=Vn.prototype.J,Vn.prototype.un=Vn.prototype.K,nb.prototype.setSource=nb.prototype.Wc,nb.prototype.getExtent=nb.prototype.G,nb.prototype.getMaxResolution=nb.prototype.fc,nb.prototype.getMinResolution=nb.prototype.gc,nb.prototype.getOpacity=nb.prototype.hc,nb.prototype.getVisible=nb.prototype.Mb,nb.prototype.getZIndex=nb.prototype.Ba,nb.prototype.setExtent=nb.prototype.vc,nb.prototype.setMaxResolution=nb.prototype.Ac,nb.prototype.setMinResolution=nb.prototype.Bc,nb.prototype.setOpacity=nb.prototype.wc,nb.prototype.setVisible=nb.prototype.xc,nb.prototype.setZIndex=nb.prototype.Vb,nb.prototype.getKeys=nb.prototype.O,nb.prototype.getProperties=nb.prototype.N,nb.prototype.setProperties=nb.prototype.H,nb.prototype.unset=nb.prototype.P,nb.prototype.changed=nb.prototype.s,nb.prototype.dispatchEvent=nb.prototype.b,nb.prototype.getRevision=nb.prototype.L,nb.prototype.on=nb.prototype.J,nb.prototype.un=nb.prototype.K,mm.prototype.getSource=mm.prototype.ha,mm.prototype.getStyle=mm.prototype.D,mm.prototype.getStyleFunction=mm.prototype.C,mm.prototype.setStyle=mm.prototype.g,mm.prototype.setSource=mm.prototype.Wc,mm.prototype.getExtent=mm.prototype.G,mm.prototype.getMaxResolution=mm.prototype.fc,mm.prototype.getMinResolution=mm.prototype.gc,mm.prototype.getOpacity=mm.prototype.hc,mm.prototype.getVisible=mm.prototype.Mb,mm.prototype.getZIndex=mm.prototype.Ba,mm.prototype.setExtent=mm.prototype.vc,mm.prototype.setMaxResolution=mm.prototype.Ac,mm.prototype.setMinResolution=mm.prototype.Bc,mm.prototype.setOpacity=mm.prototype.wc,mm.prototype.setVisible=mm.prototype.xc,mm.prototype.setZIndex=mm.prototype.Vb,mm.prototype.getKeys=mm.prototype.O,mm.prototype.getProperties=mm.prototype.N,mm.prototype.setProperties=mm.prototype.H,mm.prototype.unset=mm.prototype.P,mm.prototype.changed=mm.prototype.s,mm.prototype.dispatchEvent=mm.prototype.b,mm.prototype.getRevision=mm.prototype.L,mm.prototype.on=mm.prototype.J,mm.prototype.un=mm.prototype.K,Vm.prototype.setSource=Vm.prototype.Wc,Vm.prototype.getExtent=Vm.prototype.G,Vm.prototype.getMaxResolution=Vm.prototype.fc,Vm.prototype.getMinResolution=Vm.prototype.gc,Vm.prototype.getOpacity=Vm.prototype.hc,Vm.prototype.getVisible=Vm.prototype.Mb,Vm.prototype.getZIndex=Vm.prototype.Ba,Vm.prototype.setExtent=Vm.prototype.vc,Vm.prototype.setMaxResolution=Vm.prototype.Ac,Vm.prototype.setMinResolution=Vm.prototype.Bc,Vm.prototype.setOpacity=Vm.prototype.wc,Vm.prototype.setVisible=Vm.prototype.xc,Vm.prototype.setZIndex=Vm.prototype.Vb,Vm.prototype.getKeys=Vm.prototype.O,Vm.prototype.getProperties=Vm.prototype.N,Vm.prototype.setProperties=Vm.prototype.H,Vm.prototype.unset=Vm.prototype.P,Vm.prototype.changed=Vm.prototype.s,Vm.prototype.dispatchEvent=Vm.prototype.b,Vm.prototype.getRevision=Vm.prototype.L,Vm.prototype.on=Vm.prototype.J,Vm.prototype.un=Vm.prototype.K,_m.prototype.setSource=_m.prototype.Wc,_m.prototype.getExtent=_m.prototype.G,_m.prototype.getMaxResolution=_m.prototype.fc,_m.prototype.getMinResolution=_m.prototype.gc,_m.prototype.getOpacity=_m.prototype.hc,_m.prototype.getVisible=_m.prototype.Mb,_m.prototype.getZIndex=_m.prototype.Ba,_m.prototype.setExtent=_m.prototype.vc,_m.prototype.setMaxResolution=_m.prototype.Ac,_m.prototype.setMinResolution=_m.prototype.Bc,_m.prototype.setOpacity=_m.prototype.wc,_m.prototype.setVisible=_m.prototype.xc,_m.prototype.setZIndex=_m.prototype.Vb,_m.prototype.getKeys=_m.prototype.O,_m.prototype.getProperties=_m.prototype.N,_m.prototype.setProperties=_m.prototype.H,_m.prototype.unset=_m.prototype.P,_m.prototype.changed=_m.prototype.s,_m.prototype.dispatchEvent=_m.prototype.b,_m.prototype.getRevision=_m.prototype.L,_m.prototype.on=_m.prototype.J,_m.prototype.un=_m.prototype.K,ew.prototype.getSource=ew.prototype.ha,ew.prototype.getStyle=ew.prototype.D,ew.prototype.getStyleFunction=ew.prototype.C,ew.prototype.setStyle=ew.prototype.g,ew.prototype.setSource=ew.prototype.Wc,ew.prototype.getExtent=ew.prototype.G,ew.prototype.getMaxResolution=ew.prototype.fc,ew.prototype.getMinResolution=ew.prototype.gc,ew.prototype.getOpacity=ew.prototype.hc,ew.prototype.getVisible=ew.prototype.Mb,ew.prototype.getZIndex=ew.prototype.Ba,ew.prototype.setExtent=ew.prototype.vc,ew.prototype.setMaxResolution=ew.prototype.Ac,ew.prototype.setMinResolution=ew.prototype.Bc,ew.prototype.setOpacity=ew.prototype.wc,ew.prototype.setVisible=ew.prototype.xc,ew.prototype.setZIndex=ew.prototype.Vb,ew.prototype.getKeys=ew.prototype.O,ew.prototype.getProperties=ew.prototype.N,ew.prototype.setProperties=ew.prototype.H,ew.prototype.unset=ew.prototype.P,ew.prototype.changed=ew.prototype.s,ew.prototype.dispatchEvent=ew.prototype.b,ew.prototype.getRevision=ew.prototype.L,ew.prototype.on=ew.prototype.J,ew.prototype.un=ew.prototype.K,kr.prototype.getKeys=kr.prototype.O,kr.prototype.getProperties=kr.prototype.N,kr.prototype.setProperties=kr.prototype.H,kr.prototype.unset=kr.prototype.P,kr.prototype.changed=kr.prototype.s,kr.prototype.dispatchEvent=kr.prototype.b,kr.prototype.getRevision=kr.prototype.L,kr.prototype.on=kr.prototype.J,kr.prototype.un=kr.prototype.K,Gr.prototype.getActive=Gr.prototype.c,Gr.prototype.getMap=Gr.prototype.f,Gr.prototype.setActive=Gr.prototype.Ha,Gr.prototype.getKeys=Gr.prototype.O,Gr.prototype.getProperties=Gr.prototype.N,Gr.prototype.setProperties=Gr.prototype.H,Gr.prototype.unset=Gr.prototype.P,Gr.prototype.changed=Gr.prototype.s,Gr.prototype.dispatchEvent=Gr.prototype.b,Gr.prototype.getRevision=Gr.prototype.L,Gr.prototype.on=Gr.prototype.J,Gr.prototype.un=Gr.prototype.K,iv.prototype.getActive=iv.prototype.c,iv.prototype.getMap=iv.prototype.f,iv.prototype.setActive=iv.prototype.Ha,iv.prototype.getKeys=iv.prototype.O,iv.prototype.getProperties=iv.prototype.N,iv.prototype.setProperties=iv.prototype.H,iv.prototype.unset=iv.prototype.P,iv.prototype.changed=iv.prototype.s,iv.prototype.dispatchEvent=iv.prototype.b,iv.prototype.getRevision=iv.prototype.L,iv.prototype.on=iv.prototype.J,iv.prototype.un=iv.prototype.K,Jr.prototype.getActive=Jr.prototype.c,Jr.prototype.getMap=Jr.prototype.f,Jr.prototype.setActive=Jr.prototype.Ha,Jr.prototype.getKeys=Jr.prototype.O,Jr.prototype.getProperties=Jr.prototype.N,Jr.prototype.setProperties=Jr.prototype.H,Jr.prototype.unset=Jr.prototype.P,Jr.prototype.changed=Jr.prototype.s,Jr.prototype.dispatchEvent=Jr.prototype.b,Jr.prototype.getRevision=Jr.prototype.L,Jr.prototype.on=Jr.prototype.J,Jr.prototype.un=Jr.prototype.K,un.prototype.getActive=un.prototype.c,un.prototype.getMap=un.prototype.f,un.prototype.setActive=un.prototype.Ha,un.prototype.getKeys=un.prototype.O,un.prototype.getProperties=un.prototype.N,un.prototype.setProperties=un.prototype.H,un.prototype.unset=un.prototype.P,un.prototype.changed=un.prototype.s,un.prototype.dispatchEvent=un.prototype.b,un.prototype.getRevision=un.prototype.L,un.prototype.on=un.prototype.J,un.prototype.un=un.prototype.K,Qr.prototype.getActive=Qr.prototype.c,Qr.prototype.getMap=Qr.prototype.f,Qr.prototype.setActive=Qr.prototype.Ha,Qr.prototype.getKeys=Qr.prototype.O,Qr.prototype.getProperties=Qr.prototype.N,Qr.prototype.setProperties=Qr.prototype.H,Qr.prototype.unset=Qr.prototype.P,Qr.prototype.changed=Qr.prototype.s,Qr.prototype.dispatchEvent=Qr.prototype.b,Qr.prototype.getRevision=Qr.prototype.L,Qr.prototype.on=Qr.prototype.J,Qr.prototype.un=Qr.prototype.K,rn.prototype.getActive=rn.prototype.c,rn.prototype.getMap=rn.prototype.f,rn.prototype.setActive=rn.prototype.Ha,rn.prototype.getKeys=rn.prototype.O,rn.prototype.getProperties=rn.prototype.N,rn.prototype.setProperties=rn.prototype.H,rn.prototype.unset=rn.prototype.P,rn.prototype.changed=rn.prototype.s,rn.prototype.dispatchEvent=rn.prototype.b,rn.prototype.getRevision=rn.prototype.L,rn.prototype.on=rn.prototype.J,rn.prototype.un=rn.prototype.K,lv.prototype.getActive=lv.prototype.c,lv.prototype.getMap=lv.prototype.f,lv.prototype.setActive=lv.prototype.Ha,lv.prototype.getKeys=lv.prototype.O,lv.prototype.getProperties=lv.prototype.N,lv.prototype.setProperties=lv.prototype.H,lv.prototype.unset=lv.prototype.P,lv.prototype.changed=lv.prototype.s,lv.prototype.dispatchEvent=lv.prototype.b,lv.prototype.getRevision=lv.prototype.L,lv.prototype.on=lv.prototype.J,lv.prototype.un=lv.prototype.K,wn.prototype.getGeometry=wn.prototype.V,wn.prototype.getActive=wn.prototype.c,wn.prototype.getMap=wn.prototype.f,wn.prototype.setActive=wn.prototype.Ha,wn.prototype.getKeys=wn.prototype.O,wn.prototype.getProperties=wn.prototype.N,wn.prototype.setProperties=wn.prototype.H,wn.prototype.unset=wn.prototype.P,wn.prototype.changed=wn.prototype.s,wn.prototype.dispatchEvent=wn.prototype.b,wn.prototype.getRevision=wn.prototype.L,wn.prototype.on=wn.prototype.J,wn.prototype.un=wn.prototype.K,vb.prototype.getActive=vb.prototype.c,vb.prototype.getMap=vb.prototype.f,vb.prototype.setActive=vb.prototype.Ha,vb.prototype.getKeys=vb.prototype.O,vb.prototype.getProperties=vb.prototype.N,vb.prototype.setProperties=vb.prototype.H,vb.prototype.unset=vb.prototype.P,vb.prototype.changed=vb.prototype.s,vb.prototype.dispatchEvent=vb.prototype.b,vb.prototype.getRevision=vb.prototype.L,vb.prototype.on=vb.prototype.J,vb.prototype.un=vb.prototype.K,Ib.prototype.getActive=Ib.prototype.c,Ib.prototype.getMap=Ib.prototype.f,Ib.prototype.setActive=Ib.prototype.Ha,Ib.prototype.getKeys=Ib.prototype.O,Ib.prototype.getProperties=Ib.prototype.N,Ib.prototype.setProperties=Ib.prototype.H,Ib.prototype.unset=Ib.prototype.P,Ib.prototype.changed=Ib.prototype.s,Ib.prototype.dispatchEvent=Ib.prototype.b,Ib.prototype.getRevision=Ib.prototype.L,Ib.prototype.on=Ib.prototype.J,Ib.prototype.un=Ib.prototype.K,xn.prototype.getActive=xn.prototype.c,xn.prototype.getMap=xn.prototype.f,xn.prototype.setActive=xn.prototype.Ha,xn.prototype.getKeys=xn.prototype.O,xn.prototype.getProperties=xn.prototype.N,xn.prototype.setProperties=xn.prototype.H,xn.prototype.unset=xn.prototype.P,xn.prototype.changed=xn.prototype.s,xn.prototype.dispatchEvent=xn.prototype.b,xn.prototype.getRevision=xn.prototype.L,xn.prototype.on=xn.prototype.J,xn.prototype.un=xn.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,Wb.prototype.getActive=Wb.prototype.c,Wb.prototype.getMap=Wb.prototype.f,Wb.prototype.setActive=Wb.prototype.Ha,Wb.prototype.getKeys=Wb.prototype.O,Wb.prototype.getProperties=Wb.prototype.N,Wb.prototype.setProperties=Wb.prototype.H,Wb.prototype.unset=Wb.prototype.P,Wb.prototype.changed=Wb.prototype.s,Wb.prototype.dispatchEvent=Wb.prototype.b,Wb.prototype.getRevision=Wb.prototype.L,Wb.prototype.on=Wb.prototype.J,Wb.prototype.un=Wb.prototype.K,An.prototype.getActive=An.prototype.c,An.prototype.getMap=An.prototype.f,An.prototype.setActive=An.prototype.Ha,An.prototype.getKeys=An.prototype.O,An.prototype.getProperties=An.prototype.N,An.prototype.setProperties=An.prototype.H,An.prototype.unset=An.prototype.P,An.prototype.changed=An.prototype.s,An.prototype.dispatchEvent=An.prototype.b,An.prototype.getRevision=An.prototype.L,An.prototype.on=An.prototype.J,An.prototype.un=An.prototype.K,Cn.prototype.getActive=Cn.prototype.c,Cn.prototype.getMap=Cn.prototype.f,Cn.prototype.setActive=Cn.prototype.Ha,Cn.prototype.getKeys=Cn.prototype.O,Cn.prototype.getProperties=Cn.prototype.N,Cn.prototype.setProperties=Cn.prototype.H,Cn.prototype.unset=Cn.prototype.P,Cn.prototype.changed=Cn.prototype.s,Cn.prototype.dispatchEvent=Cn.prototype.b,Cn.prototype.getRevision=Cn.prototype.L,Cn.prototype.on=Cn.prototype.J,Cn.prototype.un=Cn.prototype.K,Nn.prototype.getActive=Nn.prototype.c,Nn.prototype.getMap=Nn.prototype.f,Nn.prototype.setActive=Nn.prototype.Ha,Nn.prototype.getKeys=Nn.prototype.O,Nn.prototype.getProperties=Nn.prototype.N,Nn.prototype.setProperties=Nn.prototype.H,Nn.prototype.unset=Nn.prototype.P,Nn.prototype.changed=Nn.prototype.s,Nn.prototype.dispatchEvent=Nn.prototype.b,Nn.prototype.getRevision=Nn.prototype.L,Nn.prototype.on=Nn.prototype.J,Nn.prototype.un=Nn.prototype.K,im.prototype.getActive=im.prototype.c,im.prototype.getMap=im.prototype.f,im.prototype.setActive=im.prototype.Ha,im.prototype.getKeys=im.prototype.O,im.prototype.getProperties=im.prototype.N,im.prototype.setProperties=im.prototype.H,im.prototype.unset=im.prototype.P,im.prototype.changed=im.prototype.s,im.prototype.dispatchEvent=im.prototype.b,im.prototype.getRevision=im.prototype.L,im.prototype.on=im.prototype.J,im.prototype.un=im.prototype.K,am.prototype.getActive=am.prototype.c,am.prototype.getMap=am.prototype.f,am.prototype.setActive=am.prototype.Ha,am.prototype.getKeys=am.prototype.O,am.prototype.getProperties=am.prototype.N,am.prototype.setProperties=am.prototype.H,am.prototype.unset=am.prototype.P,am.prototype.changed=am.prototype.s,am.prototype.dispatchEvent=am.prototype.b,am.prototype.getRevision=am.prototype.L,am.prototype.on=am.prototype.J,am.prototype.un=am.prototype.K,um.prototype.getActive=um.prototype.c,um.prototype.getMap=um.prototype.f,um.prototype.setActive=um.prototype.Ha,um.prototype.getKeys=um.prototype.O,um.prototype.getProperties=um.prototype.N,um.prototype.setProperties=um.prototype.H,um.prototype.unset=um.prototype.P,um.prototype.changed=um.prototype.s,um.prototype.dispatchEvent=um.prototype.b,um.prototype.getRevision=um.prototype.L,um.prototype.on=um.prototype.J,um.prototype.un=um.prototype.K,Ui.prototype.getKeys=Ui.prototype.O,Ui.prototype.getProperties=Ui.prototype.N,Ui.prototype.setProperties=Ui.prototype.H,Ui.prototype.unset=Ui.prototype.P,Ui.prototype.changed=Ui.prototype.s,Ui.prototype.dispatchEvent=Ui.prototype.b,Ui.prototype.getRevision=Ui.prototype.L,Ui.prototype.on=Ui.prototype.J,Ui.prototype.un=Ui.prototype.K,Xi.prototype.getClosestPoint=Xi.prototype.Ab,Xi.prototype.intersectsCoordinate=Xi.prototype.sb,Xi.prototype.getExtent=Xi.prototype.G,Xi.prototype.simplify=Xi.prototype.Rb,Xi.prototype.transform=Xi.prototype.tb,Xi.prototype.getKeys=Xi.prototype.O,Xi.prototype.getProperties=Xi.prototype.N,Xi.prototype.setProperties=Xi.prototype.H,Xi.prototype.unset=Xi.prototype.P,Xi.prototype.changed=Xi.prototype.s,Xi.prototype.dispatchEvent=Xi.prototype.b,Xi.prototype.getRevision=Xi.prototype.L,Xi.prototype.on=Xi.prototype.J,Xi.prototype.un=Xi.prototype.K,Bd.prototype.getFirstCoordinate=Bd.prototype.ac,Bd.prototype.getLastCoordinate=Bd.prototype.bc,Bd.prototype.getLayout=Bd.prototype.cc,Bd.prototype.getClosestPoint=Bd.prototype.Ab,Bd.prototype.intersectsCoordinate=Bd.prototype.sb,Bd.prototype.getExtent=Bd.prototype.G,Bd.prototype.simplify=Bd.prototype.Rb,Bd.prototype.getKeys=Bd.prototype.O,Bd.prototype.getProperties=Bd.prototype.N,Bd.prototype.setProperties=Bd.prototype.H,Bd.prototype.unset=Bd.prototype.P,Bd.prototype.changed=Bd.prototype.s,Bd.prototype.dispatchEvent=Bd.prototype.b,Bd.prototype.getRevision=Bd.prototype.L,Bd.prototype.on=Bd.prototype.J,Bd.prototype.un=Bd.prototype.K,ql.prototype.getClosestPoint=ql.prototype.Ab,ql.prototype.intersectsCoordinate=ql.prototype.sb,ql.prototype.getExtent=ql.prototype.G,ql.prototype.simplify=ql.prototype.Rb,ql.prototype.transform=ql.prototype.tb,ql.prototype.getKeys=ql.prototype.O,ql.prototype.getProperties=ql.prototype.N,ql.prototype.setProperties=ql.prototype.H,ql.prototype.unset=ql.prototype.P,ql.prototype.changed=ql.prototype.s,ql.prototype.dispatchEvent=ql.prototype.b,ql.prototype.getRevision=ql.prototype.L,ql.prototype.on=ql.prototype.J,ql.prototype.un=ql.prototype.K,nr.prototype.getFirstCoordinate=nr.prototype.ac,nr.prototype.getLastCoordinate=nr.prototype.bc,nr.prototype.getLayout=nr.prototype.cc,nr.prototype.getClosestPoint=nr.prototype.Ab,nr.prototype.intersectsCoordinate=nr.prototype.sb,nr.prototype.getExtent=nr.prototype.G,nr.prototype.simplify=nr.prototype.Rb,nr.prototype.transform=nr.prototype.tb,nr.prototype.getKeys=nr.prototype.O,nr.prototype.getProperties=nr.prototype.N,nr.prototype.setProperties=nr.prototype.H,nr.prototype.unset=nr.prototype.P,nr.prototype.changed=nr.prototype.s,nr.prototype.dispatchEvent=nr.prototype.b,nr.prototype.getRevision=nr.prototype.L,nr.prototype.on=nr.prototype.J,nr.prototype.un=nr.prototype.K,pl.prototype.getFirstCoordinate=pl.prototype.ac,pl.prototype.getLastCoordinate=pl.prototype.bc,pl.prototype.getLayout=pl.prototype.cc,pl.prototype.getClosestPoint=pl.prototype.Ab,pl.prototype.intersectsCoordinate=pl.prototype.sb,pl.prototype.getExtent=pl.prototype.G,pl.prototype.simplify=pl.prototype.Rb,pl.prototype.transform=pl.prototype.tb,pl.prototype.getKeys=pl.prototype.O,pl.prototype.getProperties=pl.prototype.N,pl.prototype.setProperties=pl.prototype.H,pl.prototype.unset=pl.prototype.P,pl.prototype.changed=pl.prototype.s,pl.prototype.dispatchEvent=pl.prototype.b,pl.prototype.getRevision=pl.prototype.L,pl.prototype.on=pl.prototype.J,pl.prototype.un=pl.prototype.K,ll.prototype.getFirstCoordinate=ll.prototype.ac,ll.prototype.getLastCoordinate=ll.prototype.bc,ll.prototype.getLayout=ll.prototype.cc,ll.prototype.getClosestPoint=ll.prototype.Ab,ll.prototype.intersectsCoordinate=ll.prototype.sb,ll.prototype.getExtent=ll.prototype.G,ll.prototype.simplify=ll.prototype.Rb,ll.prototype.transform=ll.prototype.tb,ll.prototype.getKeys=ll.prototype.O,ll.prototype.getProperties=ll.prototype.N,ll.prototype.setProperties=ll.prototype.H,ll.prototype.unset=ll.prototype.P,ll.prototype.changed=ll.prototype.s,ll.prototype.dispatchEvent=ll.prototype.b,ll.prototype.getRevision=ll.prototype.L,ll.prototype.on=ll.prototype.J,ll.prototype.un=ll.prototype.K,fl.prototype.getFirstCoordinate=fl.prototype.ac,fl.prototype.getLastCoordinate=fl.prototype.bc,fl.prototype.getLayout=fl.prototype.cc,fl.prototype.getClosestPoint=fl.prototype.Ab,fl.prototype.intersectsCoordinate=fl.prototype.sb,fl.prototype.getExtent=fl.prototype.G,fl.prototype.simplify=fl.prototype.Rb,fl.prototype.transform=fl.prototype.tb,fl.prototype.getKeys=fl.prototype.O,fl.prototype.getProperties=fl.prototype.N,fl.prototype.setProperties=fl.prototype.H,fl.prototype.unset=fl.prototype.P,fl.prototype.changed=fl.prototype.s,fl.prototype.dispatchEvent=fl.prototype.b,fl.prototype.getRevision=fl.prototype.L,fl.prototype.on=fl.prototype.J,fl.prototype.un=fl.prototype.K,yl.prototype.getFirstCoordinate=yl.prototype.ac,yl.prototype.getLastCoordinate=yl.prototype.bc,yl.prototype.getLayout=yl.prototype.cc,yl.prototype.getClosestPoint=yl.prototype.Ab,yl.prototype.intersectsCoordinate=yl.prototype.sb,yl.prototype.getExtent=yl.prototype.G,yl.prototype.simplify=yl.prototype.Rb,yl.prototype.transform=yl.prototype.tb,yl.prototype.getKeys=yl.prototype.O,yl.prototype.getProperties=yl.prototype.N,yl.prototype.setProperties=yl.prototype.H,yl.prototype.unset=yl.prototype.P,yl.prototype.changed=yl.prototype.s,yl.prototype.dispatchEvent=yl.prototype.b,yl.prototype.getRevision=yl.prototype.L,yl.prototype.on=yl.prototype.J,yl.prototype.un=yl.prototype.K,ar.prototype.getFirstCoordinate=ar.prototype.ac,ar.prototype.getLastCoordinate=ar.prototype.bc,ar.prototype.getLayout=ar.prototype.cc,ar.prototype.getClosestPoint=ar.prototype.Ab,ar.prototype.intersectsCoordinate=ar.prototype.sb,ar.prototype.getExtent=ar.prototype.G,ar.prototype.simplify=ar.prototype.Rb,ar.prototype.transform=ar.prototype.tb,ar.prototype.getKeys=ar.prototype.O,ar.prototype.getProperties=ar.prototype.N,ar.prototype.setProperties=ar.prototype.H,ar.prototype.unset=ar.prototype.P,ar.prototype.changed=ar.prototype.s,ar.prototype.dispatchEvent=ar.prototype.b,ar.prototype.getRevision=ar.prototype.L,ar.prototype.on=ar.prototype.J,ar.prototype.un=ar.prototype.K,br.prototype.getFirstCoordinate=br.prototype.ac,br.prototype.getLastCoordinate=br.prototype.bc,br.prototype.getLayout=br.prototype.cc,br.prototype.getClosestPoint=br.prototype.Ab,br.prototype.intersectsCoordinate=br.prototype.sb,br.prototype.getExtent=br.prototype.G,br.prototype.simplify=br.prototype.Rb,br.prototype.transform=br.prototype.tb,br.prototype.getKeys=br.prototype.O,br.prototype.getProperties=br.prototype.N,br.prototype.setProperties=br.prototype.H,br.prototype.unset=br.prototype.P,br.prototype.changed=br.prototype.s,br.prototype.dispatchEvent=br.prototype.b,br.prototype.getRevision=br.prototype.L,br.prototype.on=br.prototype.J,br.prototype.un=br.prototype.K,xu.prototype.readFeatures=xu.prototype.Oa,Ru.prototype.readFeatures=Ru.prototype.Oa,xu.prototype.readFeatures=xu.prototype.Oa,Je.prototype.getKeys=Je.prototype.O,Je.prototype.getProperties=Je.prototype.N,Je.prototype.setProperties=Je.prototype.H,Je.prototype.unset=Je.prototype.P,Je.prototype.changed=Je.prototype.s,Je.prototype.dispatchEvent=Je.prototype.b,Je.prototype.getRevision=Je.prototype.L,Je.prototype.on=Je.prototype.J,Je.prototype.un=Je.prototype.K,_e.prototype.getMap=_e.prototype.g,_e.prototype.setTarget=_e.prototype.f,_e.prototype.getKeys=_e.prototype.O,_e.prototype.getProperties=_e.prototype.N,_e.prototype.setProperties=_e.prototype.H,_e.prototype.unset=_e.prototype.P,_e.prototype.changed=_e.prototype.s,_e.prototype.dispatchEvent=_e.prototype.b,_e.prototype.getRevision=_e.prototype.L,_e.prototype.on=_e.prototype.J,_e.prototype.un=_e.prototype.K,po.prototype.getMap=po.prototype.g,po.prototype.setTarget=po.prototype.f,po.prototype.getKeys=po.prototype.O,po.prototype.getProperties=po.prototype.N,po.prototype.setProperties=po.prototype.H,po.prototype.unset=po.prototype.P,po.prototype.changed=po.prototype.s,po.prototype.dispatchEvent=po.prototype.b,po.prototype.getRevision=po.prototype.L,po.prototype.on=po.prototype.J,po.prototype.un=po.prototype.K,yo.prototype.getMap=yo.prototype.g,yo.prototype.setTarget=yo.prototype.f,yo.prototype.getKeys=yo.prototype.O,yo.prototype.getProperties=yo.prototype.N,yo.prototype.setProperties=yo.prototype.H,yo.prototype.unset=yo.prototype.P,yo.prototype.changed=yo.prototype.s,yo.prototype.dispatchEvent=yo.prototype.b,yo.prototype.getRevision=yo.prototype.L,yo.prototype.on=yo.prototype.J,yo.prototype.un=yo.prototype.K,_p.prototype.getMap=_p.prototype.g,_p.prototype.setTarget=_p.prototype.f,_p.prototype.getKeys=_p.prototype.O,_p.prototype.getProperties=_p.prototype.N,_p.prototype.setProperties=_p.prototype.H,_p.prototype.unset=_p.prototype.P,_p.prototype.changed=_p.prototype.s,_p.prototype.dispatchEvent=_p.prototype.b,_p.prototype.getRevision=_p.prototype.L,_p.prototype.on=_p.prototype.J,_p.prototype.un=_p.prototype.K,ro.prototype.getMap=ro.prototype.g,ro.prototype.setTarget=ro.prototype.f,ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,ro.prototype.changed=ro.prototype.s,ro.prototype.dispatchEvent=ro.prototype.b,ro.prototype.getRevision=ro.prototype.L,ro.prototype.on=ro.prototype.J,ro.prototype.un=ro.prototype.K,oh.prototype.getMap=oh.prototype.g,oh.prototype.setTarget=oh.prototype.f,oh.prototype.getKeys=oh.prototype.O,oh.prototype.getProperties=oh.prototype.N,oh.prototype.setProperties=oh.prototype.H,oh.prototype.unset=oh.prototype.P,oh.prototype.changed=oh.prototype.s,oh.prototype.dispatchEvent=oh.prototype.b,oh.prototype.getRevision=oh.prototype.L,oh.prototype.on=oh.prototype.J,oh.prototype.un=oh.prototype.K,so.prototype.getMap=so.prototype.g,so.prototype.setMap,so.prototype.setTarget=so.prototype.f,so.prototype.get,so.prototype.getKeys=so.prototype.O,so.prototype.getProperties=so.prototype.N,so.prototype.set,so.prototype.setProperties=so.prototype.H,so.prototype.unset=so.prototype.P,so.prototype.changed=so.prototype.s,so.prototype.dispatchEvent=so.prototype.b,so.prototype.getRevision=so.prototype.L,so.prototype.on=so.prototype.J,so.prototype.once,so.prototype.un=so.prototype.K,ah.prototype.getMap=ah.prototype.g,ah.prototype.setTarget=ah.prototype.f,ah.prototype.getKeys=ah.prototype.O,ah.prototype.getProperties=ah.prototype.N,ah.prototype.setProperties=ah.prototype.H,ah.prototype.unset=ah.prototype.P,ah.prototype.changed=ah.prototype.s,ah.prototype.dispatchEvent=ah.prototype.b,ah.prototype.getRevision=ah.prototype.L,ah.prototype.on=ah.prototype.J,ah.prototype.un=ah.prototype.K,ch.prototype.getMap=ch.prototype.g,ch.prototype.setTarget=ch.prototype.f,ch.prototype.getKeys=ch.prototype.O,ch.prototype.getProperties=ch.prototype.N,ch.prototype.setProperties=ch.prototype.H,ch.prototype.unset=ch.prototype.P,ch.prototype.changed=ch.prototype.s,ch.prototype.dispatchEvent=ch.prototype.b,ch.prototype.getRevision=ch.prototype.L,ch.prototype.on=ch.prototype.J,ch.prototype.un=ch.prototype.K,r.ol})
\ No newline at end of file
1 +!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define([],e):t.ol=e()}(this,function(){var r={},n=this;function t(t,e){var o,i=r;t=t.split("."),i=i||n,t[0]in i||!i.execScript||i.execScript("var "+t[0]);for(;t.length&&(o=t.shift());)t.length||void 0===e?i=i[o]&&i[o]!==Object.prototype[o]?i[o]:i[o]={}:i[o]=e}function D(t,e){return e<t?1:t<e?-1:0}function d(t,e){return 0<=t.indexOf(e)}function v(t,e,o){var i=t.length;if(t[0]<=e)return 0;if(!(e<=t[i-1]))if(0<o){for(o=1;o<i;++o)if(t[o]<e)return o-1}else if(o<0){for(o=1;o<i;++o)if(t[o]<=e)return o}else for(o=1;o<i;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return i-1}function c(t,e){var o=Array.isArray(e)?e:[e],i=o.length;for(e=0;e<i;e++)t[t.length]=o[e]}function s(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function b(t,e){for(var o,i=t.length>>>0,r=0;r<i;r++)if(e(o=t[r],r,t))return o;return null}function U(t,e){var o=t.length;if(o===e.length){for(var i=0;i<o;i++)if(t[i]!==e[i])return;return 1}}function h(t){for(var o=us,e=t.length,i=Array(t.length),r=0;r<e;r++)i[r]={index:r,value:t[r]};for(i.sort(function(t,e){return o(t.value,e.value)||t.index-e.index}),r=0;r<t.length;r++)t[r]=i[r].value}function m(o,i){var r;return o.every(function(t,e){return!i(t,r=e,o)})?-1:r}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function w(){}function G(t){return t.Vo||(t.Vo=++o)}var o=0;function a(t){this.message="Assertion failed. See https://openlayers.org/en/v4.2.0/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"}function O(t,e){if(!t)throw new a(e)}function B(t,e,o,i){this.ca=t,this.$=e,this.da=o,this.ia=i}function p(t,e,o){return t.ca<=e&&e<=t.$&&t.da<=o&&o<=t.ia}function C(t,e){return t.ca<=e.$&&t.$>=e.ca&&t.da<=e.ia&&t.ia>=e.da}function x(t,e,o){return Math.min(Math.max(t,e),o)}e(a,Error);var i="cosh"in Math?Math.cosh:function(t){return((t=Math.exp(t))+1/t)/2};function S(t,e,o,i,r,n){var s,a=r-o,p=n-i;return(a||p)&&(1<(s=((t-o)*a+(e-i)*p)/(a*a+p*p))?(o=r,i=n):0<s&&(o+=a*s,i+=p*s)),y(t,e,o,i)}function y(t,e,o,i){return(t=o-t)*t+(e=i-e)*e}function M(t){return t*Math.PI/180}function L(t,e){return(t%=e)*e<0?t+e:t}function f(t,e,o){return t+o*(e-t)}function l(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]+2*e,o[1]=t[1]+2*e,o}function u(t,e,o){return(o=void 0===o?[0,0]:o)[0]=t[0]*e+.5|0,o[1]=t[1]*e+.5|0,o}function X(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}function P(t){for(var e=V(),o=0,i=t.length;o<i;++o)z(e,t[o]);return e}function A(t,e,o){return o?(o[0]=t[0]-e,o[1]=t[1]-e,o[2]=t[2]+e,o[3]=t[3]+e,o):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function g(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function E(t,e,o){return(e=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*e+(t=o<t[1]?t[1]-o:t[3]<o?o-t[3]:0)*t}function T(t,e){return j(t,e[0],e[1])}function N(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function j(t,e,o){return t[0]<=e&&e<=t[2]&&t[1]<=o&&o<=t[3]}function R(t,e){var o=t[1],i=t[2],r=t[3],n=e[0];e=e[1];var s=0;return n<t[0]?s|=16:i<n&&(s|=4),e<o?s|=8:r<e&&(s|=2),s=s||1}function V(){return[1/0,1/0,-1/0,-1/0]}function F(t,e,o,i,r){return r?(r[0]=t,r[1]=e,r[2]=o,r[3]=i,r):[t,e,o,i]}function I(t){return F(1/0,1/0,-1/0,-1/0,t)}function k(t,e){var o=t[0];return F(o,t=t[1],o,t,e)}function W(t,e,o,i,r){return Y(r=I(r),t,e,o,i)}function Z(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function K(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function z(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function Y(t,e,o,i,r){for(;o<i;o+=r){var n=t,s=e[o],a=e[o+1];n[0]=Math.min(n[0],s),n[1]=Math.min(n[1],a),n[2]=Math.max(n[2],s),n[3]=Math.max(n[3],a)}return t}function H(t,e,o){var i;return((i=e.call(o,J(t)))||(i=e.call(o,_(t)))||(i=e.call(o,it(t)))||!!(i=e.call(o,ot(t))))&&i}function q(t){var e=0;return e=!st(t)?rt(t)*tt(t):e}function J(t){return[t[0],t[1]]}function _(t){return[t[2],t[1]]}function $(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Q(t,e,o,i,r){var n=e*i[0]/2;i=e*i[1]/2,e=Math.cos(o);var s=Math.sin(o);o=n*e,n*=s,e*=i;var a=i*s,p=t[0],h=t[1];t=p-o+a,i=p-o-a,s=p+o-a,o=p+o+a;var a=h-n-e,p=h-n+e,l=h+n+e,n=h+n-e;return F(Math.min(t,i,s,o),Math.min(a,p,l,n),Math.max(t,i,s,o),Math.max(a,p,l,n),r)}function tt(t){return t[3]-t[1]}function et(t,e,o){return o=o||V(),nt(t,e)&&(o[0]=(t[0]>e[0]?t:e)[0],o[1]=(t[1]>e[1]?t:e)[1],o[2]=(t[2]<e[2]?t:e)[2],o[3]=(t[3]<e[3]?t:e)[3]),o}function ot(t){return[t[0],t[3]]}function it(t){return[t[2],t[3]]}function rt(t){return t[2]-t[0]}function nt(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function st(t){return t[2]<t[0]||t[3]<t[1]}function at(t,e){var o=(t[2]-t[0])/2*(e-1);e=(t[3]-t[1])/2*(e-1),t[0]-=o,t[2]+=o,t[1]-=e,t[3]+=e}function pt(t,e,o){e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2);var i=[t[0],t[2],t[4],t[6]],r=[t[1],t[3],t[5],t[7]];return F(e=Math.min.apply(null,i),t=Math.min.apply(null,r),Math.max.apply(null,i),Math.max.apply(null,r),o)}var ht="function"==typeof Object.assign?Object.assign:function(t,e){if(!t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1,r=arguments.length;i<r;++i){var n=arguments[i];if(null!=n)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}return o};function lt(t){for(var e in t)delete t[e]}function ut(t){var e,o=[];for(e in t)o.push(t[e]);return o}function ct(t){for(var e in t)return!1;return!e}function ft(t){this.radius=t}ft.prototype.a=function(t){for(var e=0,o=t.length,i=t[o-1][0],r=t[o-1][1],n=0;n<o;n++)var s=t[n][0],a=t[n][1],e=e+M(s-i)*(2+Math.sin(M(r))+Math.sin(M(a))),i=s,r=a;return e*this.radius*this.radius/2},ft.prototype.b=function(t,e){var o=M(t[1]),i=M(e[1]),r=(i-o)/2;return t=M(e[0]-t[0])/2,o=Math.sin(r)*Math.sin(r)+Math.sin(t)*Math.sin(t)*Math.cos(o)*Math.cos(i),2*this.radius*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))},ft.prototype.offset=function(t,e,o){var i=M(t[1]);e/=this.radius;var r=Math.asin(Math.sin(i)*Math.cos(e)+Math.cos(i)*Math.sin(e)*Math.cos(o));return[180*(M(t[0])+Math.atan2(Math.sin(o)*Math.sin(e)*Math.cos(i),Math.cos(e)-Math.sin(i)*Math.sin(r)))/Math.PI,180*r/Math.PI]};var yt=new ft(6370997),gt={};gt.degrees=2*Math.PI*yt.radius/360,gt.ft=.3048,gt.m=1,gt["us-ft"]=1200/3937;var dt=null;function vt(t){this.mb=t.code,this.a=t.units,this.f=void 0!==t.extent?t.extent:null,this.g=void 0!==t.worldExtent?t.worldExtent:null,this.b=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.c=void 0!==t.global&&t.global,this.i=!(!this.c||!this.f),this.o=t.getPointResolution,this.j=null,this.l=t.metersPerUnit;var e=t.code,o=dt||window.proj4;"function"!=typeof o||void 0!==(e=o.defs(e))&&(void 0!==e.axis&&void 0===t.axisOrientation&&(this.b=e.axis),void 0===t.metersPerUnit&&(this.l=e.to_meter),void 0===t.units&&(this.a=e.units))}function bt(t){vt.call(this,{code:t,units:"m",extent:wt,global:!0,worldExtent:xt,getPointResolution:function(t,e){return t/i(e[1]/6378137)}})}(Au=vt.prototype).Jk=function(){return this.mb},Au.G=function(){return this.f},Au.Un=function(){return this.a},Au.sc=function(){return this.l||gt[this.a]},Au.tl=function(){return this.g},Au.dm=function(){return this.c},Au.$p=function(t){this.c=t,this.i=!(!t||!this.f)},Au.Vn=function(t){this.f=t,this.i=!(!this.c||!t)},Au.kq=function(t){this.g=t},Au.Zp=function(t){this.o=t},e(bt,vt);var mt=6378137*Math.PI,wt=[-mt,-mt,mt,mt],xt=[-180,-85,180,85],St="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(t){return new bt(t)});function Mt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o){e[r]=mt*t[r]/180;var n=6378137*Math.log(Math.tan(Math.PI*(t[r+1]+90)/360));mt<n?n=mt:n<-mt&&(n=-mt),e[r+1]=n}return e}function Pt(t,e,o){var i=t.length;o=1<o?o:2,void 0===e&&(e=2<o?t.slice():Array(i));for(var r=0;r<i;r+=o)e[r]=180*t[r]/mt,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e}var At=new ft(6378137);function Et(t,e){vt.call(this,{code:t,units:"degrees",extent:Tt,axisOrientation:e,global:!0,metersPerUnit:jt,worldExtent:Tt})}e(Et,vt);var Tt=[-180,-90,180,90],jt=Math.PI*At.radius/180,Ct=[new Et("CRS:84"),new Et("EPSG:4326","neu"),new Et("urn:ogc:def:crs:EPSG::4326","neu"),new Et("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Et("urn:ogc:def:crs:OGC:1.3:CRS84"),new Et("urn:ogc:def:crs:OGC:2:84"),new Et("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Et("urn:x-ogc:def:crs:EPSG:4326","neu")],Lt={},Rt={};function It(t,e,o){t=t.mb,e=e.mb,t in Rt||(Rt[t]={}),Rt[t][e]=o}function Nt(t,e){var o;return o=t in Rt&&e in Rt[t]?Rt[t][e]:o}function Ft(t,e,o){var i=(t=Bt(t)).o;return i?e=i(e,o):"degrees"!=t.a&&(e=(i=Wt(t,Bt("EPSG:4326")))(e=[o[0]-e/2,o[1],o[0]+e/2,o[1],o[0],o[1]-e/2,o[0],o[1]+e/2],e,2),e=(yt.b(e.slice(0,2),e.slice(2,4))+yt.b(e.slice(4,6),e.slice(6,8)))/2,void 0!==(t=t.sc())&&(e/=t)),e}function kt(t){t.forEach(Dt),t.forEach(function(e){t.forEach(function(t){e!==t&&It(e,t,Kt)})})}function Dt(t){It(Lt[t.mb]=t,t,Kt)}function Ot(t){return t?"string"==typeof t?Bt(t):t:Bt("EPSG:3857")}function Ut(t,e,o,i){It(t=Bt(t),e=Bt(e),Gt(o)),It(e,t,Gt(i))}function Gt(s){return function(t,e,o){var i,r=t.length;for(o=void 0!==o?o:2,e=void 0!==e?e:Array(r),i=0;i<r;i+=o){var n=s([t[i],t[i+1]]);for(e[i]=n[0],e[i+1]=n[1],n=o-1;2<=n;--n)e[i+n]=t[i+n]}return e}}function Bt(t){var e,o=null;return t instanceof vt?o=t:"string"==typeof t&&(o=Lt[t]||null,e=dt||window.proj4,o||"function"!=typeof e||void 0===e.defs(t)||Dt(o=new vt({code:t}))),o}function Xt(t,e){if(t===e)return!0;var o=t.a===e.a;return(t.mb===e.mb||Wt(t,e)===Kt)&&o}function Vt(t,e){return Wt(t=Bt(t),e=Bt(e))}function Wt(t,e){var o,i,r,n=t.mb,s=e.mb,a=Nt(n,s);return a||"function"==typeof(o=dt||window.proj4)&&(i=o.defs(n),r=o.defs(s),void 0!==i&&void 0!==r&&(i===r?kt([e,t]):Ut(e,t,(a=o(s,n)).forward,a.inverse),a=Nt(n,s))),a=a||Zt}function Zt(t,e){if(void 0!==e&&t!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}return t}function Kt(t,e){if(void 0!==e){for(var o=0,i=t.length;o<i;++o)e[o]=t[o];t=e}else t=t.slice();return t}function zt(t,e,o){return Vt(e,o)(t,void 0,t.length)}function Yt(t,e,o){return pt(t,e=Vt(e,o))}function Ht(){kt(St),kt(Ct),Ct.forEach(function(e){St.forEach(function(t){It(e,t,Mt),It(t,e,Pt)})})}function qt(t,e,o,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=o,i):[t,e,o]}function Jt(t){var o,i;this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.b=t.resolutions,O((o=this.b,i=function(t,e){return e-t}||D,o.every(function(t,e){return!e||!(0<(t=i(o[e-1],t))||0===t)})),17),this.maxZoom=this.b.length-1,this.i=void 0!==t.origin?t.origin:null,this.c=null,void 0!==t.origins&&(this.c=t.origins,O(this.c.length==this.b.length,20));var e=t.extent;void 0===e||this.i||this.c||(this.i=ot(e)),O(!this.i&&this.c||this.i&&!this.c,18),this.f=null,void 0!==t.tileSizes&&(this.f=t.tileSizes,O(this.f.length==this.b.length,19)),this.g=void 0!==t.tileSize?t.tileSize:this.f?null:256,O(!this.g&&this.f||this.g&&!this.f,22),this.v=void 0!==e?e:null,this.a=null,this.j=[0,0],void 0!==t.sizes?this.a=t.sizes.map(function(t){return new B(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):e&&function(t,e){for(var o=t.b.length,i=Array(o),r=t.minZoom;r<o;++r)i[r]=ee(t,e,r);t.a=i}(this,e)}Ht();var _t=[0,0,0];function $t(t,e,o,i,r){for(r=t.Aa(e,r),e=e[0]-1;e>=t.minZoom;){if(o.call(null,e,ee(t,r,e,i)))return!0;--e}return!1}function Qt(t,e,o,i){return e[0]<t.maxZoom?(i=t.Aa(e,i),ee(t,i,e[0]+1,o)):null}function te(t,e,o,i){ie(t,e[0],e[1],o,!1,_t);var r=_t[1],n=_t[2];return ie(t,e[2],e[3],o,!0,_t),t=_t[1],e=_t[2],void 0!==i?(i.ca=r,i.$=t,i.da=n,i.ia=e):i=new B(r,t,n,e),i}function ee(t,e,o,i){return te(t,e,t.Da(o),i)}function oe(t,e){var o=t.Pc(e[0]),i=t.Da(e[0]);return t=X(t.gb(e[0]),t.j),[o[0]+(e[1]+.5)*t[0]*i,o[1]+(e[2]+.5)*t[1]*i]}function ie(t,e,o,i,r,n){var s=t.tc(i),a=i/t.Da(s),p=t.Pc(s);return t=X(t.gb(s),t.j),e=a*Math.floor((e-p[0])/i+(r?.5:0))/t[0],o=a*Math.floor((o-p[1])/i+(r?0:.5))/t[1],o=r?(e=Math.ceil(e)-1,Math.ceil(o)-1):(e=Math.floor(e),Math.floor(o)),qt(s,e,o,n)}function re(t){var e=t.j;return e||(e=ae(t),t.j=e),e}function ne(t){var e={};return ht(e,t||{}),void 0===e.extent&&(e.extent=Bt("EPSG:3857").G()),e.resolutions=se(e.extent,e.maxZoom,e.tileSize),delete e.maxZoom,new Jt(e)}function se(t,e,o){e=void 0!==e?e:42;var i=tt(t);for(t=rt(t),o=X(void 0!==o?o:256),o=Math.max(t/o[0],i/o[1]),e+=1,i=Array(e),t=0;t<e;++t)i[t]=o/Math.pow(2,t);return i}function ae(t,e,o){return e=se(t=pe(t),e,o),new Jt({extent:t,origin:ot(t),resolutions:e,tileSize:o})}function pe(t){var e=(t=Bt(t)).G();return e=!e?F(-(t=180*gt.degrees/t.sc()),-t,t,t):e}function he(t){this.b=t.html,this.a=t.tileRanges||null}function le(t){return t}function ue(i){return i.mh=function(t){var e=i.listener,o=i.lh||i.target;return i.nh&&me(i),e.call(o,t)}}function ce(t,e,o,i){for(var r,n=0,s=t.length;n<s;++n)if((r=t[n]).listener===e&&r.lh===o)return i&&(r.deleteIndex=n),r}function fe(t,e){return(t=t.fb)?t[e]:void 0}function ye(t){return t.fb||(t.fb={})}function ge(t,e){var o=fe(t,e);if(o){for(var i=0,r=o.length;i<r;++i)t.removeEventListener(e,o[i].mh),lt(o[i]);o.length=0,(o=t.fb)&&(delete o[e],Object.keys(o).length||delete t.fb)}}function de(t,e,o,i,r){var n=ye(t),s=n[e];return(n=ce(s=s||(n[e]=[]),o,i,!1))?r||(n.nh=!1):(n={lh:i,nh:!!r,listener:o,target:t,type:e},t.addEventListener(e,ue(n)),s.push(n)),n}function ve(t,e,o,i){return de(t,e,o,i,!0)}function be(t,e,o,i){(t=fe(t,e))&&(o=ce(t,o,i,!0))&&me(o)}function me(t){var e,o;t&&t.target&&(t.target.removeEventListener(t.type,t.mh),(e=fe(t.target,t.type))&&(-1!==(o="deleteIndex"in t?t.deleteIndex:e.indexOf(t))&&e.splice(o,1),e.length||ge(t.target,t.type)),lt(t))}function we(t){for(var e in ye(t))ge(t,e)}function xe(){}function Se(t){t.Jb||(t.Jb=!0,t.ka())}function Me(t){this.type=t,this.target=null}function Pe(t){t.stopPropagation()}function Ae(){this.Ua={},this.ra={},this.oa={}}function Ee(t,e){return e?e in t.oa:0<Object.keys(t.oa).length}function Te(){Ae.call(this),this.i=0}function je(t){Te.call(this),G(this),this.S={},void 0!==t&&this.H(t)}(Au=Jt.prototype).Rf=function(t,e,o){for(var i=(t=ee(this,t,e)).ca,r=t.$;i<=r;++i)for(var n=t.da,s=t.ia;n<=s;++n)o([e,i,n])},Au.G=function(){return this.v},Au.Ti=function(){return this.maxZoom},Au.Ui=function(){return this.minZoom},Au.Pc=function(t){return this.i||this.c[t]},Au.Da=function(t){return this.b[t]},Au.Vi=function(){return this.b},Au.Aa=function(t,e){var o=this.Pc(t[0]),i=this.Da(t[0]),r=X(this.gb(t[0]),this.j),n=o[0]+t[1]*r[0]*i;return F(n,t=o[1]+t[2]*r[1]*i,n+r[0]*i,t+r[1]*i,e)},Au.Be=function(t,e,o){return ie(this,t[0],t[1],e,!1,o)},Au.bg=function(t,e,o){return ie(this,t[0],t[1],this.Da(e),!1,o)},Au.gb=function(t){return this.g||this.f[t]},Au.tc=function(t,e){return x(v(this.b,t,e||0),this.minZoom,this.maxZoom)},xe.prototype.Jb=!(he.prototype.i=function(){return this.b}),xe.prototype.ka=w,Me.prototype.preventDefault=Me.prototype.stopPropagation=function(){this.qp=!0},e(Ae,xe),Ae.prototype.addEventListener=function(t,e){var o=this.oa[t];-1===(o=o||(this.oa[t]=[])).indexOf(e)&&o.push(e)},Ae.prototype.b=function(t){var e="string"==typeof t?new Me(t):t;t=e.type;var o=(e.target=this).oa[t];if(o){t in this.ra||(this.ra[t]=0,this.Ua[t]=0),++this.ra[t];for(var i=0,r=o.length;i<r;++i)if(!1===o[i].call(this,e)||e.qp){var n=!1;break}if(--this.ra[t],!this.ra[t]){for(e=this.Ua[t],delete this.Ua[t];e--;)this.removeEventListener(t,w);delete this.ra[t]}return n}},Ae.prototype.ka=function(){we(this)},Ae.prototype.removeEventListener=function(t,e){var o=this.oa[t];o&&(e=o.indexOf(e),t in this.Ua?(o[e]=w,++this.Ua[t]):(o.splice(e,1),o.length||delete this.oa[t]))},e(Te,Ae),(Au=Te.prototype).s=function(){++this.i,this.b("change")},Au.L=function(){return this.i},Au.J=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=de(this,t[n],e,o);return r}return de(this,t,e,o)},Au.once=function(t,e,o){if(Array.isArray(t)){for(var i=t.length,r=Array(i),n=0;n<i;++n)r[n]=ve(this,t[n],e,o);return r}return ve(this,t,e,o)},Au.K=function(t,e,o){if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)be(this,t[i],e,o);else be(this,t,e,o)},e(je,Te);var Ce={};function Le(t){return Ce.hasOwnProperty(t)?Ce[t]:Ce[t]="change:"+t}function Re(t,e,o){var i=Le(e);t.b(new Ie(i,e,o)),t.b(new Ie("propertychange",e,o))}function Ie(t,e,o){Me.call(this,t),this.key=e,this.oldValue=o}function Ne(t,e){if(je.call(this),this.c=!!(e||{}).unique,this.a=t||[],this.c)for(t=0,e=this.a.length;t<e;++t)ke(this,this.a[t],t);Fe(this)}function Fe(t){t.set(De,t.a.length)}function ke(t,e,o){for(var i=0,r=t.a.length;i<r;++i)if(t.a[i]===e&&i!==o)throw new a(58)}(Au=je.prototype).get=function(t){var e;return e=this.S.hasOwnProperty(t)?this.S[t]:e},Au.O=function(){return Object.keys(this.S)},Au.N=function(){return ht({},this.S)},Au.set=function(t,e,o){o?this.S[t]=e:(o=this.S[t])!==(this.S[t]=e)&&Re(this,t,o)},Au.H=function(t,e){for(var o in t)this.set(o,t[o],e)},Au.P=function(t,e){var o;t in this.S&&(o=this.S[t],delete this.S[t],e||Re(this,t,o))},e(Ie,Me),e(Ne,je),(Au=Ne.prototype).clear=function(){for(;0<this.dc();)this.pop()},Au.fg=function(t){for(var e=0,o=t.length;e<o;++e)this.push(t[e]);return this},Au.forEach=function(t,e){this.a.forEach(t,e)},Au.tm=function(){return this.a},Au.item=function(t){return this.a[t]},Au.dc=function(){return this.get(De)},Au.He=function(t,e){this.c&&ke(this,e),this.a.splice(t,0,e),Fe(this),this.b(new Oe("add",e))},Au.pop=function(){return this.Hg(this.dc()-1)},Au.push=function(t){this.c&&ke(this,t);var e=this.dc();return this.He(e,t),this.dc()},Au.remove=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o]===t)return this.Hg(o)},Au.Hg=function(t){var e=this.a[t];return this.a.splice(t,1),Fe(this),this.b(new Oe("remove",e)),e},Au.Wp=function(t,e){var o=this.dc();if(t<o)this.c&&ke(this,e,t),o=this.a[t],this.a[t]=e,this.b(new Oe("remove",o)),this.b(new Oe("add",e));else{for(;o<t;++o)this.He(o,void 0);this.He(t,e)}};var De="length";function Oe(t,e){Me.call(this,t),this.element=e}e(Oe,Me);var Ue=/^#(?:[0-9a-f]{3}){1,2}$/i,Ge=/^([a-z]*)$/i;function Be(t){return Array.isArray(t)?t:Ze(t)}function Xe(t){var e;return t="string"!=typeof t?"rgba("+(e=(e=t[0])!=(0|e)?e+.5|0:e)+","+(e=(e=t[1])!=(0|e)?e+.5|0:e)+","+(e=(e=t[2])!=(0|e)?e+.5|0:e)+","+(void 0===t[3]?1:t[3])+")":t}var Ve,We,Ze=(Ve={},We=0,function(t){if(Ve.hasOwnProperty(t))var e=Ve[t];else{if(1024<=We)for(var o in e=0,Ve)3&e++||(delete Ve[o],--We);var i,r;e=t,Ge.exec(e)&&((o=document.createElement("div")).style.color=e,document.body.appendChild(o),e=getComputedStyle(o).color,document.body.removeChild(o)),Ue.exec(e)?(O(3==(r=e.length-1)||6==r,54),i=3==r?1:2,r=parseInt(e.substr(1+0*i,i),16),o=parseInt(e.substr(1+i,i),16),e=parseInt(e.substr(1+2*i,i),16),1==i&&(r=(r<<4)+r,o=(o<<4)+o,e=(e<<4)+e),r=[r,o,e,1]):e.indexOf("rgba(")?e.indexOf("rgb(")?O(!1,14):((e=e.slice(4,-1).split(",").map(Number)).push(1),r=Ke(e)):r=Ke(e=e.slice(5,-1).split(",").map(Number)),e=r,Ve[t]=e,++We}return e});function Ke(t){var e=[];return e[0]=x(t[0]+.5|0,0,255),e[1]=x(t[1]+.5|0,0,255),e[2]=x(t[2]+.5|0,0,255),e[3]=x(t[3],0,1),e}function ze(t){return"string"==typeof t||t instanceof CanvasPattern||t instanceof CanvasGradient?t:Xe(t)}function Ye(t,e){var o=document.createElement("CANVAS");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function He(t,e){var o=e.parentNode;o&&o.replaceChild(t,e)}function qe(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Je(t){je.call(this),this.element=t.element||null,this.a=this.R=null,this.v=[],this.render=t.render||w,t.target&&this.f(t.target)}function _e(t){t=t||{},this.I=document.createElement("UL"),this.u=document.createElement("LI"),this.I.appendChild(this.u),this.u.style.display="none",this.c=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.c=!1);var e=void 0!==t.className?t.className:"ol-attribution",o=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.collapseLabel?t.collapseLabel:"»";"string"==typeof i?(this.D=document.createElement("span"),this.D.textContent=i):this.D=i,"string"==typeof(i=void 0!==t.label?t.label:"i")?(this.C=document.createElement("span"),this.C.textContent=i):this.C=i;var r=this.o&&!this.c?this.D:this.C;(i=document.createElement("button")).setAttribute("type","button"),i.title=o,i.appendChild(r),de(i,"click",this.Vm,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control"+(this.c&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),o.appendChild(this.I),o.appendChild(i),Je.call(this,{element:o,render:t.render||$e,target:t.target}),this.B=!0,this.l={},this.j={},this.T={}}function $e(t){if(t=t.frameState){var e,o,i,r,n,s,a,p=t.layerStatesArray,h=ht({},t.attributions),l={},u={},c=t.viewState.projection,f=0;for(a=p.length;f<a;f++)if(o=p[f].layer.ha()){var y=G(o).toString();if(i=o.j)for(var g=0,d=i.length;g<d;g++){var v=i[g],b=G(v).toString();if(!(b in h)){if(e=t.usedTiles[y])t:{var m=void 0,w=v,x=M=o.Ta(c),S=c;if(w.a){for(m in e)if(m in w.a)for(var M=e[m],P=0,A=w.a[m].length;P<A;++P){var E=w.a[m][P];if(C(E,M)){m=!0;break t}var T=ee(x,pe(S),parseInt(m,10)),j=T.$-T.ca+1;if((M.ca<T.ca||M.$>T.$)&&(C(E,new B(L(M.ca,j),L(M.$,j),M.da,M.ia))||M.$-M.ca+1>j&&C(E,T))){m=!0;break t}}m=!1}else m=!0}else m=!1;m?(b in l&&delete l[b],(m=v.b)in u||(u[m]=!0,h[b]=v)):l[b]=v}}}for(r in f=(a=[h,l])[0],a=a[1],this.l)r in f?(this.j[r]||(this.l[r].style.display="",this.j[r]=!0),delete f[r]):r in a?(this.j[r]&&(this.l[r].style.display="none",delete this.j[r]),delete a[r]):(qe(this.l[r]),delete this.l[r],delete this.j[r]);for(r in f)g=document.createElement("LI"),g.innerHTML=f[r].b,this.I.appendChild(g),this.l[r]=g,this.j[r]=!0;for(r in a)g=document.createElement("LI"),g.innerHTML=a[r].b,g.style.display="none",this.I.appendChild(g),this.l[r]=g;for(s in r=!ct(this.j)||!ct(t.logos),this.B!=r&&(this.element.style.display=r?"":"none",this.B=r),r&&ct(this.j)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only"),t=t.logos,r=this.T)s in t||(qe(r[s]),delete r[s]);for(n in t)(a=t[n])instanceof HTMLElement&&(this.u.appendChild(a),r[n]=a),n in r||((s=new Image).src=n,""===a?f=s:((f=document.createElement("a")).href=a,f.appendChild(s)),this.u.appendChild(f),r[n]=f);this.u.style.display=ct(t)?"none":""}else this.B&&(this.element.style.display="none",this.B=!1)}function Qe(t){t.element.classList.toggle("ol-collapsed"),t.c?He(t.D,t.C):He(t.C,t.D),t.c=!t.c}function to(t){return Math.pow(t,3)}function eo(t){return 1-to(1-t)}function oo(t){return 3*t*t-2*t*t*t}function io(t){return t}function ro(t){var e=void 0!==(t=t||{}).className?t.className:"ol-rotate",o=void 0!==t.label?t.label:"⇧";this.c=null,"string"==typeof o?(this.c=document.createElement("span"),this.c.className="ol-compass",this.c.textContent=o):(this.c=o,this.c.classList.add("ol-compass"));var i=t.tipLabel||"Reset rotation";(o=document.createElement("button")).className=e+"-reset",o.setAttribute("type","button"),o.title=i,o.appendChild(this.c),de(o,"click",ro.prototype.D,this),(i=document.createElement("div")).className=e+" ol-unselectable ol-control",i.appendChild(o),e=t.render||no,this.o=t.resetNorth||void 0,Je.call(this,{element:i,render:e,target:t.target}),this.l=void 0!==t.duration?t.duration:250,this.j=void 0===t.autoHide||t.autoHide,this.u=void 0,this.j&&this.element.classList.add("ol-hidden")}function no(t){var e,o;(t=t.frameState)&&((t=t.viewState.rotation)!=this.u&&(e="rotate("+t+"rad)",this.j&&((o=this.element.classList.contains("ol-hidden"))||t?o&&t&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")),this.c.style.msTransform=e,this.c.style.webkitTransform=e,this.c.style.transform=e),this.u=t)}function so(t){var e=void 0!==(t=t||{}).className?t.className:"ol-zoom",o=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInLabel?t.zoomInLabel:"+",r=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",n=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",s=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=e+"-in",a.setAttribute("type","button"),a.title=n,a.appendChild("string"==typeof i?document.createTextNode(i):i),de(a,"click",so.prototype.j.bind(this,o)),(i=document.createElement("button")).className=e+"-out",i.setAttribute("type","button"),i.title=s,i.appendChild("string"==typeof r?document.createTextNode(r):r),de(i,"click",so.prototype.j.bind(this,-o)),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(a),o.appendChild(i),Je.call(this,{element:o,target:t.target}),this.c=void 0!==t.duration?t.duration:250}function ao(t){t=t||{};var e=new Ne;return void 0!==t.zoom&&!t.zoom||e.push(new so(t.zoomOptions)),void 0!==t.rotate&&!t.rotate||e.push(new ro(t.rotateOptions)),void 0!==t.attribution&&!t.attribution||e.push(new _e(t.attributionOptions)),e}function po(t){t=t||{},this.c=void 0!==t.className?t.className:"ol-full-screen";var e=void 0!==t.label?t.label:"⤢";this.o="string"==typeof e?document.createTextNode(e):e,e=void 0!==t.labelActive?t.labelActive:"×",this.l="string"==typeof e?document.createTextNode(e):e;var o=t.tipLabel||"Toggle full-screen";(e=document.createElement("button")).className=this.c+"-"+lo(),e.setAttribute("type","button"),e.title=o,e.appendChild(this.o),de(e,"click",this.C,this),(o=document.createElement("div")).className=this.c+" ol-unselectable ol-control "+(ho()?"":"ol-unsupported"),o.appendChild(e),Je.call(this,{element:o,target:t.target}),this.D=void 0!==t.keys&&t.keys,this.j=t.source}function ho(){var t=document.body;return t.webkitRequestFullscreen||t.mozRequestFullScreen&&document.mozFullScreenEnabled||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled}function lo(){return!!(document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||document.fullscreenElement)}function uo(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}e(Je,je),Je.prototype.ka=function(){qe(this.element),je.prototype.ka.call(this)},Je.prototype.g=function(){return this.a},Je.prototype.setMap=function(t){this.a&&qe(this.element);for(var e=0,o=this.v.length;e<o;++e)me(this.v[e]);this.v.length=0,(this.a=t)&&((this.R||t.D).appendChild(this.element),this.render!==w&&this.v.push(de(t,"postrender",this.render,this)),t.render())},Je.prototype.f=function(t){this.R="string"==typeof t?document.getElementById(t):t},e(_e,Je),(Au=_e.prototype).Vm=function(t){t.preventDefault(),Qe(this)},Au.Um=function(){return this.o},Au.Xm=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.c&&Qe(this))},Au.Wm=function(t){this.o&&this.c!==t&&Qe(this)},Au.Tm=function(){return this.c},e(ro,Je),ro.prototype.D=function(t){t.preventDefault(),this.o?this.o():(t=this.a.Z())&&void 0!==t.Qa()&&(0<this.l?t.animate({rotation:0,duration:this.l,easing:eo}):t.Oe(0))},e(so,Je),so.prototype.j=function(t,e){var o;e.preventDefault(),!(e=this.a.Z())||(o=e.Pa())&&(t=e.constrainResolution(o,t),0<this.c?(e.Ic()&&e.ed(),e.animate({resolution:t,duration:this.c,easing:eo})):e.Vc(t))},e(po,Je),po.prototype.C=function(t){t.preventDefault(),ho()&&(t=this.a)&&(lo()?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():(t=this.j?"string"==typeof this.j?document.getElementById(this.j):this.j:t.jd(),this.D?t.mozRequestFullScreenWithKeys?t.mozRequestFullScreenWithKeys():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):uo(t):uo(t)))},po.prototype.u=function(){var t=this.element.firstElementChild,e=this.a;lo()?(t.className=this.c+"-true",He(this.l,this.o)):(t.className=this.c+"-false",He(this.o,this.l)),e&&e.Ad()},po.prototype.setMap=function(t){Je.prototype.setMap.call(this,t),t&&this.v.push(de(document,fo(),this.u,this))};var co,fo=function(){var t;return co||((t=document.body).webkitRequestFullscreen?co="webkitfullscreenchange":t.mozRequestFullScreen?co="mozfullscreenchange":t.msRequestFullscreen?co="MSFullscreenChange":t.requestFullscreen&&(co="fullscreenchange")),co};function yo(t){t=t||{};var e=document.createElement("DIV");e.className=void 0!==t.className?t.className:"ol-mouse-position",Je.call(this,{element:e,render:t.render||go,target:t.target}),de(this,Le(bo),this.Ym,this),t.coordinateFormat&&this.kj(t.coordinateFormat),t.projection&&this.$h(t.projection),this.u=void 0!==t.undefinedHTML?t.undefinedHTML:"",this.l=e.innerHTML,this.o=this.j=this.c=null}function go(t){(t=t.frameState)?this.c!=t.viewState.projection&&(this.c=t.viewState.projection,this.j=null):this.c=null,vo(this,this.o)}function vo(t,e){var o,i=t.u;e&&t.c&&(t.j||(o=t.Zh(),t.j=o?Wt(t.c,o):Zt),(e=t.a.Wa(e))&&(t.j(e,e),i=(i=t.xh())?i(e):e.toString())),t.l&&i==t.l||(t.element.innerHTML=i,t.l=i)}e(yo,Je),(Au=yo.prototype).Ym=function(){this.j=null},Au.xh=function(){return this.get(mo)},Au.Zh=function(){return this.get(bo)},Au.Ll=function(t){this.o=this.a.xe(t),vo(this,this.o)},Au.Ml=function(){vo(this,null),this.o=null},Au.setMap=function(t){Je.prototype.setMap.call(this,t),t&&(t=t.a,this.v.push(de(t,"mousemove",this.Ll,this),de(t,"mouseout",this.Ml,this)))},Au.kj=function(t){this.set(mo,t)},Au.$h=function(t){this.set(bo,Bt(t))};var bo="projection",mo="coordinateFormat";function wo(t,e,o){Me.call(this,t),this.map=e,this.frameState=void 0!==o?o:null}function xo(t,e,o,i,r){wo.call(this,t,e,r),this.originalEvent=o,this.pixel=e.xe(o),this.coordinate=e.Wa(this.pixel),this.dragging=void 0!==i&&i}e(wo,Me),e(xo,wo),xo.prototype.preventDefault=function(){wo.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},xo.prototype.stopPropagation=function(){wo.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()};var So=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Mo(t,e){for(var o,i=So.length,r=0;r<i;++r)try{if(o=t.getContext(So[r],e))return o}catch(t){}return null}var Po,Ao="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Eo=-1!==Ao.indexOf("firefox"),To=-1!==Ao.indexOf("safari")&&-1==Ao.indexOf("chrom"),jo=-1!==Ao.indexOf("webkit")&&-1==Ao.indexOf("edge"),Co=-1!==Ao.indexOf("macintosh"),Lo=window.devicePixelRatio||1,Ro=!1,Io=function(){if(!("HTMLCanvasElement"in window))return!1;try{var t=document.createElement("CANVAS").getContext("2d");return!!t&&(void 0!==t.setLineDash&&(Ro=!0),!0)}catch(t){return!1}}(),No="DeviceOrientationEvent"in window,Fo="geolocation"in navigator,ko="ontouchstart"in window,Do="PointerEvent"in window,Oo=!!navigator.msPointerEnabled,Uo=!1,Go=[];if("WebGLRenderingContext"in window)try{var Bo=Mo(document.createElement("CANVAS"),{failIfMajorPerformanceCaveat:!0});Bo&&(Uo=!0,Po=Bo.getParameter(Bo.MAX_TEXTURE_SIZE),Go=Bo.getSupportedExtensions())}catch(t){}var Xo=Uo,Vo=Go,Wo=Po,Zo={Iq:"singleclick",xq:"click",yq:"dblclick",Bq:"pointerdrag",Eq:"pointermove",Aq:"pointerdown",Hq:"pointerup",Gq:"pointerover",Fq:"pointerout",Cq:"pointerenter",Dq:"pointerleave",zq:"pointercancel"};function Ko(t,e,o,i,r){xo.call(this,t,e,o.b,i,r),this.b=o}function zo(t,e){this.b=t,this.f=e}function Yo(t){zo.call(this,t,{mousedown:this.fm,mousemove:this.gm,mouseup:this.jm,mouseover:this.im,mouseout:this.hm}),this.a=t.i,this.i=[]}function Ho(t,e){t=t.i;var o=e.clientX;e=e.clientY;for(var i,r=0,n=t.length;r<n&&(i=t[r]);r++){var s=Math.abs(e-i[1]);if(Math.abs(o-i[0])<=25&&s<=25)return 1}}function qo(t){var e=si(t,t),o=e.preventDefault;return e.preventDefault=function(){t.preventDefault(),o()},e.pointerId=1,e.isPrimary=!0,e.pointerType="mouse",e}function Jo(t){zo.call(this,t,{MSPointerDown:this.om,MSPointerMove:this.pm,MSPointerUp:this.sm,MSPointerOut:this.qm,MSPointerOver:this.rm,MSPointerCancel:this.nm,MSGotPointerCapture:this.lm,MSLostPointerCapture:this.mm}),this.a=t.i,this.i=["","unavailable","touch","pen","mouse"]}function _o(t,e){var o=e;return"number"==typeof e.pointerType&&((o=si(e,e)).pointerType=t.i[e.pointerType]),o}function $o(t){zo.call(this,t,{pointerdown:this.ip,pointermove:this.jp,pointerup:this.mp,pointerout:this.kp,pointerover:this.lp,pointercancel:this.hp,gotpointercapture:this.ul,lostpointercapture:this.em})}function Qo(t,e,o){var i;Me.call(this,t),this.b=e,t=o||{},this.buttons=function(t){if(t.buttons||ti)t=t.buttons;else switch(t.which){case 1:t=1;break;case 2:t=4;break;case 3:t=2;break;default:t=0}return t}(t),this.pressure=(i=t,o=this.buttons,i.pressure||(o?.5:0)),this.bubbles="bubbles"in t&&t.bubbles,this.cancelable="cancelable"in t&&t.cancelable,this.view="view"in t?t.view:null,this.detail="detail"in t?t.detail:null,this.screenX="screenX"in t?t.screenX:0,this.screenY="screenY"in t?t.screenY:0,this.clientX="clientX"in t?t.clientX:0,this.clientY="clientY"in t?t.clientY:0,this.ctrlKey="ctrlKey"in t&&t.ctrlKey,this.altKey="altKey"in t&&t.altKey,this.shiftKey="shiftKey"in t&&t.shiftKey,this.metaKey="metaKey"in t&&t.metaKey,this.button="button"in t?t.button:0,this.relatedTarget="relatedTarget"in t?t.relatedTarget:null,this.pointerId="pointerId"in t?t.pointerId:0,this.width="width"in t?t.width:0,this.height="height"in t?t.height:0,this.tiltX="tiltX"in t?t.tiltX:0,this.tiltY="tiltY"in t?t.tiltY:0,this.pointerType="pointerType"in t?t.pointerType:"",this.isPrimary="isPrimary"in t&&t.isPrimary,e.preventDefault&&(this.preventDefault=function(){e.preventDefault()})}e(Ko,xo),e(Yo,zo),(Au=Yo.prototype).fm=function(t){var e;Ho(this,t)||(1..toString()in this.a&&this.cancel(t),e=qo(t),this.a[1..toString()]=t,li(this.b,"pointerdown",e,t))},Au.gm=function(t){var e;Ho(this,t)||(e=qo(t),li(this.b,"pointermove",e,t))},Au.jm=function(t){var e;Ho(this,t)||(e=this.a[1..toString()])&&e.button===t.button&&(e=qo(t),li(this.b,"pointerup",e,t),delete this.a[1..toString()])},Au.im=function(t){var e;Ho(this,t)||(e=qo(t),hi(this.b,e,t))},Au.hm=function(t){var e;Ho(this,t)||(e=qo(t),pi(this.b,e,t))},Au.cancel=function(t){var e=qo(t);this.b.cancel(e,t),delete this.a[1..toString()]},e(Jo,zo),(Au=Jo.prototype).om=function(t){this.a[t.pointerId.toString()]=t;var e=_o(this,t);li(this.b,"pointerdown",e,t)},Au.pm=function(t){var e=_o(this,t);li(this.b,"pointermove",e,t)},Au.sm=function(t){var e=_o(this,t);li(this.b,"pointerup",e,t),delete this.a[t.pointerId.toString()]},Au.qm=function(t){var e=_o(this,t);pi(this.b,e,t)},Au.rm=function(t){var e=_o(this,t);hi(this.b,e,t)},Au.nm=function(t){var e=_o(this,t);this.b.cancel(e,t),delete this.a[t.pointerId.toString()]},Au.mm=function(t){this.b.b(new Qo("lostpointercapture",t,t))},Au.lm=function(t){this.b.b(new Qo("gotpointercapture",t,t))},e($o,zo),(Au=$o.prototype).ip=function(t){ui(this.b,t)},Au.jp=function(t){ui(this.b,t)},Au.mp=function(t){ui(this.b,t)},Au.kp=function(t){ui(this.b,t)},Au.lp=function(t){ui(this.b,t)},Au.hp=function(t){ui(this.b,t)},Au.em=function(t){ui(this.b,t)},Au.ul=function(t){ui(this.b,t)},e(Qo,Me);var ti=!1;try{ti=1===new MouseEvent("click",{buttons:1}).buttons}catch(t){}function ei(t,e){zo.call(this,t,{touchstart:this.rq,touchmove:this.qq,touchend:this.pq,touchcancel:this.oq}),this.a=t.i,this.j=e,this.i=void 0,this.g=0,this.c=void 0}function oi(t,e,o){function i(){e.preventDefault()}for(var r,n,s=Array.prototype.slice.call(e.changedTouches),a=s.length,p=0;p<a;++p){var h=(r=t,h=e,n=s[p],(h=si(h,n)).pointerId=n.identifier+2,h.bubbles=!0,h.cancelable=!0,h.detail=r.g,h.button=0,h.buttons=1,h.width=n.webkitRadiusX||n.radiusX||0,h.height=n.webkitRadiusY||n.radiusY||0,h.pressure=n.webkitForce||n.force||.5,h.isPrimary=r.i===n.identifier,h.pointerType="touch",h.clientX=n.clientX,h.clientY=n.clientY,h.screenX=n.screenX,h.screenY=n.screenY,h);h.preventDefault=i,o.call(t,e,h)}}function ii(t,e){var o,i=t.j.i;e=e.changedTouches[0],t.i===e.identifier&&(o=[e.clientX,e.clientY],i.push(o),setTimeout(function(){s(i,o)},2500))}function ri(t){Ae.call(this),this.g=t,this.i={},this.f={},this.a=[],Do?ni(this,new $o(this)):Oo?ni(this,new Jo(this)):(ni(this,t=new Yo(this)),ko&&ni(this,new ei(this,t))),t=this.a.length;for(var e,o,i=0;i<t;i++)e=this.a[i],o=this,Object.keys(e.f).forEach(function(t){de(this.g,t,this.c,this)},o)}function ni(t,o){var e=Object.keys(o.f);e&&(e.forEach(function(t){var e=o.f[t];e&&(this.f[t]=e.bind(o))},t),t.a.push(o))}function si(t,e){for(var o,i={},r=0,n=ci.length;r<n;r++)i[o=ci[r][0]]=t[o]||e[o]||ci[r][1];return i}function ai(t,e,o){e.bubbles=!1,li(t,"pointerleave",e,o)}function pi(t,e,o){t.out(e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||ai(t,e,o)}function hi(t,e,o){e.bubbles=!0,li(t,"pointerover",e,o);var i=e.target,r=e.relatedTarget;i&&r&&i.contains(r)||(e.bubbles=!1,li(t,"pointerenter",e,o))}function li(t,e,o,i){t.b(new Qo(e,i,o))}function ui(t,e){t.b(new Qo(e.type,e,e))}e(ei,zo),(Au=ei.prototype).ij=function(){this.g=0,this.c=void 0},Au.rq=function(t){var e=t.touches,o=Object.keys(this.a),i=o.length;if(i>=e.length){for(var r=[],n=0;n<i;++n){var s,a=o[n],p=this.a[a];if(!(s=1==a))t:{for(var h=e.length,l=0;l<h;l++)if((s=e[l]).identifier===a-2){s=!0;break t}s=!1}s||r.push(p.out)}for(n=0;n<r.length;++n)this.Kf(t,r[n])}e=t.changedTouches[0],(!(o=Object.keys(this.a).length)||1===o&&1..toString()in this.a)&&(this.i=e.identifier,void 0!==this.c&&clearTimeout(this.c)),ii(this,t),this.g++,oi(this,t,this.cp)},Au.cp=function(t,e){this.a[e.pointerId]={target:e.target,out:e,Wi:e.target};var o=this.b;e.bubbles=!0,li(o,"pointerover",e,t),o=this.b,e.bubbles=!1,li(o,"pointerenter",e,t),li(this.b,"pointerdown",e,t)},Au.qq=function(t){t.preventDefault(),oi(this,t,this.km)},Au.km=function(t,e){var o,i,r=this.a[e.pointerId];r&&(o=r.out,i=r.Wi,li(this.b,"pointermove",e,t),o&&i!==e.target&&(o.relatedTarget=e.target,e.relatedTarget=i,o.target=i,e.target?(pi(this.b,o,t),hi(this.b,e,t)):(e.target=i,e.relatedTarget=null,this.Kf(t,e))),r.out=e,r.Wi=e.target)},Au.pq=function(t){ii(this,t),oi(this,t,this.sq)},Au.sq=function(t,e){li(this.b,"pointerup",e,t),this.b.out(e,t),ai(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},Au.oq=function(t){oi(this,t,this.Kf)},Au.Kf=function(t,e){this.b.cancel(e,t),this.b.out(e,t),ai(this.b,e,t),delete this.a[e.pointerId],e.isPrimary&&(this.i=void 0,this.c=setTimeout(this.ij.bind(this),200))},e(ri,Ae),ri.prototype.c=function(t){var e=this.f[t.type];e&&e(t)},ri.prototype.out=function(t,e){t.bubbles=!0,li(this,"pointerout",t,e)},ri.prototype.cancel=function(t,e){li(this,"pointercancel",t,e)};var ci=[["bubbles",!(ri.prototype.ka=function(){for(var t,e,o=this.a.length,i=0;i<o;i++)t=this.a[i],e=this,Object.keys(t.f).forEach(function(t){be(this.g,t,this.c,this)},e);Ae.prototype.ka.call(this)})],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function fi(t,e){Ae.call(this),this.i=t,this.j=0,this.o=!1,this.f=[],this.D=e?e*Lo:Lo,this.c=null,t=this.i.a,this.S=0,this.u={},this.g=new ri(t),this.a=null,this.l=de(this.g,"pointerdown",this.Ol,this),this.v=de(this.g,"pointermove",this.Lp,this)}function yi(t,e){"pointerup"==e.type||"pointercancel"==e.type?delete t.u[e.pointerId]:"pointerdown"==e.type&&(t.u[e.pointerId]=!0),t.S=Object.keys(t.u).length}function gi(t,e){return Math.abs(e.clientX-t.c.clientX)>t.D||Math.abs(e.clientY-t.c.clientY)>t.D}function di(t,e){this.l=t,this.c=e,this.b=[],this.i=[],this.a={}}function vi(t){var e=t.b,o=t.i,i=e[0];return 1==e.length?(e.length=0,o.length=0):(e[0]=e.pop(),o[0]=o.pop(),bi(t,0)),e=t.c(i),delete t.a[e],i}function bi(t,e){for(var o=t.b,i=t.i,r=o.length,n=o[e],s=i[e],a=e;e<r>>1;){var p=2*e+1,h=2*e+2,p=h<r&&i[h]<i[p]?h:p;o[e]=o[p],i[e]=i[p],e=p}o[e]=n,i[e]=s,mi(t,a,e)}function mi(t,e,o){var i=t.b;t=t.i;for(var r=i[o],n=t[o];e<o;){var s=o-1>>1;if(!(t[s]>n))break;i[o]=i[s],t[o]=t[s],o=s}i[o]=r,t[o]=n}function wi(t){for(var e=t.l,o=t.b,i=t.i,r=0,n=o.length,s=0;s<n;++s){var a=o[s],p=e(a);1/0==p?delete t.a[t.c(a)]:(i[r]=p,o[r++]=a)}for(o.length=r,i.length=r,e=(t.b.length>>1)-1;0<=e;e--)bi(t,e)}function xi(e,t){di.call(this,function(t){return e.apply(null,t)},function(t){return t[0].bb()}),this.v=t,this.j=0,this.g={}}function Si(t,e,o){for(var i,r,n=0;t.j<e&&n<o&&0<t.b.length;)r=(i=vi(t)[0]).bb(),0!==i.getState()||r in t.g||(t.g[r]=!0,++t.j,++n,i.load())}function Mi(t){if(void 0!==t)return 0}function Pi(t,e){if(void 0!==t)return t+e}function Ai(t,e){return 2<(e=-1===(e=(t=void 0!==e?t.toFixed(e):""+t).indexOf("."))?t.length:e)?t:Array(3-e).join("0")+t}function Ei(t){t=(""+t).split(".");for(var e=["1","3"],o=0;o<Math.max(t.length,e.length);o++){var i=parseInt(t[o]||"0",10),r=parseInt(e[o]||"0",10);if(r<i)return 1;if(i<r)return-1}return 0}function Ti(t,e){return t[0]+=e[0],t[1]+=e[1],t}function ji(t,e){var o=t[0];t=t[1];var i=e[0],r=e[1];e=i[0];var i=i[1],n=r[0],s=n-e,a=(r=r[1])-i;return o=(o=s||a?(s*(o-e)+a*(t-i))/(s*s+a*a||0):0)<=0?(t=e,i):1<=o?(t=n,r):(t=e+o*s,i+o*a),[t,o]}function Ci(t,e,o){e=L(e+180,360)-180;var i=Math.abs(3600*e);o=o||0;var r=Math.pow(10,o),n=Math.floor(i/3600),s=Math.floor((i-3600*n)/60);return 60<=(i=Math.ceil((i-3600*n-60*s)*r)/r)&&(i=0,s+=1),60<=s&&(s=0,n+=1),n+"° "+Ai(s)+"′ "+Ai(i,o)+"″"+(e?" "+t.charAt(e<0?1:0):"")}function Li(t,e,o){return t?e.replace("{x}",t[0].toFixed(o)).replace("{y}",t[1].toFixed(o)):""}function Ri(t,e){for(var o=!0,i=t.length-1;0<=i;--i)if(t[i]!=e[i]){o=!1;break}return o}function Ii(t,e){var o=Math.cos(e);e=Math.sin(e);var i=t[1]*o+t[0]*e;return t[0]=t[0]*o-t[1]*e,t[1]=i,t}function Ni(t,e){t[0]*=e,t[1]*=e}function Fi(t,e){var o=t[0]-e[0];return o*o+(t=t[1]-e[1])*t}function ki(t,e){return Math.sqrt(Fi(t,e))}function Di(t,e){return Fi(t,ji(t,e))}function Oi(t,e){return Li(t,"{x}, {y}",e)}function Ui(){return!0}function Gi(){return!1}function Bi(){je.call(this),this.l=V(),this.v=-1,this.f={},this.o=this.g=0}function Xi(t,e,o,i,r,n){for(var s=n||[],a=0;e<o;e+=i){var p=t[e],h=t[e+1];s[a++]=r[0]*p+r[2]*h+r[4],s[a++]=r[1]*p+r[3]*h+r[5]}return n&&s.length!=a&&(s.length=a),s}function Vi(t,e,o,i,r,n,s){for(var a,p=s||[],h=0;e<o;e+=i)for(p[h++]=t[e]+r,p[h++]=t[e+1]+n,a=e+2;a<e+i;++a)p[h++]=t[a];return s&&p.length!=h&&(p.length=h),p}function Wi(){Bi.call(this),this.ja="XY",this.a=2,this.A=null}function Zi(t){var e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function Ki(t,e,o){t.a=Zi(e),t.ja=e,t.A=o}function zi(t,e,o,i){if(e)o=Zi(e);else{for(e=0;e<i;++e){if(!o.length)return t.ja="XY",void(t.a=2);o=o[0]}var r;2==(o=o.length)?r="XY":3==o?r="XYZ":4==o&&(r="XYZM"),e=r}t.ja=e,t.a=o}function Yi(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(s*a-n*p),n=a,s=p;return r/2}function Hi(t,e,o,i){for(var r=0,n=0,s=o.length;n<s;++n){var a=o[n],r=r+Yi(t,e,a,i);e=a}return r}function qi(t,e,o,i,r,n,s){var a=t[e],p=t[e+1],h=t[o]-a,l=t[o+1]-p;if(h||l)if(1<(n=((r-a)*h+(n-p)*l)/(h*h+l*l)))e=o;else if(0<n){for(r=0;r<i;++r)s[r]=f(t[e+r],t[o+r],n);return void(s.length=i)}for(r=0;r<i;++r)s[r]=t[e+r];s.length=i}function Ji(t,e,o,i,r){var n=t[e],s=t[e+1];for(e+=i;e<o;e+=i){var a=t[e],p=t[e+1];r<(n=y(n,s,a,p))&&(r=n),n=a,s=p}return r}function _i(t,e,o,i,r){for(var n=0,s=o.length;n<s;++n){var a=o[n];r=Ji(t,e,a,i,r),e=a}return r}function $i(t,e,o,i,r,n,s,a,p,h,l){if(e==o)return h;if(!r){var u=y(s,a,t[e],t[e+1]);if(u<h){for(l=0;l<i;++l)p[l]=t[e+l];return p.length=i,u}return h}for(var c=l||[NaN,NaN],f=e+i;f<o;)if(qi(t,f-i,f,i,s,a,c),(u=y(s,a,c[0],c[1]))<h){for(h=u,l=0;l<i;++l)p[l]=c[l];f+=p.length=i}else f+=i*Math.max((Math.sqrt(u)-Math.sqrt(h))/r|0,1);if(n&&(qi(t,o-i,e,i,s,a,c),(u=y(s,a,c[0],c[1]))<h)){for(h=u,l=0;l<i;++l)p[l]=c[l];p.length=i}return h}function Qi(t,e,o,i,r,n,s,a,p,h,l){l=l||[NaN,NaN];for(var u=0,c=o.length;u<c;++u){var f=o[u];h=$i(t,e,f,i,r,n,s,a,p,h,l),e=f}return h}function tr(t,e){for(var o=0,i=0,r=e.length;i<r;++i)t[o++]=e[i];return o}function er(t,e,o,i){for(var r=0,n=o.length;r<n;++r)for(var s=o[r],a=0;a<i;++a)t[e++]=s[a];return e}function or(t,e,o,i,r){r=r||[];for(var n=0,s=0,a=o.length;s<a;++s)e=er(t,e,o[s],i),r[n++]=e;return r.length=n,r}function ir(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0;e<o;e+=i)r[n++]=t.slice(e,e+i);return r.length=n,r}function rr(t,e,o,i,r){r=void 0!==r?r:[];for(var n=0,s=0,a=o.length;s<a;++s){var p=o[s];r[n++]=ir(t,e,p,i,r[n]),e=p}return r.length=n,r}function nr(t,e,o,i,r,n,s){var a=(o-e)/i;if(a<3){for(;e<o;e+=i)n[s++]=t[e],n[s++]=t[e+1];return s}var p=Array(a);p[0]=1,p[a-1]=1,o=[e,o-i];for(var h=0;0<o.length;){for(var l=o.pop(),u=o.pop(),c=0,f=t[u],y=t[u+1],g=t[l],d=t[l+1],v=u+i;v<l;v+=i){var b=S(t[v],t[v+1],f,y,g,d);c<b&&(h=v,c=b)}r<c&&(p[(h-e)/i]=1,u+i<h&&o.push(u,h),h+i<l&&o.push(h,l))}for(v=0;v<a;++v)p[v]&&(n[s++]=t[e+v*i],n[s++]=t[e+v*i+1]);return s}function sr(t,e,o,i,r,n,s,a){for(var p=0,h=o.length;p<h;++p){var l=o[p];t:{var u=t,c=l,f=i,y=r,g=n,d=s;if(e!=c){var v=y*Math.round(u[e]/y),b=y*Math.round(u[e+1]/y);e+=f,g[d++]=v,g[d++]=b;do{var m=y*Math.round(u[e]/y);if(s=y*Math.round(u[e+1]/y),(e+=f)==c){g[d++]=m,g[d++]=s,s=d;break t}}while(m==v&&s==b);for(;e<c;){var w,x,S,M,P=y*Math.round(u[e]/y),A=y*Math.round(u[e+1]/y);e+=f,P==m&&A==s||((w=m-v)*(M=A-b)==(x=s-b)*(S=P-v)&&(w<0&&S<w||w==S||0<w&&w<S)&&(x<0&&M<x||x==M||0<x&&x<M)||(v=g[d++]=m,b=g[d++]=s),m=P,s=A)}g[d++]=m,g[d++]=s}s=d}a.push(s),e=l}return s}function ar(t,e){Wi.call(this),this.c=this.j=-1,this.ma(t,e)}function pr(t,e,o){Ki(t,e,o),t.s()}function hr(t,e){Wi.call(this),this.ma(t,e)}function lr(t,e,o,i,r,n){for(var s=0,a=t[o-i],p=t[o-i+1];e<o;e+=i){var h=t[e],l=t[e+1];p<=n?n<l&&0<(h-a)*(n-p)-(r-a)*(l-p)&&s++:l<=n&&(h-a)*(n-p)-(r-a)*(l-p)<0&&s--,a=h,p=l}return s}function ur(t,e,o,i,r,n){if(!o.length||!lr(t,e,o[0],i,r,n))return!1;var s;for(e=1,s=o.length;e<s;++e)if(lr(t,o[e-1],o[e],i,r,n))return!1;return!0}function cr(t,e,o,i,r,n,s){for(var a=r[n+1],p=[],h=o[0],l=t[h-i],u=t[h-i+1],c=e;c<h;c+=i){var f=t[c],y=t[c+1];(a<=u&&y<=a||u<=a&&a<=y)&&(l=(a-u)/(y-u)*(f-l)+l,p.push(l)),l=f,u=y}for(h=NaN,u=-1/0,p.sort(D),l=p[0],c=1,y=p.length;c<y;++c){var f=p[c],g=Math.abs(f-l);u<g&&(ur(t,e,o,i,l=(l+f)/2,a)&&(h=l,u=g)),l=f}return isNaN(h)&&(h=r[n]),s?(s.push(h,a),s):[h,a]}function fr(t,e,o,i,r,n){for(var s,a=[t[e],t[e+1]],p=[];e+i<o;e+=i){if(p[0]=t[e+i],p[1]=t[e+i+1],s=r.call(n,a,p))return s;a[0]=p[0],a[1]=p[1]}return!1}function yr(t,e,o,i,l){var r=Y(V(),t,e,o,i);return!!nt(l,r)&&(!!(N(l,r)||r[0]>=l[0]&&r[2]<=l[2]||r[1]>=l[1]&&r[3]<=l[3])||fr(t,e,o,i,function(t,e){var o,i,r,n,s,a=!1,p=R(l,t),h=R(l,e);return 1===p||1===h?a=!0:(o=l[0],i=l[1],r=l[2],n=l[3],s=e[0],t=((e=e[1])-t[1])/(s-t[0]),(a=!(a=!(a=2&h&&!(2&p)?o<=(a=s-(e-n)/t)&&a<=r:a)&&4&h&&!(4&p)?i<=(a=e-(s-r)*t)&&a<=n:a)&&8&h&&!(8&p)?o<=(a=s-(e-i)/t)&&a<=r:a)||!(16&h)||16&p||(a=i<=(a=e-(s-o)*t)&&a<=n)),a}))}function gr(t,e,o,i,r){var n=o[0];if(!(yr(t,e,n,i,r)||lr(t,e,n,i,r[0],r[1])||lr(t,e,n,i,r[0],r[3])||lr(t,e,n,i,r[2],r[1])||lr(t,e,n,i,r[2],r[3])))return!1;if(1===o.length)return!0;for(e=1,n=o.length;e<n;++e)if(function(e,o,i,r,t){return!H(t,function(t){return!lr(e,o,i,r,t[0],t[1])})}(t,o[e-1],o[e],i,r))return!1;return!0}function dr(t,e,o,i){for(var r=0,n=t[o-i],s=t[o-i+1];e<o;e+=i)var a=t[e],p=t[e+1],r=r+(a-n)*(p+s),n=a,s=p;return 0<r}function vr(t,e,o,i){var r=0;i=void 0!==i&&i;for(var n=0,s=e.length;n<s;++n){var a=e[n],r=dr(t,r,a,o);if(n){if(i&&!r||!i&&r)return}else if(i&&r||!i&&!r)return;r=a}return 1}function br(t,e,o,i,r){r=void 0!==r&&r;for(var n=0,s=o.length;n<s;++n){var a=o[n],p=dr(t,e,a,i);if(n?r&&!p||!r&&p:r&&p||!r&&!p)for(var p=t,h=a,l=i;e<h-l;){for(var u=0;u<l;++u){var c=p[e+u];p[e+u]=p[h-l+u],p[h-l+u]=c}e+=l,h-=l}e=a}return e}function mr(t,e,o,i){for(var r=0,n=0,s=e.length;n<s;++n)r=br(t,r,e[n],o,i);return r}function wr(t,e){Wi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function xr(t){var e;return t.u!=t.i&&(e=$(t.G()),t.D=cr(t.ec(),0,t.c,t.a,e,0),t.u=t.i),t.D}function Sr(t,e,o,i){var r,n=i||32;for(i=[],r=0;r<n;++r)c(i,t.offset(e,o,2*Math.PI*r/n));return i.push(i[0],i[1]),(t=new wr(null)).ba("XY",i,[i.length]),t}function Mr(t){var e=t[0],o=t[1],i=t[2],e=[e,o,e,t=t[3],i,t,i,o,e,o];return(o=new wr(null)).ba("XY",e,[e.length]),o}function Pr(t,e,o){for(var i=e||32,r=t.qa(),n=new wr(null,e=t.ja),i=r*(i+1),r=Array(i),s=0;s<i;s++)r[s]=0;return n.ba(e,r,[r.length]),Ar(n,t.wa(),t.pd(),o),n}function Ar(t,e,o,i){var r=t.ga(),n=t.ja,s=t.qa(),a=t.Bb(),p=r.length/s-1;i=i||0;for(var h,l,u=0;u<=p;++u)l=u*s,h=i+2*L(u,p)*Math.PI/p,r[l]=e[0]+o*Math.cos(h),r[1+l]=e[1]+o*Math.sin(h);t.ba(n,r,a)}function Er(t){je.call(this),t=ht({},t),this.o=[0,0],this.c=[],this.wf=this.wf.bind(this),this.v=Ot(t.projection),Tr(this,t)}function Tr(t,e){var o={};o.center=void 0!==e.center?e.center:null;var i,r,n,s,a,p,h,l,u,c,f,y=void 0!==e.minZoom?e.minZoom:0,g=void 0!==e.maxZoom?e.maxZoom:28,d=void 0!==e.zoomFactor?e.zoomFactor:2;g=void 0!==e.resolutions?(i=(g=e.resolutions)[0],r=g[g.length-1],l=g,function(t,e,o){if(void 0!==t)return(t=x((t=v(l,t,o))+e,0,l.length-1))!=(e=Math.floor(t))&&e<l.length-1?l[e]/Math.pow(l[e]/l[e+1],t-e):l[e]}):(s=(n=((r=(i=Ot(e.projection)).G())?Math.max(rt(r),tt(r)):360*gt.degrees/i.sc())/256/Math.pow(2,0))/Math.pow(2,28),void 0!==(i=e.maxResolution)?y=0:i=n/Math.pow(d,y),void 0===(r=e.minResolution)&&(r=void 0!==e.maxZoom?void 0!==e.maxResolution?i/Math.pow(d,g):n/Math.pow(d,g):s),g=y+Math.floor(Math.log(i/r)/Math.log(d)),r=i/Math.pow(d,g-y),a=d,p=i,h=g-y,function(t,e,o){if(void 0!==t)return t=Math.max(Math.floor(Math.log(p/t)/Math.log(a)+(-o/2+.5))+e,0),void 0!==h&&(t=Math.min(t,h)),p/Math.pow(a,t)}),t.a=i,t.f=r,t.C=d,t.j=e.resolutions,t.l=y,y=void 0===e.enableRotation||e.enableRotation?void 0===(y=e.constrainRotation)||!0===y?(c=M(5),function(t,e){if(void 0!==t)return Math.abs(t+e)<=c?0:t+e}):!1!==y&&"number"==typeof y?(d=y,u=2*Math.PI/d,function(t,e){if(void 0!==t)return Math.floor((t+e)/u+.5)*u}):Pi:Mi,t.g={center:void 0!==e.extent?(f=e.extent,function(t){if(t)return[x(t[0],f[0],f[2]),x(t[1],f[1],f[3])]}):le,resolution:g,rotation:y},void 0!==e.resolution?o.resolution=e.resolution:void 0!==e.zoom&&(o.resolution=t.constrainResolution(t.a,e.zoom-t.l)),o.rotation=void 0!==e.rotation?e.rotation:0,t.H(o),t.D=e}function jr(t,e){var o=ht({},t.D);return void 0!==o.resolution?o.resolution=t.Pa():o.zoom=t.Hh(),o.center=t.wa(),o.rotation=t.Qa(),ht({},o,e)}function Cr(t,e,o){var i,r=t.wa();return void 0!==r&&(Ii(i=[r[0]-o[0],r[1]-o[1]],e-t.Qa()),Ti(i,o)),i}function Lr(t,e,o){var i,r=t.wa();return t=t.Pa(),i=void 0!==r&&void 0!==t?[o[0]-e*(o[0]-r[0])/t,o[1]-e*(o[1]-r[1])/t]:i}function Rr(t){var e=[100,100];return t='.ol-viewport[data-view="'+G(t)+'"]',(t=document.querySelector(t))&&(t=getComputedStyle(t),e[0]=parseInt(t.width,10),e[1]=parseInt(t.height,10)),e}function Ir(t,e){return void 0!==e?(e[0]=t.o[0],e[1]=t.o[1],e):t.o.slice()}function Nr(t){return t.wa()&&void 0!==t.Pa()}function Fr(t,e,o){t.o[e]+=o,t.s()}function kr(t,e,o){this.f=t,this.c=e,this.g=o,this.b=[],this.a=this.i=0}function Dr(t){t.b.length=0,t.i=0,t.a=0}function Or(t){je.call(this),this.v=null,this.Ha(!0),this.handleEvent=t.handleEvent}function Ur(t,e,o,i){var r,n;void 0!==e&&(r=t.Qa(),n=t.wa(),void 0!==r&&n&&0<i?t.animate({rotation:e,anchor:o,duration:i,easing:eo}):t.rotate(e,o))}function Gr(t,e,o,i){var r,n=t.Pa();e=t.constrainResolution(n,e,0),o&&void 0!==e&&e!==n&&(r=t.wa(),o=Lr(t,e,o),o=t.Ec(o),o=[(e*r[0]-n*o[0])/(e-n),(e*r[1]-n*o[1])/(e-n)]),Br(t,e,o,i)}function Br(t,e,o,i){var r,n;e&&(r=t.Pa(),n=t.wa(),void 0!==r&&n&&e!==r&&i?t.animate({resolution:e,anchor:o,duration:i,easing:eo}):(o&&(o=Lr(t,e,o),t.ob(o)),t.Vc(e)))}function Xr(t){t=t||{},this.a=t.delta||1,Or.call(this,{handleEvent:Vr}),this.g=void 0!==t.duration?t.duration:250}function Vr(t){var e=!1,o=t.originalEvent;return"dblclick"==t.type&&(e=t.coordinate,o=o.shiftKey?-this.a:this.a,Gr(t.map.Z(),o,e,this.g),t.preventDefault(),e=!0),!e}function Wr(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function Zr(t){return!((t=t.originalEvent).button||jo&&Co&&t.ctrlKey)}function Kr(t){return"pointermove"==t.type}function zr(t){return"singleclick"==t.type}function Yr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}function Hr(t){return!(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}function qr(t){return"INPUT"!==(t=t.originalEvent.target.tagName)&&"SELECT"!==t&&"TEXTAREA"!==t}function Jr(t){return O(t.b,56),"mouse"==t.b.pointerType}function _r(t){return(t=t.b).isPrimary&&0===t.button}function $r(t){Or.call(this,{handleEvent:(t=t||{}).handleEvent||tn}),this.yf=t.handleDownEvent||Gi,this.If=t.handleDragEvent||w,this.Jf=t.handleMoveEvent||w,this.sk=t.handleUpEvent||Gi,this.D=!1,this.na={},this.o=[]}function Qr(t){for(var e=t.length,o=0,i=0,r=0;r<e;r++)o+=t[r].clientX,i+=t[r].clientY;return[o/e,i/e]}function tn(t){if(!(t instanceof Ko))return!0;var e=!1,o=t.type;return"pointerdown"!==o&&"pointerdrag"!==o&&"pointerup"!==o||(o=t.b,"pointerup"==t.type?delete this.na[o.pointerId]:("pointerdown"==t.type||o.pointerId in this.na)&&(this.na[o.pointerId]=o),this.o=ut(this.na)),this.D?"pointerdrag"==t.type?this.If(t):"pointerup"==t.type&&(this.D=this.sk(t)&&0<this.o.length):"pointerdown"==t.type?(this.D=t=this.yf(t),e=this.Xc(t)):"pointermove"==t.type&&this.Jf(t),!e}function en(t){$r.call(this,{handleDownEvent:nn,handleDragEvent:on,handleUpEvent:rn}),t=t||{},this.a=t.kinetic,this.g=null,this.u=t.condition||Yr,this.j=!1}function on(t){var e,o,i=this.o,r=Qr(i);i.length==this.l?(this.a&&this.a.b.push(r[0],r[1],Date.now()),this.g&&(Ni(o=[o=this.g[0]-r[0],r[1]-this.g[1]],(e=(t=t.map.Z()).getState()).resolution),Ii(o,e.rotation),Ti(o,e.center),o=t.Ec(o),t.ob(o))):this.a&&Dr(this.a),this.g=r,this.l=i.length}function rn(t){var e,o,i,r=t.map;return t=r.Z(),this.o.length?(this.a&&Dr(this.a),!(this.g=null)):(!this.j&&this.a&&function(t){if(!(t.b.length<6)){var e=Date.now()-t.g,o=t.b.length-3;if(!(t.b[2+o]<e)){for(var i=o-3;0<i&&t.b[i+2]>e;)i-=3;if(!((e=t.b[2+o]-t.b[i+2])<1e3/60)){var r=t.b[o]-t.b[i],o=t.b[1+o]-t.b[i+1];return t.i=Math.atan2(o,r),t.a=Math.sqrt(r*r+o*o)/e,t.a>t.c}}}}(this.a)&&(e=((e=this.a).c-e.a)/e.f,o=this.a.i,i=t.wa(),i=r.Ja(i),r=r.Wa([i[0]-e*Math.cos(o),i[1]-e*Math.sin(o)]),t.animate({center:t.Ec(r),duration:500,easing:eo})),Fr(t,1,-1),!1)}function nn(t){if(0<this.o.length&&this.u(t)){var e=t.map.Z();return this.g=null,this.D||Fr(e,1,1),Ir(e)[0]&&e.ob(t.frameState.viewState.center),this.a&&Dr(this.a),this.j=1<this.o.length,!0}return!1}function sn(t){t=t||{},$r.call(this,{handleDownEvent:hn,handleDragEvent:an,handleUpEvent:pn}),this.g=t.condition||Wr,this.a=void 0,this.j=void 0!==t.duration?t.duration:250}function an(t){var e,o,i;!Jr(t)||(e=(o=t.map).Z()).g.rotation!==Mi&&(o=o.Ob(),t=t.pixel,t=Math.atan2(o[1]/2-t[1],t[0]-o[0]/2),void 0!==this.a&&(o=t-this.a,i=e.Qa(),Ur(e,i-o)),this.a=t)}function pn(t){if(!Jr(t))return!0;Fr(t=t.map.Z(),1,-1);var e=t.Qa(),o=this.j,e=t.constrainRotation(e,0);return Ur(t,e,void 0,o),!1}function hn(t){return!!(Jr(t)&&Zr(t)&&this.g(t))&&(Fr(t.map.Z(),1,1),!(this.a=void 0))}function ln(t){this.Gc=null,this.a=document.createElement("div"),this.a.style.position="absolute",this.a.className="ol-box "+t,this.i=this.c=this.b=null}function un(t){var e=t.c,o=t.i;(t=t.a.style).left=Math.min(e[0],o[0])+"px",t.top=Math.min(e[1],o[1])+"px",t.width=Math.abs(o[0]-e[0])+"px",t.height=Math.abs(o[1]-e[1])+"px"}function cn(t){var e=t.c,o=t.i;(e=[e,[e[0],o[1]],o,[o[0],e[1]]].map(t.b.Wa,t.b))[4]=e[0].slice(),t.Gc?t.Gc.ma([e]):t.Gc=new wr([e])}function fn(t){$r.call(this,{handleDownEvent:vn,handleDragEvent:gn,handleUpEvent:dn}),t=t||{},this.a=new ln(t.className||"ol-dragbox"),this.u=void 0!==t.minArea?t.minArea:64,this.g=null,this.C=t.condition||Ui,this.l=t.boxEndCondition||yn}function yn(t,e,o){return(t=o[0]-e[0])*t+(e=o[1]-e[1])*e>=this.u}function gn(t){var e,o;Jr(t)&&(e=this.a,o=t.pixel,e.c=this.g,e.i=o,cn(e),un(e),this.b(new xn(mn,t.coordinate,t)))}function dn(t){return!Jr(t)||(this.a.setMap(null),this.l(t,this.g,t.pixel)&&(this.j(t),this.b(new xn(wn,t.coordinate,t))),!1)}function vn(t){if(Jr(t)&&Zr(t)&&this.C(t)){this.g=t.pixel,this.a.setMap(t.map);var e=this.a,o=this.g;return e.c=this.g,e.i=o,cn(e),un(e),this.b(new xn(bn,t.coordinate,t)),!0}return!1}e(fi,Ae),(Au=fi.prototype).Jh=function(t){yi(this,t);var e,o=new Ko("pointerup",this.i,t);this.b(o),this.o||t.button||(e=(o=this).c,t=new Ko("click",o.i,e),o.b(t),o.j?(clearTimeout(o.j),o.j=0,t=new Ko("dblclick",o.i,e),o.b(t)):o.j=setTimeout(function(){this.j=0;var t=new Ko("singleclick",this.i,e);this.b(t)}.bind(o),250)),this.S||(this.f.forEach(me),this.f.length=0,this.o=!1,this.c=null,Se(this.a),this.a=null)},Au.Ol=function(t){yi(this,t);var e=new Ko("pointerdown",this.i,t);this.b(e),this.c=t,this.f.length||(this.a=new ri(document),this.f.push(de(this.a,"pointermove",this.Hm,this),de(this.a,"pointerup",this.Jh,this),de(this.g,"pointercancel",this.Jh,this)))},Au.Hm=function(t){var e;gi(this,t)&&(this.o=!0,e=new Ko("pointerdrag",this.i,t,this.o),this.b(e)),t.preventDefault()},Au.Lp=function(t){this.b(new Ko(t.type,this.i,t,!(!this.c||!gi(this,t))))},Au.ka=function(){this.v&&(me(this.v),this.v=null),this.l&&(me(this.l),this.l=null),this.f.forEach(me),this.f.length=0,this.a&&(Se(this.a),this.a=null),this.g&&(Se(this.g),this.g=null),Ae.prototype.ka.call(this)},di.prototype.clear=function(){this.b.length=0,this.i.length=0,lt(this.a)},di.prototype.f=function(t){O(!(this.c(t)in this.a),31);var e=this.l(t);return 1/0!=e&&(this.b.push(t),this.i.push(e),this.a[this.c(t)]=!0,mi(this,0,this.b.length-1),!0)},e(xi,di),xi.prototype.f=function(t){var e=di.prototype.f.call(this,t);return e&&de(t[0],"change",this.o,this),e},xi.prototype.o=function(t){var e=(t=t.target).getState();2!==e&&3!==e&&4!==e&&5!==e||(be(t,"change",this.o,this),(t=t.bb())in this.g&&(delete this.g[t],--this.j),this.v())},e(Bi,je),(Au=Bi.prototype).Ab=function(t,e){return e=e||[NaN,NaN],this.Kb(t[0],t[1],e,1/0),e},Au.sb=function(t){return this.Mc(t[0],t[1])},Au.Mc=Gi,Au.G=function(t){this.v!=this.i&&(this.l=this.se(this.l),this.v=this.i);var e=this.l;return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]):t=e,t},Au.Rb=function(t){return this.Vd(t*t)},Au.tb=function(t,e){return this.Dc(Vt(t,e)),this},e(Wi,Bi),(Au=Wi.prototype).Mc=Gi,Au.se=function(t){return W(this.A,0,this.A.length,this.a,t)},Au.ac=function(){return this.A.slice(0,this.a)},Au.ga=function(){return this.A},Au.bc=function(){return this.A.slice(this.A.length-this.a)},Au.cc=function(){return this.ja},Au.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<=this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];var o=this.hd(t);return o.ga().length<this.A.length?this.f[e]=o:(this.g=t,this)},Au.hd=function(){return this},Au.qa=function(){return this.a},Au.Dc=function(t){this.A&&(t(this.A,this.A,this.a),this.s())},Au.rotate=function(t,e){var o=this.ga();if(o){var i=o.length,r=this.qa(),n=o||[],s=Math.cos(t);t=Math.sin(t);var a=e[0];e=e[1];for(var p=0,h=0;h<i;h+=r){var l=o[h]-a,u=o[h+1]-e;for(n[p++]=a+l*s-u*t,n[p++]=e+l*t+u*s,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Au.scale=function(t,e,o){var i=e;if(void 0===i&&(i=t),a=(a=o)||$(this.G()),o=this.ga()){e=o.length;for(var r=this.qa(),n=o||[],s=a[0],a=a[1],p=0,h=0;h<e;h+=r){var l=o[h]-s,u=o[h+1]-a;for(n[p++]=s+t*l,n[p++]=a+i*u,l=h+2;l<h+r;++l)n[p++]=o[l]}o&&n.length!=p&&(n.length=p),this.s()}},Au.translate=function(t,e){var o=this.ga();o&&(Vi(o,0,o.length,this.qa(),t,e,o),this.s())},e(ar,Wi),(Au=ar.prototype).clone=function(){var t=new ar(null);return pr(t,this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.c!=this.i&&(this.j=Math.sqrt(Ji(this.A,0,this.A.length,this.a,0)),this.c=this.i),$i(this.A,0,this.A.length,this.a,this.j,!0,t,e,o,i))},Au.qn=function(){return Yi(this.A,0,this.A.length,this.a)},Au.X=function(){return ir(this.A,0,this.A.length,this.a)},Au.hd=function(t){var e=[];return e.length=nr(this.A,0,this.A.length,this.a,t,e,0),pr(t=new ar(null),"XY",e),t},Au.U=function(){return"LinearRing"},Au.Xa=function(){},Au.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):pr(this,"XY",null)},e(hr,Wi),(Au=hr.prototype).clone=function(){var t=new hr(null);return t.ba(this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){var r=this.A;if((t=y(t,e,r[0],r[1]))<i){for(i=this.a,e=0;e<i;++e)o[e]=r[e];return o.length=i,t}return i},Au.X=function(){return this.A?this.A.slice():[]},Au.se=function(t){return k(this.A,t)},Au.U=function(){return"Point"},Au.Xa=function(t){return j(t,this.A[0],this.A[1])},Au.ma=function(t,e){t?(zi(this,e,t,0),this.A||(this.A=[]),this.A.length=tr(this.A,t),this.s()):this.ba("XY",null)},Au.ba=function(t,e){Ki(this,t,e),this.s()},e(wr,Wi),(Au=wr.prototype).pk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Au.clone=function(){var t=new wr(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.C!=this.i&&(this.B=Math.sqrt(_i(this.A,0,this.c,this.a,0)),this.C=this.i),Qi(this.A,0,this.c,this.a,this.B,!0,t,e,o,i))},Au.Mc=function(t,e){return ur(this.ec(),0,this.c,this.a,t,e)},Au.tn=function(){return Hi(this.ec(),0,this.c,this.a)},Au.X=function(t){var e;return void 0!==t?br(e=this.ec().slice(),0,this.c,this.a,t):e=this.A,rr(e,0,this.c,this.a)},Au.Bb=function(){return this.c},Au.Tk=function(){return new hr(xr(this))},Au.Zk=function(){return this.c.length},Au.Ch=function(t){if(t<0||this.c.length<=t)return null;var e=new ar(null);return pr(e,this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Au.Sd=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n],p=new ar(null);pr(p,t,e.slice(r,a)),i.push(p),r=a}return i},Au.ec=function(){var t;return this.I!=this.i&&(vr(t=this.A,this.c,this.a)?this.j=t:(this.j=t.slice(),this.j.length=br(this.j,0,this.c,this.a)),this.I=this.i),this.j},Au.hd=function(t){var e=[],o=[];return e.length=sr(this.A,0,this.c,this.a,Math.sqrt(t),e,0,o),(t=new wr(null)).ba("XY",e,o),t},Au.U=function(){return"Polygon"},Au.Xa=function(t){return gr(this.ec(),0,this.c,this.a,t)},Au.ma=function(t,e){t?(zi(this,e,t,2),this.A||(this.A=[]),t=or(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Au.ba=function(t,e,o){Ki(this,t,e),this.c=o,this.s()},e(Er,je),(Au=Er.prototype).animate=function(t){var e,o=Date.now(),i=this.wa().slice(),r=this.Pa(),n=this.Qa(),s=arguments.length;1<s&&"function"==typeof arguments[s-1]&&(e=arguments[s-1],--s);for(var a=[],p=0;p<s;++p){var h=arguments[p],l={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||oo};h.center&&(l.Rg=i,l.Tg=h.center,i=l.Tg),void 0!==h.zoom?(l.tf=r,l.zd=this.constrainResolution(this.a,h.zoom-this.l,0),r=l.zd):h.resolution&&(l.tf=r,l.zd=h.resolution,r=l.zd),void 0!==h.rotation&&(l.Sg=n,l.uf=h.rotation,n=l.uf),l.callback=e,o+=l.duration,a.push(l)}this.c.push(a),Fr(this,0,1),this.wf()},Au.Ic=function(){return 0<Ir(this)[0]},Au.Rk=function(){return 0<Ir(this)[1]},Au.ed=function(){Fr(this,0,-Ir(this)[0]);for(var t=0,e=this.c.length;t<e;++t){var o=this.c[t];o[0].callback&&o[0].callback(!1)}this.c.length=0},Au.wf=function(){if(void 0!==this.u&&(cancelAnimationFrame(this.u),this.u=void 0),this.Ic()){for(var t=Date.now(),e=!1,o=this.c.length-1;0<=o;--o){for(var i=this.c[o],r=!0,n=0,s=i.length;n<s;++n){var a=i[n];if(!a.complete){var p,h,e=t-a.start;if(1<=(e=0<a.duration?e/a.duration:1)?(a.complete=!0,e=1):r=!1,e=a.easing(e),a.Rg&&(p=a.Rg[0],h=a.Rg[1],this.set("center",[p+e*(a.Tg[0]-p),h+e*(a.Tg[1]-h)])),a.tf&&a.zd&&(p=1===e?a.zd:a.tf+e*(a.zd-a.tf),a.anchor&&this.set("center",Lr(this,p,a.anchor)),this.set("resolution",p)),void 0!==a.Sg&&void 0!==a.uf&&(e=1===e?a.uf:a.Sg+e*(a.uf-a.Sg),a.anchor&&this.set("center",Cr(this,e,a.anchor)),this.set("rotation",e)),e=!0,!a.complete)break}}r&&(this.c[o]=null,Fr(this,0,-1),(i=i[0].callback)&&i(!0))}this.c=this.c.filter(Boolean),e&&void 0===this.u&&(this.u=requestAnimationFrame(this.wf))}},Au.Ec=function(t){return this.g.center(t)},Au.constrainResolution=function(t,e,o){return this.g.resolution(t,e||0,o||0)},Au.constrainRotation=function(t,e){return this.g.rotation(t,e||0)},Au.wa=function(){return this.get("center")},Au.dd=function(t){t=t||Rr(this);var e=this.wa();O(e,1);var o=this.Pa();O(void 0!==o,2);var i=this.Qa();return O(void 0!==i,3),Q(e,o,i,t)},Au.Nm=function(){return this.a},Au.Pm=function(){return this.f},Au.Om=function(){return this.Ce(this.f)},Au.eq=function(t){Tr(this,jr(this,{maxZoom:t}))},Au.Qm=function(){return this.Ce(this.a)},Au.fq=function(t){Tr(this,jr(this,{minZoom:t}))},Au.Rm=function(){return this.v},Au.Pa=function(){return this.get("resolution")},Au.Sm=function(){return this.j},Au.ze=function(t,e){return e=e||Rr(this),Math.max(rt(t)/e[0],tt(t)/e[1])},Au.Qa=function(){return this.get("rotation")},Au.getState=function(){var t=this.wa(),e=this.v,o=this.Pa(),i=this.Qa();return{center:t.slice(),projection:void 0!==e?e:null,resolution:o,rotation:i}},Au.Hh=function(){var t,e=this.Pa();return t=void 0!==e?this.Ce(e):t},Au.Ce=function(t){if(t>=this.f&&t<=this.a){var e=this.l||0;if(this.j){if(e+=i=v(this.j,t,1),i==this.j.length-1)return e;var o=this.j[i],i=o/this.j[i+1]}else o=this.a,i=this.C;e+=Math.log(o/t)/Math.log(i)}return e},Au.Qf=function(t,e){var o=(o=(e=e||{}).size)||Rr(this);t instanceof Wi?"Circle"===t.U()?(f=Mr(t=t.G())).rotate(this.Qa(),$(t)):f=t:(O(Array.isArray(t),24),O(!st(t),25),f=Mr(t));var i=e.padding||[0,0,0,0],r=void 0===e.constrainResolution||e.constrainResolution,n=void 0!==e.nearest&&e.nearest,s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.constrainResolution(this.a,e.maxZoom-this.l,0):0,a=f.ga(),p=this.Qa();t=Math.cos(-p);for(var p=Math.sin(-p),h=1/0,l=1/0,u=-1/0,c=-1/0,f=f.qa(),y=0,g=a.length;y<g;y+=f)var d=a[y]*t-a[y+1]*p,v=a[y]*p+a[y+1]*t,h=Math.min(h,d),l=Math.min(l,v),u=Math.max(u,d),c=Math.max(c,v);o=this.ze([h,l,u,c],[o[0]-i[1]-i[3],o[1]-i[0]-i[2]]),o=isNaN(o)?s:Math.max(o,s),r&&(s=this.constrainResolution(o,0,0),o=s=!n&&s<o?this.constrainResolution(s,-1,0):s),p=-p,t=[(s=(h+u)/2+(i[1]-i[3])/2*o)*t-(i=(l+c)/2+(i[0]-i[2])/2*o)*p,i*t+s*p],i=e.callback||w,void 0!==e.duration?this.animate({resolution:o,center:t,duration:e.duration,easing:e.easing},i):(this.Vc(o),this.ob(t),setTimeout(i.bind(void 0,!0),0))},Au.uk=function(t,e,o){var i=this.Qa(),r=Math.cos(-i),i=Math.sin(-i),n=t[0]*r-t[1]*i;t=t[1]*r+t[0]*i;var s=this.Pa(),n=n+(e[0]/2-o[0])*s;t+=(o[1]-e[1]/2)*s,i=-i,this.ob([n*r-t*i,t*r+n*i])},Au.rotate=function(t,e){void 0!==e&&(e=Cr(this,t,e),this.ob(e)),this.Oe(t)},Au.ob=function(t){this.set("center",t),this.Ic()&&this.ed()},Au.Vc=function(t){this.set("resolution",t),this.Ic()&&this.ed()},Au.Oe=function(t){this.set("rotation",t),this.Ic()&&this.ed()},Au.lq=function(t){t=this.constrainResolution(this.a,t-this.l,0),this.Vc(t)},e(Or,je),Or.prototype.c=function(){return this.get("active")},Or.prototype.f=function(){return this.v},Or.prototype.Ha=function(t){this.set("active",t)},Or.prototype.setMap=function(t){this.v=t},e(Xr,Or),e($r,Or),$r.prototype.Xc=function(t){return t},e(en,$r),en.prototype.Xc=Gi,e(sn,$r),sn.prototype.Xc=Gi,e(ln,xe),ln.prototype.ka=function(){this.setMap(null)},ln.prototype.setMap=function(t){var e;this.b&&(this.b.C.removeChild(this.a),(e=this.a.style).left=e.top=e.width=e.height="inherit"),(this.b=t)&&this.b.C.appendChild(this.a)},ln.prototype.V=function(){return this.Gc},e(fn,$r),fn.prototype.V=function(){return this.a.V()},fn.prototype.j=w;var bn="boxstart",mn="boxdrag",wn="boxend";function xn(t,e,o){Me.call(this,t),this.coordinate=e,this.mapBrowserEvent=o}function Sn(t){var e=(t=t||{}).condition||Hr;this.B=void 0!==t.duration?t.duration:200,this.I=void 0!==t.out&&t.out,fn.call(this,{condition:e,className:t.className||"ol-dragzoom"})}function Mn(t){Or.call(this,{handleEvent:Pn}),t=t||{},this.a=function(t){return Yr(t)&&qr(t)},this.g=t.condition||this.a,this.j=void 0!==t.duration?t.duration:100,this.o=void 0!==t.pixelDelta?t.pixelDelta:128}function Pn(t){var e,o,i,r,n=!1;return"keydown"==t.type&&(e=t.originalEvent.keyCode,!this.g(t)||40!=e&&37!=e&&39!=e&&38!=e||(o=(n=t.map.Z()).Pa()*this.o,r=i=0,40==e?r=-o:37==e?i=-o:39==e?i=o:r=o,Ii(o=[i,r],n.Qa()),e=this.j,(i=n.wa())&&(o=n.Ec([i[0]+o[0],i[1]+o[1]]),e?n.animate({duration:e,easing:io,center:o}):n.ob(o)),t.preventDefault(),n=!0)),!n}function An(t){Or.call(this,{handleEvent:En}),t=t||{},this.g=t.condition||qr,this.a=t.delta||1,this.j=void 0!==t.duration?t.duration:100}function En(t){var e,o=!1;return"keydown"!=t.type&&"keypress"!=t.type||(e=t.originalEvent.charCode,!this.g(t)||43!=e&&45!=e||(o=43==e?this.a:-this.a,Gr(e=t.map.Z(),o,void 0,this.j),t.preventDefault(),o=!0)),!o}function Tn(t){Or.call(this,{handleEvent:jn}),t=t||{},this.j=0,this.D=void 0!==t.duration?t.duration:250,this.na=void 0!==t.timeout?t.timeout:80,this.C=void 0===t.useAnchor||t.useAnchor,this.R=t.constrainResolution||!1,this.a=null,this.l=this.o=this.u=this.g=void 0}function jn(t){if("wheel"!==(o=t.type)&&"mousewheel"!==o)return!0;t.preventDefault();var e,o=t.map,i=t.originalEvent;if(this.C&&(this.a=t.coordinate),"wheel"==t.type?(e=i.deltaY,Eo&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=Lo),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)):"mousewheel"==t.type&&(e=-i.wheelDeltaY,To&&(e/=3)),0===e)return!1;if(t=Date.now(),void 0===this.g&&(this.g=t),(!this.o||400<t-this.g)&&(this.o=Math.abs(e)<4?Cn:Ln),this.o!==Cn)return this.j+=e,e=Math.max(this.na-(t-this.g),0),clearTimeout(this.u),this.u=setTimeout(this.I.bind(this,o),e),!1;o=o.Z(),this.l?clearTimeout(this.l):Fr(o,1,1),this.l=setTimeout(this.B.bind(this),400);var r,i=o.Pa()*Math.pow(2,e/300),n=o.f,s=o.a,a=0;return i<n?(i=Math.max(i,n/1.5),a=1):s<i&&(i=Math.min(i,1.5*s),a=-1),this.a&&(r=Lr(o,i,this.a),o.ob(o.Ec(r))),o.Vc(i),!a&&this.R&&o.animate({resolution:o.constrainResolution(i,0<e?-1:1),easing:eo,anchor:this.a,duration:this.D}),0<a?o.animate({resolution:n,easing:eo,anchor:this.a,duration:500}):a<0&&o.animate({resolution:s,easing:eo,anchor:this.a,duration:500}),this.g=t,!1}e(xn,Me),e(Sn,fn),Sn.prototype.j=function(){var t=(r=this.v).Z(),e=r.Ob(),o=this.V().G();if(this.I){for(var i=t.dd(e),o=[r.Ja(J(o)),r.Ja(it(o))],r=I(void 0),n=0,s=o.length;n<s;++n)z(r,o[n]);at(i,1/(o=t.ze(r,e))),o=i}e=t.constrainResolution(t.ze(o,e)),i=$(o),i=t.Ec(i),t.animate({resolution:e,center:i,duration:this.B,easing:eo})},e(Mn,Or),e(An,Or),e(Tn,Or),Tn.prototype.B=function(){this.l=void 0,Fr(this.v.Z(),1,-1)},Tn.prototype.I=function(t){(t=t.Z()).Ic()&&t.ed(),Gr(t,-x(this.j,-1,1),this.a,this.D),this.o=void 0,this.j=0,this.a=null,this.u=this.g=void 0},Tn.prototype.T=function(t){(this.C=t)||(this.a=null)};var Cn="trackpad",Ln="wheel";function Rn(t){$r.call(this,{handleDownEvent:Fn,handleDragEvent:In,handleUpEvent:Nn}),t=t||{},this.g=null,this.j=void 0,this.a=!1,this.l=0,this.C=void 0!==t.threshold?t.threshold:.3,this.u=void 0!==t.duration?t.duration:250}function In(t){var e,o=0,i=this.o[0],r=this.o[1],i=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);void 0!==this.j&&(o=i-this.j,this.l+=o,!this.a&&Math.abs(this.l)>this.C&&(this.a=!0)),this.j=i,(i=(t=t.map).Z()).g.rotation!==Mi&&(r=t.a.getBoundingClientRect(),(e=Qr(this.o))[0]-=r.left,e[1]-=r.top,this.g=t.Wa(e),this.a&&(r=i.Qa(),t.render(),Ur(i,r+o,this.g)))}function Nn(t){var e,o,i;return!(this.o.length<2)||(Fr(t=t.map.Z(),1,-1),this.a&&(i=t.Qa(),e=this.g,o=this.u,i=t.constrainRotation(i,0),Ur(t,i,e,o)),!1)}function Fn(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.j=void 0,this.a=!1,this.l=0,this.D||Fr(t.Z(),1,1),!0)}function kn(t){$r.call(this,{handleDownEvent:Un,handleDragEvent:Dn,handleUpEvent:On}),t=t||{},this.l=t.constrainResolution||!1,this.g=null,this.u=void 0!==t.duration?t.duration:400,this.a=void 0,this.j=1}function Dn(t){var e=1,o=this.o[0],i=this.o[1],r=o.clientX-i.clientX,o=o.clientY-i.clientY,r=Math.sqrt(r*r+o*o);void 0!==this.a&&(e=this.a/r),this.a=r;var i=(r=(t=t.map).Z()).Pa(),n=r.a,s=r.f;n<(o=i*e)?(e=n/i,o=n):o<s&&(e=s/i,o=s),1!=e&&(this.j=e),e=t.a.getBoundingClientRect(),(i=Qr(this.o))[0]-=e.left,i[1]-=e.top,this.g=t.Wa(i),t.render(),Br(r,o,this.g)}function On(t){if(this.o.length<2){Fr(t=t.map.Z(),1,-1);var e,o,i=t.Pa();return(this.l||i<t.f||i>t.a)&&(e=this.g,o=this.u,i=t.constrainResolution(i,0,this.j-1),Br(t,i,e,o)),!1}return!0}function Un(t){return 2<=this.o.length&&(t=t.map,this.g=null,this.a=void 0,this.j=1,this.D||Fr(t.Z(),1,1),!0)}function Gn(t){t=t||{};var e=new Ne,o=new kr(-.005,.05,100);return void 0!==t.altShiftDragRotate&&!t.altShiftDragRotate||e.push(new sn),void 0!==t.doubleClickZoom&&!t.doubleClickZoom||e.push(new Xr({delta:t.zoomDelta,duration:t.zoomDuration})),void 0!==t.dragPan&&!t.dragPan||e.push(new en({kinetic:o})),void 0!==t.pinchRotate&&!t.pinchRotate||e.push(new Rn),void 0!==t.pinchZoom&&!t.pinchZoom||e.push(new kn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.keyboard&&!t.keyboard||(e.push(new Mn),e.push(new An({delta:t.zoomDelta,duration:t.zoomDuration}))),void 0!==t.mouseWheelZoom&&!t.mouseWheelZoom||e.push(new Tn({constrainResolution:t.constrainResolution,duration:t.zoomDuration})),void 0!==t.shiftDragZoom&&!t.shiftDragZoom||e.push(new Sn({duration:t.zoomDuration})),e}function Bn(t){je.call(this);var e=ht({},t);e.opacity=void 0!==t.opacity?t.opacity:1,e.visible=void 0===t.visible||t.visible,e.zIndex=void 0!==t.zIndex?t.zIndex:0,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,this.H(e),this.a={layer:this,Je:!0}}function Xn(t){return t.a.opacity=x(t.hc(),0,1),t.a.yj=t.$f(),t.a.visible=t.Mb(),t.a.extent=t.G(),t.a.zIndex=t.Ba(),t.a.maxResolution=t.fc(),t.a.minResolution=Math.max(t.gc(),0),t.a}function Vn(t){var e=t||{};delete(t=ht({},e)).layers,e=e.layers,Bn.call(this,t),this.f=[],this.c={},de(this,Le(Wn),this.Hl,this),e?Array.isArray(e)?e=new Ne(e.slice(),{unique:!0}):O(e instanceof Ne,43):e=new Ne(void 0,{unique:!0}),this.xi(e)}e(Rn,$r),Rn.prototype.Xc=Gi,e(kn,$r),kn.prototype.Xc=Gi,e(Bn,je),(Au=Bn.prototype).G=function(){return this.get("extent")},Au.fc=function(){return this.get("maxResolution")},Au.gc=function(){return this.get("minResolution")},Au.hc=function(){return this.get("opacity")},Au.Mb=function(){return this.get("visible")},Au.Ba=function(){return this.get("zIndex")},Au.vc=function(t){this.set("extent",t)},Au.Ac=function(t){this.set("maxResolution",t)},Au.Bc=function(t){this.set("minResolution",t)},Au.wc=function(t){this.set("opacity",t)},Au.xc=function(t){this.set("visible",t)},Au.Vb=function(t){this.set("zIndex",t)},e(Vn,Bn),(Au=Vn.prototype).Fd=function(){},Au.Fe=function(){this.Mb()&&this.s()},Au.Hl=function(){this.f.forEach(me),this.f.length=0;var t=this.qd();for(e in this.f.push(de(t,"add",this.Gl,this),de(t,"remove",this.Il,this)),this.c)this.c[e].forEach(me);lt(this.c);for(var e=0,o=(t=t.a).length;e<o;e++){var i=t[e];this.c[G(i).toString()]=[de(i,"propertychange",this.Fe,this),de(i,"change",this.Fe,this)]}this.s()},Au.Gl=function(t){var e=G(t=t.element).toString();this.c[e]=[de(t,"propertychange",this.Fe,this),de(t,"change",this.Fe,this)],this.s()},Au.Il=function(t){t=G(t.element).toString(),this.c[t].forEach(me),delete this.c[t],this.s()},Au.qd=function(){return this.get(Wn)},Au.xi=function(t){this.set(Wn,t)},Au.Yf=function(t){var e,o=void 0!==t?t:[],i=o.length;for(this.qd().forEach(function(t){t.Yf(o)}),t=Xn(this),e=o.length;i<e;i++){var r=o[i];r.opacity*=t.opacity,r.visible=r.visible&&t.visible,r.maxResolution=Math.min(r.maxResolution,t.maxResolution),r.minResolution=Math.max(r.minResolution,t.minResolution),void 0!==t.extent&&(r.extent=void 0!==r.extent?et(r.extent,t.extent):t.extent)}return o},Au.$f=function(){return"ready"};var Wn="layers";function Zn(t){var e=ht({},t);delete e.source,Bn.call(this,e),this.v=this.l=this.o=null,t.map&&this.setMap(t.map),de(this,Le("source"),this.Ul,this),this.Wc(t.source||null)}function Kn(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}function zn(){this.b={},this.a=0}e(Zn,Bn),(Au=Zn.prototype).Yf=function(t){return(t=t||[]).push(Xn(this)),t},Au.ha=function(){return this.get("source")||null},Au.$f=function(){var t=this.ha();return t?t.getState():"undefined"},Au.Tn=function(){this.s()},Au.Ul=function(){this.v&&(me(this.v),this.v=null);var t=this.ha();t&&(this.v=de(t,"change",this.Tn,this)),this.s()},Au.setMap=function(t){this.o&&(me(this.o),this.o=null),t||this.s(),this.l&&(me(this.l),this.l=null),t&&(this.o=de(t,"precompose",function(t){var e=Xn(this);e.Je=!1,e.zIndex=1/0,t.frameState.layerStatesArray.push(e),t.frameState.layerStates[G(this)]=e},this),this.l=de(this,"change",t.render,t),this.s())},Au.Wc=function(t){this.set("source",t)},zn.prototype.clear=function(){this.b={},this.a=0},zn.prototype.get=function(t,e,o){return(t=e+":"+t+":"+(o?Xe(o):"null"))in this.b?this.b[t]:null},zn.prototype.set=function(t,e,o,i){this.b[e+":"+t+":"+(o?Xe(o):"null")]=i,++this.a};var Yn=new zn,Hn=Array(6);function qn(){return[1,0,0,1,0,0]}function Jn(t){return $n(t,1,0,0,1,0,0)}function _n(t,e){var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5],p=e[0],h=e[1],l=e[2],u=e[3],c=e[4];return e=e[5],t[0]=o*p+r*h,t[1]=i*p+n*h,t[2]=o*l+r*u,t[3]=i*l+n*u,t[4]=o*c+r*e+s,t[5]=i*c+n*e+a,t}function $n(t,e,o,i,r,n,s){return t[0]=e,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=s,t}function Qn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ts(t,e){var o=e[0],i=e[1];return e[0]=t[0]*o+t[2]*i+t[4],e[1]=t[1]*o+t[3]*i+t[5],e}function es(t,e){var o=Math.cos(e);e=Math.sin(e),_n(t,$n(Hn,o,e,-e,o,0,0))}function os(t,e,o){return _n(t,$n(Hn,e,0,0,o,0,0))}function is(t,e,o){_n(t,$n(Hn,1,0,0,1,e,o))}function rs(t,e,o,i,r,n,s,a){var p=Math.sin(n);return n=Math.cos(n),t[0]=i*n,t[1]=r*p,t[2]=-i*p,t[3]=r*n,t[4]=s*i*n-a*i*p+e,t[5]=s*r*p+a*r*n+o,t}function ns(t){var e=t[0]*t[3]-t[1]*t[2];O(!!e,32);var o=t[0],i=t[1],r=t[2],n=t[3],s=t[4],a=t[5];return t[0]=n/e,t[1]=-i/e,t[2]=-r/e,t[3]=o/e,t[4]=(r*a-n*s)/e,t[5]=-(o*a-i*s)/e,t}function ss(t,e){this.o=e,this.c={},this.v={}}function as(t){var e=t.viewState,o=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;rs(o,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),ns(Qn(i,o))}function ps(){if(32<Yn.a){var t,e=0;for(t in Yn.b){var o=Yn.b[t];3&e++||Ee(o)||(delete Yn.b[t],--Yn.a)}}}function hs(t,e){var o=G(e).toString();return o in t.c?t.c[o]:(e=e.Fd(t),t.c[o]=e,t.v[o]=de(e,"change",t.Fl,t),e)}function ls(t,e){for(var o in t.c)if(!(o in e.layerStates)){e.postRenderFunctions.push(t.Rp.bind(t));break}}function us(t,e){return t.zIndex-e.zIndex}function cs(t,e,o,i,r){Me.call(this,t),this.vectorContext=e,this.frameState=o,this.context=i,this.glContext=r}e(ss,xe),(Au=ss.prototype).ka=function(){for(var t in this.c)Se(this.c[t])},Au.Ea=function(t,r,e,n,s,o,i){function a(t,e){var o=G(t).toString(),i=r.layerStates[G(e)].Je;if(!(o in r.skippedFeatureUids)||i)return n.call(s,t,i?e:null)}var p,h,l=(c=r.viewState).resolution,u=c.projection,c=t;for(u.i&&(h=rt(u=u.G()),((y=t[0])<u[0]||y>u[2])&&(c=[y+h*Math.ceil((u[0]-y)/h),t[1]])),h=(u=r.layerStatesArray).length-1;0<=h;--h){var f=u[h],y=f.layer;if(Kn(f,l)&&o.call(i,y)&&(f=hs(this,y),p=y.ha()?f.Ea(y.ha().u?c:t,r,e,a,s):p))return p}},Au.Ei=function(t,e,o,i,r){return void 0!==this.Ea(t,e,o,Ui,this,i,r)},Au.Fl=function(){this.o.render()},Au.Jg=w,Au.Rp=function(t,e){for(var o in this.c)e&&o in e.layerStates||(t=o,o=this.c[t],delete this.c[t],me(this.v[t]),delete this.v[t],Se(o))},e(cs,Me);var fs=[0,0,0,1],ys=[],gs=[0,0,0,1];function ds(t,e,o,i){e&&(t.translate(o,i),t.rotate(e),t.translate(-o,-i))}function vs(){}function bs(t,e,o,i,r){this.i=t,this.u=e,this.c=o,this.S=i,this.Yb=r,this.M=this.b=this.a=this.Ua=this.R=this.I=null,this.na=this.T=this.l=this.B=this.C=this.D=0,this.fa=!1,this.f=this.fb=0,this.pa=!1,this.oa=0,this.Ia="",this.va=this.Jb=0,this.Sa=!1,this.j=this.$a=0,this.ra=this.o=this.g=null,this.v=[],this.xb=qn()}function ms(t,e,o){if(t.M){e=Xi(e,0,o,2,t.S,t.v),o=t.i;var i=t.xb,r=o.globalAlpha;1!=t.l&&(o.globalAlpha=r*t.l);var n=t.fb;t.fa&&(n+=t.Yb);for(var s=0,a=e.length;s<a;s+=2){var p,h,l=e[s]-t.D,u=e[s+1]-t.C;t.pa&&(l=Math.round(l),u=Math.round(u)),!n&&1==t.f||(rs(i,p=l+t.D,h=u+t.C,t.f,t.f,n,-p,-h),o.setTransform.apply(o,i)),o.drawImage(t.M,t.T,t.na,t.oa,t.B,l,u,t.oa,t.B)}!n&&1==t.f||o.setTransform(1,0,0,1,0,0),1!=t.l&&(o.globalAlpha=r)}}function ws(t,e,o,i){var r=0;if(t.ra&&""!==t.Ia){t.g&&Ms(t,t.g),t.o&&Ps(t,t.o);var n=t.ra,s=t.i;for((p=t.Ua)?(p.font!=n.font&&(p.font=s.font=n.font),p.textAlign!=n.textAlign&&(p.textAlign=s.textAlign=n.textAlign),p.textBaseline!=n.textBaseline&&(p.textBaseline=s.textBaseline=n.textBaseline)):(s.font=n.font,s.textAlign=n.textAlign,s.textBaseline=n.textBaseline,t.Ua={font:n.font,textAlign:n.textAlign,textBaseline:n.textBaseline}),e=Xi(e,r,o,i,t.S,t.v),n=t.i,s=t.$a,t.Sa&&(s+=t.Yb);r<o;r+=i){var a,p=e[r]+t.Jb,h=e[r+1]+t.va;!s&&1==t.j||(a=rs(t.xb,p,h,t.j,t.j,s,-p,-h),n.setTransform.apply(n,a)),t.o&&n.strokeText(t.Ia,p,h),t.g&&n.fillText(t.Ia,p,h)}!s&&1==t.j||n.setTransform(1,0,0,1,0,0)}}function xs(t,e,o,i,r,n){var s=t.i;for(t=Xi(e,o,i,r,t.S,t.v),s.moveTo(t[0],t[1]),e=t.length,n&&(e-=2),o=2;o<e;o+=2)s.lineTo(t[o],t[o+1]);return n&&s.closePath(),i}function Ss(t,e,o,i,r){for(var n=0,s=i.length;n<s;++n)o=xs(t,e,o,i[n],r,!0);return o}function Ms(t,e){var o=t.i,i=t.I;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=o.fillStyle=e.fillStyle):(o.fillStyle=e.fillStyle,t.I={fillStyle:e.fillStyle})}function Ps(t,e){var o=t.i,i=t.R;i?(i.lineCap!=e.lineCap&&(i.lineCap=o.lineCap=e.lineCap),Ro&&!U(i.lineDash,e.lineDash)&&o.setLineDash(i.lineDash=e.lineDash),i.lineJoin!=e.lineJoin&&(i.lineJoin=o.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=o.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=o.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=o.strokeStyle=e.strokeStyle)):(o.lineCap=e.lineCap,Ro&&o.setLineDash(e.lineDash),o.lineJoin=e.lineJoin,o.lineWidth=e.lineWidth,o.miterLimit=e.miterLimit,o.strokeStyle=e.strokeStyle,t.R={lineCap:e.lineCap,lineDash:e.lineDash,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}function As(t,e){ss.call(this,0,e),this.i=Ye(),this.b=this.i.canvas,this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.a=!0,this.f=qn()}function Es(t,e,o){var i,r,n,s,a,p=t.o,h=t.i;Ee(p,e)&&(i=o.extent,r=o.pixelRatio,n=o.viewState.rotation,s=o.viewState,a=o.pixelRatio/s.resolution,t=rs(t.f,t.b.width/2,t.b.height/2,a,-a,-s.rotation,-s.center[0],-s.center[1]),p.b(new cs(e,new bs(h,r,i,t,n),o,h,null)))}(Au=vs.prototype).zb=function(){},Au.rd=function(){},Au.Zb=function(){},Au.te=function(){},Au.ue=function(){},Au.mc=function(){},Au.nc=function(){},Au.oc=function(){},Au.pc=function(){},Au.qc=function(){},Au.rc=function(){},Au.yc=function(){},Au.Ma=function(){},Au.Ub=function(){},Au.Cb=function(){},e(bs,vs),(Au=bs.prototype).Zb=function(t){var e,o,i;nt(this.c,t.G())&&((this.a||this.b)&&(this.a&&Ms(this,this.a),this.b&&Ps(this,this.b),e=this.S,o=this.v,o=(e=(i=t.ga())?Xi(i,0,i.length,t.qa(),e,o):null)[2]-e[0],i=e[3]-e[1],o=Math.sqrt(o*o+i*i),(i=this.i).beginPath(),i.arc(e[0],e[1],o,0,2*Math.PI),this.a&&i.fill(),this.b&&i.stroke()),""!==this.Ia&&ws(this,t.wa(),2,2))},Au.rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y()),this.Cb(t.Na())},Au.zb=function(t){switch(t.U()){case"Point":this.qc(t);break;case"LineString":this.mc(t);break;case"Polygon":this.rc(t);break;case"MultiPoint":this.oc(t);break;case"MultiLineString":this.nc(t);break;case"MultiPolygon":this.pc(t);break;case"GeometryCollection":this.ue(t);break;case"Circle":this.Zb(t)}},Au.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.c,t.G())&&(this.rd(e),this.zb(t))},Au.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Au.qc=function(t){var e=t.ga();t=t.qa(),this.M&&ms(this,e,e.length),""!==this.Ia&&ws(this,e,e.length,t)},Au.oc=function(t){var e=t.ga();t=t.qa(),this.M&&ms(this,e,e.length),""!==this.Ia&&ws(this,e,e.length,t)},Au.mc=function(t){var e,o;nt(this.c,t.G())&&(this.b&&(Ps(this,this.b),e=this.i,o=t.ga(),e.beginPath(),xs(this,o,0,o.length,t.qa(),!1),e.stroke()),""!==this.Ia&&ws(this,t=ul(t),2,2))},Au.nc=function(t){var e=t.G();if(nt(this.c,e)){if(this.b){Ps(this,this.b);var e=this.i,o=t.ga(),i=0,r=t.Bb(),n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=xs(this,o,i,r[s],n,!1);e.stroke()}""!==this.Ia&&ws(this,t=fl(t),t.length,2)}},Au.rc=function(t){var e;nt(this.c,t.G())&&((this.b||this.a)&&(this.a&&Ms(this,this.a),this.b&&Ps(this,this.b),(e=this.i).beginPath(),Ss(this,t.ec(),0,t.Bb(),t.qa()),this.a&&e.fill(),this.b&&e.stroke()),""!==this.Ia&&ws(this,t=xr(t),2,2))},Au.pc=function(t){if(nt(this.c,t.G())){if(this.b||this.a){this.a&&Ms(this,this.a),this.b&&Ps(this,this.b);var e=this.i,o=bl(t),i=0,r=t.c,n=t.qa();e.beginPath();for(var s=0,a=r.length;s<a;++s)i=Ss(this,o,i,r[s],n);this.a&&e.fill(),this.b&&e.stroke()}""!==this.Ia&&ws(this,t=vl(t),t.length,2)}},Au.Ma=function(t,e){var o,i,r,n,s;t?(t=t.b,this.a={fillStyle:ze(t||fs)}):this.a=null,e?(t=e.a,o=e.f,i=e.i,r=e.g,n=e.j,s=e.c,e=e.o,this.b={lineCap:void 0!==o?o:"round",lineDash:i||ys,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:this.u*(void 0!==s?s:1),miterLimit:void 0!==e?e:10,strokeStyle:ze(t||gs)}):this.b=null},Au.Ub=function(t){var e,o,i,r;t?(e=t.Hc(),o=t.Y(1),i=t.Oc(),r=t.ic(),this.D=e[0],this.C=e[1],this.B=r[1],this.M=o,this.l=t.f,this.T=i[0],this.na=i[1],this.fa=t.l,this.fb=t.g,this.f=t.a,this.pa=t.v,this.oa=r[0]):this.M=null},Au.Cb=function(t){var e,o,i,r,n,s,a,p;t?((e=t.Fa())?(e=e.b,this.g={fillStyle:ze(e||fs)}):this.g=null,(a=t.Ga())?(e=a.a,o=a.f,i=a.i,r=a.g,n=a.j,s=a.c,a=a.o,this.o={lineCap:void 0!==o?o:"round",lineDash:i||ys,lineDashOffset:r||0,lineJoin:void 0!==n?n:"round",lineWidth:void 0!==s?s:1,miterLimit:void 0!==a?a:10,strokeStyle:ze(e||gs)}):this.o=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,t=t.j,this.ra={font:void 0!==e?e:"10px sans-serif",textAlign:void 0!==p?p:"center",textBaseline:void 0!==t?t:"middle"},this.Ia=void 0!==a?a:"",this.Jb=void 0!==o?this.u*o:0,this.va=void 0!==i?this.u*i:0,this.Sa=void 0!==r&&r,this.$a=void 0!==n?n:0,this.j=this.u*(void 0!==s?s:1)):this.Ia=""},e(As,ss),As.prototype.U=function(){return"canvas"},As.prototype.Jg=function(t){if(t){var e=this.i,o=t.pixelRatio,i=Math.round(t.size[0]*o),r=Math.round(t.size[1]*o);this.b.width!=i||this.b.height!=r?(this.b.width=i,this.b.height=r):e.clearRect(0,0,i,r),o=t.viewState.rotation,as(t),Es(this,"precompose",t);var n=t.layerStatesArray;h(n),o&&(e.save(),ds(e,o,i/2,r/2));for(var i=t.viewState.resolution,r=0,s=n.length;r<s;++r){var a=n[r],p=hs(this,p=a.layer);Kn(a,i)&&"ready"==a.yj&&p.sd(t,a)&&p.S(t,a,e)}o&&e.restore(),Es(this,"postcompose",t),this.a||(this.b.style.display="",this.a=!0),ls(this,t),t.postRenderFunctions.push(ps)}else this.a&&(this.b.style.display="none",this.a=!1)},As.prototype.Di=function(t,e,o,i,r,n){var s=e.viewState.resolution,a=e.layerStatesArray,p=a.length;for(t=ts(e.pixelToCoordinateTransform,t.slice()),--p;0<=p;--p){var h=a[p],l=h.layer;if(Kn(h,s)&&r.call(n,l)&&(h=hs(this,l).u(t,e,o,i)))return h}};var Ts=["Polygon","Circle","LineString","Image","Text"];function js(){}function Cs(t){this.b=t}function Ls(t){this.b=t}function Rs(t){this.b=t}function Is(){this.b="precision mediump float;varying vec2 a;varying vec2 b;varying float c;varying float d;uniform float m;uniform vec4 n;uniform vec4 o;uniform vec2 p;void main(void){vec2 windowCenter=vec2((a.x+1.0)/2.0*p.x*d,(a.y+1.0)/2.0*p.y*d);vec2 windowOffset=vec2((b.x+1.0)/2.0*p.x*d,(b.y+1.0)/2.0*p.y*d);float radius=length(windowCenter-windowOffset);float dist=length(windowCenter-gl_FragCoord.xy);if(dist>radius+c){if(o.a==0.0){gl_FragColor=n;}else{gl_FragColor=o;}gl_FragColor.a=gl_FragColor.a-(dist-(radius+c));}else if(n.a==0.0){gl_FragColor=o;if(dist<radius-c){gl_FragColor.a=gl_FragColor.a-(radius-c-dist);}} else{gl_FragColor=n;float strokeDist=radius-c;float antialias=2.0*d;if(dist>strokeDist){gl_FragColor=o;}else if(dist>=strokeDist-antialias){float step=smoothstep(strokeDist-antialias,strokeDist,dist);gl_FragColor=mix(n,o,step);}} gl_FragColor.a=gl_FragColor.a*m;if(gl_FragColor.a<=0.0){discard;}}"}e(Ls,Cs),Ls.prototype.U=function(){return 35632},e(Rs,Cs),Rs.prototype.U=function(){return 35633},e(Is,Ls);var Ns=new Is;function Fs(){this.b="varying vec2 a;varying vec2 b;varying float c;varying float d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;void main(void){mat4 offsetMatrix=i*j;a=vec4(h*vec4(e,0.0,1.0)).xy;d=l;float lineWidth=k*l;c=lineWidth/2.0;if(lineWidth==0.0){lineWidth=2.0*l;}vec2 offset;float radius=g+3.0*l;if(f==0.0){offset=vec2(-1.0,1.0);}else if(f==1.0){offset=vec2(-1.0,-1.0);}else if(f==2.0){offset=vec2(1.0,-1.0);}else{offset=vec2(1.0,1.0);}gl_Position=h*vec4(e+offset*radius,0.0,1.0)+offsetMatrix*vec4(offset*lineWidth,0.0,0.0);b=vec4(h*vec4(e.x+g,e.y,0.0,1.0)).xy;if(distance(a,b)>20000.0){gl_Position=vec4(a,0.0,1.0);}}"}e(Fs,Rs);var ks=new Fs;function Ds(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"l"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"p"),this.R=t.getUniformLocation(e,"o"),this.j=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e"),this.S=t.getAttribLocation(e,"g")}function Os(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Us(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function Gs(t,e){this.origin=$(e),this.xb=qn(),this.Sa=qn(),this.$a=qn(),this.Jb=Os(),this.b=[],this.o=null,this.i=[],this.f=[],this.a=[],this.l=null,this.g=void 0}function Bs(t,e,o,i){t.drawElements(4,i-o,e.g?5125:5123,o*(e.g?4:2))}e(Gs,vs),Gs.prototype.La=function(t,e,o,i,r,n,s,a,p,h,l){var u,c,f,y,g,d,v,b,m=t.b;this.g&&(u=m.isEnabled(m.STENCIL_TEST),c=m.getParameter(m.STENCIL_FUNC),f=m.getParameter(m.STENCIL_VALUE_MASK),y=m.getParameter(m.STENCIL_REF),g=m.getParameter(m.STENCIL_WRITEMASK),d=m.getParameter(m.STENCIL_FAIL),v=m.getParameter(m.STENCIL_PASS_DEPTH_PASS),b=m.getParameter(m.STENCIL_PASS_DEPTH_FAIL),m.enable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilMask(255),m.stencilFunc(m.ALWAYS,1,255),m.stencilOp(m.KEEP,m.KEEP,m.REPLACE),this.g.La(t,e,o,i,r,n,s,a,p,h,l),m.stencilMask(0),m.stencilFunc(m.NOTEQUAL,1,255)),oa(t,34962,this.l),oa(t,34963,this.o),n=this.rf(m,t,r,n);var w,x=Jn(this.xb);return os(x,2/(o*r[0]),2/(o*r[1])),es(x,-i),is(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1])),os(e=Jn(this.$a),2/r[0],2/r[1]),r=Jn(this.Sa),i&&es(r,-i),m.uniformMatrix4fv(n.i,!1,Us(this.Jb,x)),m.uniformMatrix4fv(n.f,!1,Us(this.Jb,e)),m.uniformMatrix4fv(n.c,!1,Us(this.Jb,r)),m.uniform1f(n.a,s),p?w=t=h?this.ve(m,t,a,p,l):(m.clear(m.COLOR_BUFFER_BIT|m.DEPTH_BUFFER_BIT),this.Od(m,t,a,!0),(t=p(null))?t:void 0):this.Od(m,t,a,!1),this.sf(m,n),this.g&&(u||m.disable(m.STENCIL_TEST),m.clear(m.STENCIL_BUFFER_BIT),m.stencilFunc(c,y,f),m.stencilMask(g),m.stencilOp(d,b,v)),w};var Xs=[0,0,0,1],Vs=[],Ws=[0,0,0,1];function Zs(t,e,o,i,r,n){return(t=(o-t)*(n-e)-(r-t)*(i-e))<=Ks&&-Ks<=t?void 0:0<t}var Ks=Number.EPSILON||2220446049250313e-31;function zs(t){this.b=void 0!==t?t:[],this.a=Ys}var Ys=35044;function Hs(t,e){Gs.call(this,0,e),this.v=null,this.j=[],this.u=[],this.S=0,this.c={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,s:!1}}function qs(t,e,o,i){e.uniform4fv(t.v.R,o),e.uniform1f(t.v.oa,i)}function Js(){this.b="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Hs,Gs),(Au=Hs.prototype).Zb=function(t,e){var o=t.pd(),i=t.qa();if(o){this.i.push(this.b.length),this.f.push(e),this.c.s&&(this.u.push(this.b.length),this.c.s=!1),this.S=o,t=Vi(t=t.ga(),0,2,i,-this.origin[0],-this.origin[1]),e=this.a.length;for(var o=this.b.length,r=e/4,n=0;n<2;n+=i)this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=0,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=1,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=2,this.a[e++]=this.S,this.a[e++]=t[n],this.a[e++]=t[n+1],this.a[e++]=3,this.a[e++]=this.S,this.b[o++]=r,this.b[o++]=r+1,this.b[o++]=r+2,this.b[o++]=r+2,this.b[o++]=r+3,this.b[o++]=r,r+=4}else this.c.s&&(this.j.pop(),this.j.length&&(i=this.j[this.j.length-1],this.c.fillColor=i[0],this.c.strokeColor=i[1],this.c.lineWidth=i[2],this.c.s=!1))},Au.Db=function(){this.l=new zs(this.a),this.o=new zs(this.b),this.i.push(this.b.length),!this.u.length&&0<this.j.length&&(this.j=[]),this.b=this.a=null},Au.Eb=function(t){var e=this.l,o=this.o;return function(){ia(t,e),ia(t,o)}},Au.rf=function(t,e,o,i){var r,n=sa(e,Ns,ks);return this.v?r=this.v:this.v=r=new Ds(t,n),e.Qc(n),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,16,0),t.enableVertexAttribArray(r.j),t.vertexAttribPointer(r.j,1,5126,!1,16,8),t.enableVertexAttribArray(r.S),t.vertexAttribPointer(r.S,1,5126,!1,16,12),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Au.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.j),t.disableVertexAttribArray(e.S)},Au.Od=function(t,e,o){if(ct(o)){var i=this.i[this.i.length-1];for(o=this.u.length-1;0<=o;--o){var r=this.u[o],n=this.j[o];t.uniform4fv(this.v.B,n[0]),qs(this,t,n[1],n[2]),Bs(t,e,r,i),i=r}}else for(var s=this.i.length-2,n=i=this.i[s+1],r=this.u.length-1;0<=r;--r){var a=this.j[r];for(t.uniform4fv(this.v.B,a[0]),qs(this,t,a[1],a[2]),a=this.u[r];0<=s&&this.i[s]>=a;){var p=this.i[s];o[G(this.f[s]).toString()]&&(i!==n&&Bs(t,e,i,n),n=p),s--,i=p}i!==n&&Bs(t,e,i,n),i=n=a}},Au.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.u.length-1;0<=p;--p){var h=this.j[p];for(t.uniform4fv(this.v.B,h[0]),qs(this,t,h[1],h[2]),n=this.u[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Au.Ma=function(t,e){var o;e=e?(o=e.i,this.c.lineDash=o||Vs,o=e.g,this.c.lineDashOffset=o||0,o=!((o=e.a)instanceof CanvasGradient||o instanceof CanvasPattern)&&Be(o).map(function(t,e){return 3!=e?t/255:t})||Ws,void 0!==(e=e.c)?e:1):(o=[0,0,0,0],0),t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs,this.c.strokeColor&&U(this.c.strokeColor,o)&&this.c.fillColor&&U(this.c.fillColor,t)&&this.c.lineWidth===e||(this.c.s=!0,this.c.fillColor=t,this.c.strokeColor=o,this.c.lineWidth=e,this.j.push([t,o,e]))},e(Js,Ls);var _s=new Js;function $s(){this.b="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.0,0.0);gl_Position=h*vec4(c,0.0,1.0)+offsets;a=d;b=f;}"}e($s,Rs);var Qs=new $s;function ta(t,e){this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"k"),this.i=t.getUniformLocation(e,"h"),this.v=t.getAttribLocation(e,"e"),this.u=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"c"),this.D=t.getAttribLocation(e,"g"),this.C=t.getAttribLocation(e,"d")}function ea(t,e){this.j=t,this.b=e,this.a={},this.c={},this.i={},this.l=this.v=this.f=this.o=null,(this.g=d(Vo,"OES_element_index_uint"))&&e.getExtension("OES_element_index_uint"),de(this.j,"webglcontextlost",this.Xo,this),de(this.j,"webglcontextrestored",this.Yo,this)}function oa(t,e,o){var i,r,n=t.b,s=o.b,a=String(G(o));a in t.a?n.bindBuffer(e,t.a[a].buffer):(i=n.createBuffer(),n.bindBuffer(e,i),34962==e?r=new Float32Array(s):34963==e&&(r=new(t.g?Uint32Array:Uint16Array)(s)),n.bufferData(e,r,o.a),t.a[a]={lc:o,buffer:i})}function ia(t,e){var o=t.b;e=String(G(e));var i=t.a[e];o.isContextLost()||o.deleteBuffer(i.buffer),delete t.a[e]}function ra(t){var e,o,i,r;return t.f||(o=(e=t.b).createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,o),i=pa(e,1,1),r=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),t.f=o,t.v=i,t.l=r),t.f}function na(t,e){var o=String(G(e));if(o in t.c)return t.c[o];var i=t.b,r=i.createShader(e.U());return i.shaderSource(r,e.b),i.compileShader(r),t.c[o]=r}function sa(t,e,o){var i=G(e)+"/"+G(o);if(i in t.i)return t.i[i];var r=t.b,n=r.createProgram();return r.attachShader(n,na(t,e)),r.attachShader(n,na(t,o)),r.linkProgram(n),t.i[i]=n}function aa(t,e,o){var i=t.createTexture();return t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(3553,10242,e),void 0!==o&&t.texParameteri(3553,10243,o),i}function pa(t,e,o){var i=aa(t,void 0,void 0);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,o,0,t.RGBA,t.UNSIGNED_BYTE,null),i}function ha(t,e){var o=aa(t,33071,33071);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),o}function la(t,e){Gs.call(this,0,e),this.C=this.D=void 0,this.S=[],this.v=[],this.oa=void 0,this.j=[],this.c=[],this.I=this.ra=void 0,this.B=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.va=[],this.u=[],this.pa=void 0}function ua(t,e,o,i){for(var r=t.D,n=t.C,s=t.oa,a=t.ra,p=t.I,h=t.R,l=t.Ua,u=t.T,c=t.na?1:0,f=-t.fa,y=t.fb,g=t.pa,d=Math.cos(f),f=Math.sin(f),v=t.b.length,b=t.a.length,m=0;m<o;m+=i){var w=e[m]-t.origin[0],x=e[m+1]-t.origin[1],S=b/8,M=-y*r,P=-y*(s-n);t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=-y*(s-n),t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=(u+s)/a,t.a[b++]=h,t.a[b++]=c,M=y*(g-r),P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=(l+g)/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,M=-y*r,P=y*n,t.a[b++]=w,t.a[b++]=x,t.a[b++]=M*d-P*f,t.a[b++]=M*f+P*d,t.a[b++]=l/p,t.a[b++]=u/a,t.a[b++]=h,t.a[b++]=c,t.b[v++]=S,t.b[v++]=1+S,t.b[v++]=2+S,t.b[v++]=S,t.b[v++]=2+S,t.b[v++]=3+S}}function ca(t,e,o,i){for(var r=e.length,n=0;n<r;++n){var s=e[n],a=G(s).toString();a in o?s=o[a]:(s=ha(i,s),o[a]=s),t[n]=s}}function fa(t,e,o){var i=e-o;return t[0]===t[i]&&t[1]===t[1+i]&&3<+e/o&&!!Yi(t,0,e,o)}function ya(){this.b="precision mediump float;varying float a;varying vec2 b;varying float c;uniform float m;uniform vec4 n;uniform vec2 o;uniform float p;void main(void){if(a>0.0){vec2 windowCoords=vec2((b.x+1.0)/2.0*o.x*p,(b.y+1.0)/2.0*o.y*p);if(length(windowCoords-gl_FragCoord.xy)>c*p){discard;}} gl_FragColor=n;float alpha=n.a*m;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(ea,xe),(Au=ea.prototype).ka=function(){we(this.j);var t=this.b;if(!t.isContextLost()){for(var e in this.a)t.deleteBuffer(this.a[e].buffer);for(e in this.i)t.deleteProgram(this.i[e]);for(e in this.c)t.deleteShader(this.c[e]);t.deleteFramebuffer(this.f),t.deleteRenderbuffer(this.l),t.deleteTexture(this.v)}},Au.Wo=function(){return this.b},Au.Xo=function(){lt(this.a),lt(this.c),lt(this.i),this.l=this.v=this.f=this.o=null},Au.Yo=function(){},Au.Qc=function(t){return t!=this.o&&(this.b.useProgram(t),this.o=t,!0)},e(la,Gs),(Au=la.prototype).Eb=function(o){var i=this.l,r=this.o,n=this.va,s=this.u,a=o.b;return function(){if(!a.isContextLost()){for(var t=0,e=n.length;t<e;++t)a.deleteTexture(n[t]);for(t=0,e=s.length;t<e;++t)a.deleteTexture(s[t])}ia(o,i),ia(o,r)}},Au.oc=function(t,e){this.i.push(this.b.length),this.f.push(e),ua(this,e=t.ga(),e.length,t.qa())},Au.qc=function(t,e){this.i.push(this.b.length),this.f.push(e),ua(this,e=t.ga(),e.length,t.qa())},Au.Db=function(t){t=t.b,this.S.push(this.b.length),this.v.push(this.b.length),this.l=new zs(this.a),this.o=new zs(this.b);var e={};ca(this.va,this.j,e,t),ca(this.u,this.c,e,t),this.oa=this.C=this.D=void 0,this.c=this.j=null,this.I=this.ra=void 0,this.b=null,this.fb=this.fa=this.na=this.T=this.Ua=this.R=void 0,this.a=null,this.pa=void 0},Au.rf=function(t,e){var o,i=sa(e,_s,Qs);return this.B?o=this.B:this.B=o=new ta(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,32,0),t.enableVertexAttribArray(o.v),t.vertexAttribPointer(o.v,2,5126,!1,32,8),t.enableVertexAttribArray(o.C),t.vertexAttribPointer(o.C,2,5126,!1,32,16),t.enableVertexAttribArray(o.u),t.vertexAttribPointer(o.u,1,5126,!1,32,24),t.enableVertexAttribArray(o.D),t.vertexAttribPointer(o.D,1,5126,!1,32,28),o},Au.sf=function(t,e){t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.v),t.disableVertexAttribArray(e.C),t.disableVertexAttribArray(e.u),t.disableVertexAttribArray(e.D)},Au.Od=function(t,e,o,i){var r=i?this.u:this.va;if(i=i?this.v:this.S,ct(o)){o=0;for(var n=r.length,s=0;o<n;++o){t.bindTexture(3553,r[o]);var a=i[o];Bs(t,e,s,a),s=a}}else for(s=n=0,a=r.length;s<a;++s){t.bindTexture(3553,r[s]);for(var p=0<s?i[s-1]:0,h=i[s],l=p;n<this.i.length&&this.i[n]<=h;){p=void 0!==o[G(this.f[n]).toString()]?(l!==p&&Bs(t,e,l,p),l=n===this.i.length-1?h:this.i[n+1]):n===this.i.length-1?h:this.i[n+1];n++}l!==p&&Bs(t,e,l,p)}},Au.ve=function(t,e,o,i,r){for(var n=this.i.length-1,s=this.u.length-1;0<=s;--s){t.bindTexture(3553,this.u[s]);for(var a=0<s?this.v[s-1]:0,p=this.v[s];0<=n&&this.i[n]>=a;){var h=this.i[n],l=this.f[n];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,p),p=i(l)))return p;p=h,n--}}},Au.Ub=function(t){var e=t.Hc(),o=t.Y(1),i=t.ye(),r=t.qg(1),n=t.f,s=t.Oc(),a=t.l,p=t.g,h=t.ic();t=t.a,this.j.length?G(this.j[this.j.length-1])!=G(o)&&(this.S.push(this.b.length),this.j.push(o)):this.j.push(o),this.c.length?G(this.c[this.c.length-1])!=G(r)&&(this.v.push(this.b.length),this.c.push(r)):this.c.push(r),this.D=e[0],this.C=e[1],this.oa=h[1],this.ra=i[1],this.I=i[0],this.R=n,this.Ua=s[0],this.T=s[1],this.fa=p,this.na=a,this.fb=t,this.pa=h[0]},e(ya,Ls);var ga=new ya;function da(){this.b="varying float a;varying vec2 b;varying float c;attribute vec2 d;attribute vec2 e;attribute vec2 f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;uniform float k;uniform float l;bool nearlyEquals(in float value,in float ref){float epsilon=0.000000000001;return value>=ref-epsilon&&value<=ref+epsilon;}void alongNormal(out vec2 offset,in vec2 nextP,in float turnDir,in float direction){vec2 dirVect=nextP-e;vec2 normal=normalize(vec2(-turnDir*dirVect.y,turnDir*dirVect.x));offset=k/2.0*normal*direction;}void miterUp(out vec2 offset,out float round,in bool isRound,in float direction){float halfWidth=k/2.0;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=f-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;round=0.0;if(isRound){round=1.0;}else if(miterLength>l+k){offset=halfWidth*tmpNormal*direction;}} bool miterDown(out vec2 offset,in vec4 projPos,in mat4 offsetMatrix,in float direction){bool degenerate=false;vec2 tangent=normalize(normalize(f-e)+normalize(e-d));vec2 normal=vec2(-tangent.y,tangent.x);vec2 dirVect=d-e;vec2 tmpNormal=normalize(vec2(-dirVect.y,dirVect.x));vec2 longOffset,shortOffset,longVertex;vec4 shortProjVertex;float halfWidth=k/2.0;if(length(f-e)>length(d-e)){longOffset=tmpNormal*direction*halfWidth;shortOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=f;shortProjVertex=h*vec4(d,0.0,1.0);}else{shortOffset=tmpNormal*direction*halfWidth;longOffset=normalize(vec2(dirVect.y,-dirVect.x))*direction*halfWidth;longVertex=d;shortProjVertex=h*vec4(f,0.0,1.0);}vec4 p1=h*vec4(longVertex,0.0,1.0)+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p2=projPos+offsetMatrix*vec4(longOffset,0.0,0.0);vec4 p3=shortProjVertex+offsetMatrix*vec4(-shortOffset,0.0,0.0);vec4 p4=shortProjVertex+offsetMatrix*vec4(shortOffset,0.0,0.0);float denom=(p4.y-p3.y)*(p2.x-p1.x)-(p4.x-p3.x)*(p2.y-p1.y);float firstU=((p4.x-p3.x)*(p1.y-p3.y)-(p4.y-p3.y)*(p1.x-p3.x))/denom;float secondU=((p2.x-p1.x)*(p1.y-p3.y)-(p2.y-p1.y)*(p1.x-p3.x))/denom;float epsilon=0.000000000001;if(firstU>epsilon&&firstU<1.0-epsilon&&secondU>epsilon&&secondU<1.0-epsilon){shortProjVertex.x=p1.x+firstU*(p2.x-p1.x);shortProjVertex.y=p1.y+firstU*(p2.y-p1.y);offset=shortProjVertex.xy;degenerate=true;}else{float miterLength=abs(halfWidth/dot(normal,tmpNormal));offset=normal*direction*miterLength;}return degenerate;}void squareCap(out vec2 offset,out float round,in bool isRound,in vec2 nextP,in float turnDir,in float direction){round=0.0;vec2 dirVect=e-nextP;vec2 firstNormal=normalize(dirVect);vec2 secondNormal=vec2(turnDir*firstNormal.y*direction,-turnDir*firstNormal.x*direction);vec2 hypotenuse=normalize(firstNormal-secondNormal);vec2 normal=vec2(turnDir*hypotenuse.y*direction,-turnDir*hypotenuse.x*direction);float length=sqrt(c*c*2.0);offset=normal*length;if(isRound){round=1.0;}} void main(void){bool degenerate=false;float direction=float(sign(g));mat4 offsetMatrix=i*j;vec2 offset;vec4 projPos=h*vec4(e,0.0,1.0);bool round=nearlyEquals(mod(g,2.0),0.0);a=0.0;c=k/2.0;b=projPos.xy;if(nearlyEquals(mod(g,3.0),0.0)||nearlyEquals(mod(g,17.0),0.0)){alongNormal(offset,f,1.0,direction);}else if(nearlyEquals(mod(g,5.0),0.0)||nearlyEquals(mod(g,13.0),0.0)){alongNormal(offset,d,-1.0,direction);}else if(nearlyEquals(mod(g,23.0),0.0)){miterUp(offset,a,round,direction);}else if(nearlyEquals(mod(g,19.0),0.0)){degenerate=miterDown(offset,projPos,offsetMatrix,direction);}else if(nearlyEquals(mod(g,7.0),0.0)){squareCap(offset,a,round,f,1.0,direction);}else if(nearlyEquals(mod(g,11.0),0.0)){squareCap(offset,a,round,d,-1.0,direction);}if(!degenerate){vec4 offsets=offsetMatrix*vec4(offset,0.0,0.0);gl_Position=projPos+offsets;}else{gl_Position=vec4(offset,0.0,1.0);}}"}e(da,Rs);var va=new da;function ba(t,e){this.B=t.getUniformLocation(e,"n"),this.oa=t.getUniformLocation(e,"k"),this.R=t.getUniformLocation(e,"l"),this.c=t.getUniformLocation(e,"j"),this.f=t.getUniformLocation(e,"i"),this.a=t.getUniformLocation(e,"m"),this.ra=t.getUniformLocation(e,"p"),this.i=t.getUniformLocation(e,"h"),this.I=t.getUniformLocation(e,"o"),this.g=t.getAttribLocation(e,"g"),this.o=t.getAttribLocation(e,"d"),this.l=t.getAttribLocation(e,"f"),this.b=t.getAttribLocation(e,"e")}function ma(t,e){Gs.call(this,0,e),this.v=null,this.u=[],this.j=[],this.c={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,s:!1}}function wa(t,e,o,i){for(var r=t.a.length,n=t.b.length,s="bevel"===t.c.lineJoin?0:"miter"===t.c.lineJoin?1:2,a="butt"===t.c.lineCap?0:"square"===t.c.lineCap?1:2,p=fa(e,o,i),h=n,l=1,u=0;u<o;u+=i){var c,f=r/7,y=g,g=c||[e[u],e[u+1]];if(u){if(u===o-i){p?c=d:(r=xa(t,y=y||[0,0],g,[0,0],l*Ta*(a||1),r),r=xa(t,y,g,[0,0],-l*Ta*(a||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,a&&(r=xa(t,y,g,[0,0],l*Ca*a,r),r=xa(t,y,g,[0,0],-l*Ca*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2));break}c=[e[u+i],e[u+i+1]]}else{if(c=[e[u+i],e[u+i+1]],+o==2*i&&U(g,c))break;if(!p){a&&(r=xa(t,[0,0],g,c,l*ja*a,r),r=xa(t,[0,0],g,c,-l*ja*a,r),t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=f+1,t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f+2),r=xa(t,[0,0],g,c,l*Ea*(a||1),r),h=(r=xa(t,[0,0],g,c,-l*Ea*(a||1),r))/7-1;continue}var y=[e[o-2*i],e[o-2*i+1]],d=c}var v=Zs(y[0],y[1],g[0],g[1],c[0],c[1])?-1:1,r=xa(t,y,g,c,v*La*(s||1),r);r=xa(t,y,g,c,v*Ra*(s||1),r),r=xa(t,y,g,c,-v*Ia*(s||1),r),0<u&&(t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+2,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1),t.b[n++]=f,t.b[n++]=f+2,t.b[n++]=f+1,h=f+2,l=v,s&&(r=xa(t,y,g,c,v*Na*s,r),t.b[n++]=f+1,t.b[n++]=f+3,t.b[n++]=f)}p&&(f=f||r/7,r=xa(t,y,g,c,(v=dr([y[0],y[1],g[0],g[1],c[0],c[1]],0,6,2)?1:-1)*La*(s||1),r),xa(t,y,g,c,-v*Ia*(s||1),r),t.b[n++]=f,t.b[n++]=h-1,t.b[n++]=h,t.b[n++]=f+1,t.b[n++]=f,t.b[n++]=0<l*v?h:h-1)}function xa(t,e,o,i,r,n){return t.a[n++]=e[0],t.a[n++]=e[1],t.a[n++]=o[0],t.a[n++]=o[1],t.a[n++]=i[0],t.a[n++]=i[1],t.a[n++]=r,n}function Sa(t,e,o,i){return!((o-=e)<2*i)&&(o!==2*i||!U([t[e],t[e+1]],[t[e+i],t[e+i+1]]))}function Ma(t,e,o,i){var r;if(fa(e,e.length,i)||(e.push(e[0]),e.push(e[1])),wa(t,e,e.length,i),o.length)for(e=0,r=o.length;e<r;++e)fa(o[e],o[e].length,i)||(o[e].push(o[e][0]),o[e].push(o[e][1])),wa(t,o[e],o[e].length,i)}function Pa(t,e,o){o=void 0===o?t.b.length:o,t.i.push(o),t.f.push(e),t.c.s&&(t.j.push(o),t.c.s=!1)}function Aa(t,e,o,i,r){e.uniform4fv(t.v.B,o),e.uniform1f(t.v.oa,i),e.uniform1f(t.v.R,r)}e(ma,Gs),(Au=ma.prototype).mc=function(t,e){var o=t.ga();t=t.qa(),Sa(o,0,o.length,t)&&(o=Vi(o,0,o.length,t,-this.origin[0],-this.origin[1]),this.c.s&&(this.j.push(this.b.length),this.c.s=!1),this.i.push(this.b.length),this.f.push(e),wa(this,o,o.length,t))},Au.nc=function(t,e){var o=this.b.length,i=t.Bb();i.unshift(0);var r=t.ga();if(t=t.qa(),1<i.length)for(var n,s=1,a=i.length;s<a;++s)Sa(r,i[s-1],i[s],t)&&wa(this,n=Vi(r,i[s-1],i[s],t,-this.origin[0],-this.origin[1]),n.length,t);this.b.length>o&&(this.i.push(o),this.f.push(e),this.c.s&&(this.j.push(o),this.c.s=!1))},Au.Db=function(){this.l=new zs(this.a),this.o=new zs(this.b),this.i.push(this.b.length),!this.j.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Au.Eb=function(t){var e=this.l,o=this.o;return function(){ia(t,e),ia(t,o)}},Au.rf=function(t,e,o,i){var r,n=sa(e,ga,va);return this.v?r=this.v:this.v=r=new ba(t,n),e.Qc(n),t.enableVertexAttribArray(r.o),t.vertexAttribPointer(r.o,2,5126,!1,28,0),t.enableVertexAttribArray(r.b),t.vertexAttribPointer(r.b,2,5126,!1,28,8),t.enableVertexAttribArray(r.l),t.vertexAttribPointer(r.l,2,5126,!1,28,16),t.enableVertexAttribArray(r.g),t.vertexAttribPointer(r.g,1,5126,!1,28,24),t.uniform2fv(r.I,o),t.uniform1f(r.ra,i),r},Au.sf=function(t,e){t.disableVertexAttribArray(e.o),t.disableVertexAttribArray(e.b),t.disableVertexAttribArray(e.l),t.disableVertexAttribArray(e.g)},Au.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.j.length-1;0<=o;--o){var a=this.j[o],p=this.u[o];Aa(this,t,p[0],p[1],p[2]),Bs(t,e,a,s),t.clear(t.DEPTH_BUFFER_BIT),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.j.length-1;0<=a;--a){var l=this.u[a];for(Aa(this,t,l[0],l[1],l[2]),l=this.j[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Au.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.j.length-1;0<=p;--p)for(Aa(this,t,(h=this.u[p])[0],h[1],h[2]),n=this.j[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}},Au.Ma=function(t,e){t=e.f,this.c.lineCap=void 0!==t?t:"round",t=e.i,this.c.lineDash=t||Vs,t=e.g,this.c.lineDashOffset=t||0,t=e.j,this.c.lineJoin=void 0!==t?t:"round",t=!((t=e.a)instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Ws;var o=void 0!==(o=e.c)?o:1;e=void 0!==(e=e.o)?e:10,this.c.strokeColor&&U(this.c.strokeColor,t)&&this.c.lineWidth===o&&this.c.miterLimit===e||(this.c.s=!0,this.c.strokeColor=t,this.c.lineWidth=o,this.c.miterLimit=e,this.u.push([t,o,e]))};var Ea=3,Ta=5,ja=7,Ca=11,La=13,Ra=17,Ia=19,Na=23;function Fa(){this.b="precision mediump float;uniform vec4 e;uniform float f;void main(void){gl_FragColor=e;float alpha=e.a*f;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}e(Fa,Ls);var ka=new Fa;function Da(){this.b="attribute vec2 a;uniform mat4 b;uniform mat4 c;uniform mat4 d;void main(void){gl_Position=b*vec4(a,0.0,1.0);}"}e(Da,Rs);var Oa=new Da;function Ua(t,e){this.B=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"c"),this.a=t.getUniformLocation(e,"f"),this.i=t.getUniformLocation(e,"b"),this.b=t.getAttribLocation(e,"a")}function Ga(t){t=t||{},this.a=void 0!==t.color?t.color:null,this.f=t.lineCap,this.i=void 0!==t.lineDash?t.lineDash:null,this.g=t.lineDashOffset,this.j=t.lineJoin,this.o=t.miterLimit,this.c=t.width,this.b=void 0}function Ba(t){this.b=this.a=this.i=void 0,this.f=void 0===t||t,this.c=0}function Xa(t){var e,o,i=t.b;i&&(e=i.next,o=i.ub,e&&(e.ub=o),o&&(o.next=e),t.b=e||o,t.i===t.a?(t.b=void 0,t.i=void 0,t.a=void 0):t.i===i?t.i=t.b:t.a===i&&(t.a=o?t.b.ub:t.b),t.c--)}function Va(t){if(t.b=t.i,t.b)return t.b.data}function Wa(t){if(t.b&&t.b.next)return t.b=t.b.next,t.b.data}function Za(t){if(t.b&&t.b.next)return t.b.next.data}function Ka(t){if(t.b&&t.b.ub)return t.b=t.b.ub,t.b.data}function za(t){if(t.b&&t.b.ub)return t.b.ub.data}function Ya(t){if(t.b)return t.b.data}(Au=Ga.prototype).clone=function(){var t=this.a;return new Ga({color:t&&t.slice?t.slice():t||void 0,lineCap:this.f,lineDash:this.i?this.i.slice():void 0,lineDashOffset:this.g,lineJoin:this.j,miterLimit:this.o,width:this.c})},Au.No=function(){return this.a},Au.Vk=function(){return this.f},Au.Oo=function(){return this.i},Au.Wk=function(){return this.g},Au.Xk=function(){return this.j},Au.bl=function(){return this.o},Au.Po=function(){return this.c},Au.Qo=function(t){this.a=t,this.b=void 0},Au.aq=function(t){this.f=t,this.b=void 0},Au.setLineDash=function(t){this.i=t,this.b=void 0},Au.bq=function(t){this.g=t,this.b=void 0},Au.cq=function(t){this.j=t,this.b=void 0},Au.gq=function(t){this.o=t,this.b=void 0},Au.jq=function(t){this.c=t,this.b=void 0},Ba.prototype.concat=function(t){var e;t.b&&(this.b?(e=this.b.next,this.b.next=t.i,t.i.ub=this.b,e.ub=t.a,t.a.next=e,this.c+=t.c):(this.b=t.b,this.i=t.i,this.a=t.a,this.c=t.c),t.b=void 0,t.i=void 0,t.a=void 0,t.c=0)};var Ha,qa={$d:function(){}};function Ja(t,e,o){var i=t[e];t[e]=t[o],t[o]=i}function _a(t,e){return t<e?-1:e<t?1:0}function $a(t,e){if(!(this instanceof $a))return new $a(t,e);this.Hf=Math.max(4,t||9),this.fh=Math.max(2,Math.ceil(.4*this.Hf)),e&&this.ek(e),this.clear()}function Qa(t,e){tp(t,0,t.children.length,e,t)}function tp(t,e,o,i,r){(r=r||pp(null)).ca=1/0,r.da=1/0,r.$=-1/0,r.ia=-1/0;for(var n;e<o;e++)n=t.children[e],ep(r,t.ib?i(n):n);return r}function ep(t,e){t.ca=Math.min(t.ca,e.ca),t.da=Math.min(t.da,e.da),t.$=Math.max(t.$,e.$),t.ia=Math.max(t.ia,e.ia)}function op(t,e){return t.ca-e.ca}function ip(t,e){return t.da-e.da}function rp(t){return(t.$-t.ca)*(t.ia-t.da)}function np(t){return t.$-t.ca+(t.ia-t.da)}function sp(t,e){return t.ca<=e.ca&&t.da<=e.da&&e.$<=t.$&&e.ia<=t.ia}function ap(t,e){return e.ca<=t.$&&e.da<=t.ia&&e.$>=t.ca&&e.ia>=t.da}function pp(t){return{children:t,height:1,ib:!0,ca:1/0,da:1/0,$:-1/0,ia:-1/0}}function hp(t,e,o,i,r){for(var n,s=[e,o];s.length;)(o=s.pop())-(e=s.pop())<=i||(n=e+Math.ceil((o-e)/i/2)*i,Ha(t,n,e,o,r),s.push(e,n,n,o))}function lp(t){this.a=qa.$d(t),this.b={}}function up(t,e,o){var i=t.b[G(o)];Z([i.ca,i.da,i.$,i.ia],e)||(t.remove(o),t.Ca(e,o))}function cp(t){return t.a.all().map(function(t){return t.value})}function fp(t,e){return t.a.search({ca:e[0],da:e[1],$:e[2],ia:e[3]}).map(function(t){return t.value})}function yp(t,e,o,i){return gp(fp(t,e),o,i)}function gp(t,e,o){for(var i,r=0,n=t.length;r<n&&!(i=e.call(o,t[r]));r++);return i}function dp(t,e){Gs.call(this,0,e),this.g=new ma(0,e),this.v=null,this.u=[],this.c=[],this.j={fillColor:null,s:!1}}function vp(t,e,o,i){var r=new Ba,n=new lp;if(e=bp(t,e,i,r,n,!0),o.length){for(var s=[],a=0,p=o.length;a<p;++a){var h={list:new Ba,$:void 0,Mg:new lp};s.push(h),h.$=bp(t,o[a],i,h.list,h.Mg,!1)}for(s.sort(function(t,e){return e.$[0]===t.$[0]?t.$[1]-e.$[1]:e.$[0]-t.$[0]}),a=0;a<s.length;++a){p=i=Va(o=s[a].list);do{if(Tp(p,n).length){var l=!0;break}}while(i!==(p=Wa(o)));l||(mp(o,s[a].Mg,!0),function(t,e,o,i,r){for(var n=Va(t);n.W.x!==e;)n=Wa(t);e=n.W,i={x:i,y:e.y,hb:-1};var s,a=1/0,p=Tp({aa:e,W:i},r,!0),h=0;for(s=p.length;h<s;++h){var l,u=p[h],c=jp(e,i,u.aa,u.W,!0),f=Math.abs(e.x-c[0]);f<a&&void 0!==Zs(e.x,e.y,u.aa.x,u.aa.y,u.W.x,u.W.y)&&(a=f,l={x:c[0],y:c[1],hb:-1},n=u)}if(1/0===a)return!1;if(p=n.W,0<a&&(n=Ep(e,l,n.W,r)).length)for(l=1/0,h=0,s=n.length;h<s;++h)a=n[h],((u=Math.atan2(e.y-a.y,i.x-a.x))<l||u===l&&a.x<p.x)&&(l=u,p=a);for(n=Va(o);n.W.x!==p.x||n.W.y!==p.y;)n=Wa(o);return i={x:e.x,y:e.y,hb:e.hb,Fb:void 0},h={x:n.W.x,y:n.W.y,hb:n.W.hb,Fb:void 0},Za(t).aa=i,Pp(e,n.W,t,r),Pp(h,i,t,r),n.W=h,t.f&&t.b&&(t.i=t.b,t.a=t.b.ub),o.concat(t),!0}(o,s[a].$[0],r,e[0],n)&&(n.concat(s[a].Mg),mp(r,n,!1)))}}else mp(r,n,!1);!function t(e,o,i){for(var r=!1,n=Sp(o,i);3<o.c;)if(n){if(!wp(e,o,i,n,r)&&!mp(o,i,r)&&!xp(e,o,i,!0))break}else if(!wp(e,o,i,n,r)&&!mp(o,i,r)&&!xp(e,o,i)){if(!(n=Sp(o,i))){n=e,s=a=Va(r=o);do{if((p=Tp(s,i)).length){for(a=p[0],p=jp(s.aa,s.W,a.aa,a.W),p=Mp(n,p[0],p[1],n.a.length/2),h=new Ba,l=new lp,Pp(p,s.W,h,l),s.W=p,up(i,[Math.min(s.aa.x,p.x),Math.min(s.aa.y,p.y),Math.max(s.aa.x,p.x),Math.max(s.aa.y,p.y)],s),s=Wa(r);s!==a;)Pp(s.aa,s.W,h,l),i.remove(s),Xa(r),s=Ya(r);Pp(a.aa,p,h,l),a.aa=p,up(i,[Math.min(a.W.x,p.x),Math.min(a.W.y,p.y),Math.max(a.W.x,p.x),Math.max(a.W.y,p.y)],a),mp(r,i,!1),t(n,r,i),mp(h,l,!1),t(n,h,l);break}}while((s=Wa(r))!==a);break}for(var r=o,s=2*r.c,a=Array(s),p=Va(r),h=p,l=0;a[l++]=h.aa.x,a[l++]=h.aa.y,h=Wa(r),h!==p;);r=!dr(a,0,s,2),mp(o,i,r)}3===o.c&&(n=e.b.length,e.b[n++]=za(o).aa.hb,e.b[n++]=Ya(o).aa.hb,e.b[n++]=Za(o).aa.hb)}(t,r,n)}function bp(t,e,o,i,r,n){var s,a=t.a.length/2,p=[],h=[];if(n===dr(e,0,e.length,o)){var l=s=Mp(t,e[0],e[1],a++);n=e[0];for(var u=e[1],c=o,f=e.length;c<f;c+=o){var y=Mp(t,e[c],e[c+1],a++);h.push(Pp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y}}else for(l=s=Mp(t,e[c=e.length-o],e[c+1],a++),n=e[c],u=e[c+1],c-=o,f=0;f<=c;c-=o)y=Mp(t,e[c],e[c+1],a++),h.push(Pp(l,y,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),e[c]>n&&(n=e[c],u=e[c+1]),l=y;return h.push(Pp(y,s,i)),p.push([Math.min(l.x,y.x),Math.min(l.y,y.y),Math.max(l.x,y.x),Math.max(l.y,y.y)]),r.load(p,h),[n,u]}function mp(t,e,o){var i=Va(t),r=i,n=Wa(t),s=!1;do{var a=o?Zs(n.W.x,n.W.y,r.W.x,r.W.y,r.aa.x,r.aa.y):Zs(r.aa.x,r.aa.y,r.W.x,r.W.y,n.W.x,n.W.y)}while(void 0===a?(Ap(r,n,t,e),s=!0,n===i&&(i=Za(t)),n=r,Ka(t)):r.W.Fb!==a&&(r.W.Fb=a,s=!0),r=n,n=Wa(t),r!==i);return s}function wp(t,e,o,i,r){var n=t.b.length,s=Va(e),a=za(e),p=s,h=Wa(e),l=Za(e),u=!1;do{var c,f=p.aa,y=p.W,g=h.W}while(!1===y.Fb&&(c=r?Cp(l.W,g,y,f,a.aa):Cp(a.aa,f,y,g,l.W),!i&&Tp({aa:f,W:g},o).length||!c||Ep(f,y,g,o,!0).length||!i&&!1!==f.Fb&&!1!==g.Fb&&dr([a.aa.x,a.aa.y,f.x,f.y,y.x,y.y,g.x,g.y,l.W.x,l.W.y],0,10,2)!==!r||(t.b[n++]=f.hb,t.b[n++]=y.hb,t.b[n++]=g.hb,Ap(p,h,e,o),h===s&&(s=l),u=!0)),a=za(e),p=Ya(e),h=Wa(e),l=Za(e),p!==s&&3<e.c);return u}function xp(t,e,o,i){var r=Va(e);Wa(e);var n=r,s=Wa(e),a=!1;do{var p=jp(n.aa,n.W,s.aa,s.W,i);if(p){var a=t.b.length,h=t.a.length/2,l=Ka(e);Xa(e),o.remove(l);var u=l===r;if(i?(u=p[0]===n.aa.x&&p[1]===n.aa.y?(Ka(e),p=n.aa,s.aa=p,o.remove(n),u||n===r):(p=s.W,n.W=p,o.remove(s),u||s===r),Xa(e)):(p=Mp(t,p[0],p[1],h),n.W=p,s.aa=p,up(o,[Math.min(n.aa.x,n.W.x),Math.min(n.aa.y,n.W.y),Math.max(n.aa.x,n.W.x),Math.max(n.aa.y,n.W.y)],n),up(o,[Math.min(s.aa.x,s.W.x),Math.min(s.aa.y,s.W.y),Math.max(s.aa.x,s.W.x),Math.max(s.aa.y,s.W.y)],s)),t.b[a++]=l.aa.hb,t.b[a++]=l.W.hb,t.b[a++]=p.hb,a=!0,u)break}}while(n=za(e),s=Wa(e),n!==r);return a}function Sp(t,e){var o=Va(t),i=o;do{if(Tp(i,e).length)return!1}while((i=Wa(t))!==o);return!0}function Mp(t,e,o,i){var r=t.a.length;return{x:t.a[r++]=e,y:t.a[+r]=o,hb:i,Fb:void 0}}function Pp(t,e,o,i){var r,n={aa:t,W:e},s={ub:void 0,next:void 0,data:n},a=o.b;return a?(r=a.next,s.ub=a,s.next=r,a.next=s,r&&(r.ub=s),a===o.a&&(o.a=s)):(o.i=s,o.a=s,o.f&&((s.next=s).ub=s)),o.b=s,o.c++,i&&i.Ca([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],n),n}function Ap(t,e,o,i){Ya(o)===e&&(Xa(o),t.W=e.W,i.remove(e),up(i,[Math.min(t.aa.x,t.W.x),Math.min(t.aa.y,t.W.y),Math.max(t.aa.x,t.W.x),Math.max(t.aa.y,t.W.y)],t))}function Ep(t,e,o,i,r){var n,s,a=[],p=fp(i,[Math.min(t.x,e.x,o.x),Math.min(t.y,e.y,o.y),Math.max(t.x,e.x,o.x),Math.max(t.y,e.y,o.y)]);for(i=0,n=p.length;i<n;++i)for(s in p[i]){var h=p[i][s];"object"!=typeof h||r&&!h.Fb||h.x===t.x&&h.y===t.y||h.x===e.x&&h.y===e.y||h.x===o.x&&h.y===o.y||-1!==a.indexOf(h)||!lr([t.x,t.y,e.x,e.y,o.x,o.y],0,6,2,h.x,h.y)||a.push(h)}return a}function Tp(t,e,o){for(var i=t.aa,r=t.W,n=[],s=0,a=(e=fp(e,[Math.min(i.x,r.x),Math.min(i.y,r.y),Math.max(i.x,r.x),Math.max(i.y,r.y)])).length;s<a;++s){var p=e[s];t!==p&&(o||p.aa!==r||p.W!==i)&&jp(i,r,p.aa,p.W,o)&&n.push(p)}return n}function jp(t,e,o,i,r){var n=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(n&&(i=((i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x))/n,o=((e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x))/n,!r&&Ks<i&&i<1-Ks&&Ks<o&&o<1-Ks||r&&0<=i&&i<=1&&0<=o&&o<=1))return[t.x+i*(e.x-t.x),t.y+i*(e.y-t.y)]}function Cp(t,e,o,i,r){if(void 0===e.Fb||void 0===i.Fb)return!1;var n=(o.x-i.x)*(e.y-i.y)>(o.y-i.y)*(e.x-i.x);return r=(r.x-i.x)*(e.y-i.y)<(r.y-i.y)*(e.x-i.x),t=(t.x-e.x)*(i.y-e.y)>(t.y-e.y)*(i.x-e.x),o=(o.x-e.x)*(i.y-e.y)<(o.y-e.y)*(i.x-e.x),e=e.Fb?o||t:o&&t,(i.Fb?r||n:r&&n)&&e}function Lp(){}function Rp(t,e,o){this.f=e,this.g=t,this.c=o,this.a={}}function Ip(t,e){var o,i=[];for(o in t.a){var r,n=t.a[o];for(r in n)i.push(n[r].Eb(e))}return function(){for(var t,e=i.length,o=0;o<e;o++)t=i[o].apply(this,arguments);return t}}function Np(t,e,o,i,r,n,s,a,p,h,l){var u=Fp,c=Object.keys(t.a).map(Number);c.sort(function(t,e){return e-t});for(var f=0,y=c.length;f<y;++f)for(var g=t.a[c[f].toString()],d=Ts.length-1;0<=d;--d){var v=g[Ts[d]];if(void 0!==v&&(v=v.La(e,o,i,r,u,n,s,a,p,h,l)))return v}}qy=qa.$d=qa.$d||{},Ha=function t(e,o,i,r,n){for(i=i||0,r=r||e.length-1,n=n||_a;i<r;){var s,a,p,h;for(600<r-i&&(s=r-i+1,a=o-i+1,h=Math.log(s),p=.5*Math.exp(2*h/3),h=.5*Math.sqrt(h*p*(s-p)/s)*(a-s/2<0?-1:1),t(e,o,Math.max(i,Math.floor(o-a*p/s+h)),Math.min(r,Math.floor(o+(s-a)*p/s+h)),n)),s=e[o],p=r,Ja(e,a=i,o),0<n(e[r],s)&&Ja(e,i,r);a<p;){for(Ja(e,a,p),a++,p--;n(e[a],s)<0;)a++;for(;0<n(e[p],s);)p--}0===n(e[i],s)?Ja(e,i,p):Ja(e,++p,r),p<=o&&(i=p+1),o<=p&&(r=p-1)}},$a.prototype={all:function(){return this.$g(this.data,[])},search:function(t){var e=this.data,o=[],i=this.wb;if(!ap(t,e))return o;for(var r,n,s,a,p=[];e;){for(r=0,n=e.children.length;r<n;r++)s=e.children[r],ap(t,a=e.ib?i(s):s)&&(e.ib?o.push(s):sp(t,a)?this.$g(s,o):p.push(s));e=p.pop()}return o},load:function(t){if(!t||!t.length)return this;if(t.length<this.fh){for(var e=0,o=t.length;e<o;e++)this.Ca(t[e]);return this}return t=this.bh(t.slice(),0,t.length-1,0),this.data.children.length?this.data.height===t.height?this.hh(this.data,t):(this.data.height<t.height&&(e=this.data,this.data=t,t=e),this.eh(t,this.data.height-t.height-1,!0)):this.data=t,this},Ca:function(t){return t&&this.eh(t,this.data.height-1),this},clear:function(){return this.data=pp([]),this},remove:function(t,e){if(!t)return this;for(var o,i,r,n=this.data,s=this.wb(t),a=[],p=[];n||a.length;){if(n||(n=a.pop(),i=a[a.length-1],o=p.pop(),r=!0),n.ib){t:{var h=t,l=n.children,u=e;if(u){for(var c=0;c<l.length;c++)if(u(h,l[c])){h=c;break t}h=-1}else h=l.indexOf(h)}if(-1!==h){n.children.splice(h,1),a.push(n),this.ck(a);break}}r||n.ib||!sp(n,s)?i?(o++,n=i.children[o],r=!1):n=null:(a.push(n),p.push(o),o=0,n=(i=n).children[0])}return this},wb:function(t){return t},Lf:op,Mf:ip,toJSON:function(){return this.data},$g:function(t,e){for(var o=[];t;)t.ib?e.push.apply(e,t.children):o.push.apply(o,t.children),t=o.pop();return e},bh:function(t,e,o,i){var r,n=o-e+1,s=this.Hf;if(n<=s){var a=pp(t.slice(e,o+1));return Qa(a,this.wb),a}for(i||(i=Math.ceil(Math.log(n)/Math.log(s)),s=Math.ceil(n/Math.pow(s,i-1))),(a=pp([])).ib=!1,a.height=i,hp(t,e,o,s=(n=Math.ceil(n/s))*Math.ceil(Math.sqrt(s)),this.Lf);e<=o;e+=s){var p=Math.min(e+s-1,o);for(hp(t,e,p,n,this.Mf),r=e;r<=p;r+=n){var h=Math.min(r+n-1,p);a.children.push(this.bh(t,r,h,i-1))}}return Qa(a,this.wb),a},bk:function(t,e,o,i){for(var r,n,s,a,p,h,l,u;i.push(e),!e.ib&&i.length-1!==o;){for(l=u=1/0,r=0,n=e.children.length;r<n;r++)p=rp(s=e.children[r]),(h=(Math.max(s.$,t.$)-Math.min(s.ca,t.ca))*(Math.max(s.ia,t.ia)-Math.min(s.da,t.da))-p)<u?(u=h,l=p<l?p:l,a=s):h===u&&p<l&&(l=p,a=s);e=a||e.children[0]}return e},eh:function(t,e,o){var i=this.wb;o=o?t:i(t);var i=[],r=this.bk(o,this.data,e,i);for(r.children.push(t),ep(r,o);0<=e&&i[e].children.length>this.Hf;)this.jk(i,e),e--;this.Zj(o,i,e)},jk:function(t,e){var o=t[e],i=o.children.length,r=this.fh;this.$j(o,r,i),i=this.ak(o,r,i),(i=pp(o.children.splice(i,o.children.length-i))).height=o.height,i.ib=o.ib,Qa(o,this.wb),Qa(i,this.wb),e?t[e-1].children.push(i):this.hh(o,i)},hh:function(t,e){this.data=pp([t,e]),this.data.height=t.height+1,this.data.ib=!1,Qa(this.data,this.wb)},ak:function(t,e,o){for(var i=s=1/0,r=e;r<=o-e;r++){var n,s,a=tp(t,0,r,this.wb),p=tp(t,r,o,this.wb),h=Math.max(0,Math.min(a.$,p.$)-Math.max(a.ca,p.ca))*Math.max(0,Math.min(a.ia,p.ia)-Math.max(a.da,p.da)),a=rp(a)+rp(p);h<i?(i=h,n=r,s=a<s?a:s):h===i&&a<s&&(s=a,n=r)}return n},$j:function(t,e,o){var i=t.ib?this.Lf:op,r=t.ib?this.Mf:ip;this.ah(t,e,o,i)<(e=this.ah(t,e,o,r))&&t.children.sort(i)},ah:function(t,e,o,i){t.children.sort(i);for(var r=tp(t,0,e,i=this.wb),n=tp(t,o-e,o,i),s=np(r)+np(n),a=e;a<o-e;a++){var p=t.children[a];ep(r,t.ib?i(p):p),s+=np(r)}for(a=o-e-1;e<=a;a--)p=t.children[a],ep(n,t.ib?i(p):p),s+=np(n);return s},Zj:function(t,e,o){for(;0<=o;o--)ep(e[o],t)},ck:function(t){for(var e,o=t.length-1;0<=o;o--)0===t[o].children.length?0<o?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():Qa(t[o],this.wb)},ek:function(t){var e=["return a"," - b",";"];this.Lf=new Function("a","b",e.join(t[0])),this.Mf=new Function("a","b",e.join(t[1])),this.wb=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}},qy.default=$a,qa.$d=qa.$d.default,(Au=lp.prototype).Ca=function(t,e){t={ca:t[0],da:t[1],$:t[2],ia:t[3],value:e},this.a.Ca(t),this.b[G(e)]=t},Au.load=function(t,e){for(var o=Array(e.length),i=0,r=e.length;i<r;i++){var n=t[i],s=e[i],n={ca:n[0],da:n[1],$:n[2],ia:n[3],value:s};o[i]=n,this.b[G(s)]=n}this.a.load(o)},Au.remove=function(t){t=G(t);var e=this.b[t];return delete this.b[t],null!==this.a.remove(e)},Au.forEach=function(t,e){return gp(cp(this),t,e)},Au.clear=function(){this.a.clear(),this.b={}},Au.G=function(t){var e=this.a.data;return F(e.ca,e.da,e.$,e.ia,t)},Au.concat=function(t){for(var e in this.a.load(t.a.all()),t.b)this.b[0|e]=t.b[0|e]},e(dp,Gs),(Au=dp.prototype).pc=function(t,e){var o=t.c,i=t.qa(),r=this.b.length,n=this.g.b.length;t=t.ga();for(var s=c=0,a=o.length;s<a;++s){var p=o[s];if(0<p.length){var h=Vi(t,c,p[0],i,-this.origin[0],-this.origin[1]);if(h.length){for(var l,u=[],c=1,f=p.length;c<f;++c)p[c]!==p[c-1]&&(l=Vi(t,p[c-1],p[c],i,-this.origin[0],-this.origin[1]),u.push(l));Ma(this.g,h,u,i),vp(this,h,u,i)}}c=p[p.length-1]}this.b.length>r&&(this.i.push(r),this.f.push(e),this.j.s&&(this.c.push(r),this.j.s=!1)),this.g.b.length>n&&Pa(this.g,e,n)},Au.rc=function(t,e){var o=t.Bb(),i=t.qa();if(0<o.length){var r=Vi(t=t.ga().map(Number),0,o[0],i,-this.origin[0],-this.origin[1]);if(r.length){for(var n,s=[],a=1,p=o.length;a<p;++a)o[a]!==o[a-1]&&(n=Vi(t,o[a-1],o[a],i,-this.origin[0],-this.origin[1]),s.push(n));this.i.push(this.b.length),this.f.push(e),this.j.s&&(this.c.push(this.b.length),this.j.s=!1),Pa(this.g,e),Ma(this.g,r,s,i),vp(this,r,s,i)}}},Au.Db=function(t){this.l=new zs(this.a),this.o=new zs(this.b),this.i.push(this.b.length),this.g.Db(t),!this.c.length&&0<this.u.length&&(this.u=[]),this.b=this.a=null},Au.Eb=function(t){var e=this.l,o=this.o,i=this.g.Eb(t);return function(){ia(t,e),ia(t,o),i()}},Au.rf=function(t,e){var o,i=sa(e,ka,Oa);return this.v?o=this.v:this.v=o=new Ua(t,i),e.Qc(i),t.enableVertexAttribArray(o.b),t.vertexAttribPointer(o.b,2,5126,!1,8,0),o},Au.sf=function(t,e){t.disableVertexAttribArray(e.b)},Au.Od=function(t,e,o,i){var r=t.getParameter(t.DEPTH_FUNC),n=t.getParameter(t.DEPTH_WRITEMASK);if(i||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),ct(o)){var s=this.i[this.i.length-1];for(o=this.c.length-1;0<=o;--o){var a=this.c[o],p=this.u[o];t.uniform4fv(this.v.B,p),Bs(t,e,a,s),s=a}}else for(var h=this.i.length-2,p=s=this.i[h+1],a=this.c.length-1;0<=a;--a){var l=this.u[a];for(t.uniform4fv(this.v.B,l),l=this.c[a];0<=h&&this.i[h]>=l;){var u=this.i[h];o[G(this.f[h]).toString()]&&(s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),p=u),h--,s=u}s!==p&&(Bs(t,e,s,p),t.clear(t.DEPTH_BUFFER_BIT)),s=p=l}i||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(n),t.depthFunc(r))},Au.ve=function(t,e,o,i,r){for(var n,s=this.i.length-2,a=this.i[s+1],p=this.c.length-1;0<=p;--p){var h=this.u[p];for(t.uniform4fv(this.v.B,h),n=this.c[p];0<=s&&this.i[s]>=n;){var h=this.i[s],l=this.f[s];if(void 0===o[G(l).toString()]&&l.V()&&(void 0===r||nt(r,l.V().G()))&&(t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),Bs(t,e,h,a),a=i(l)))return a;s--,a=h}}},Au.Ma=function(t,e){t=!((t=t?t.b:[0,0,0,0])instanceof CanvasGradient||t instanceof CanvasPattern)&&Be(t).map(function(t,e){return 3!=e?t/255:t})||Xs,this.j.fillColor&&U(t,this.j.fillColor)||(this.j.fillColor=t,this.j.s=!0,this.u.push(t)),e?this.g.Ma(null,e):this.g.Ma(null,new Ga({color:[0,0,0,0],lineWidth:0}))},Lp.prototype.La=function(){},e(Rp,js),Rp.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new kp[e](this.g,this.f),t[e]=o),o},Rp.prototype.i=function(){return ct(this.a)},Rp.prototype.La=function(t,e,o,i,r,n,s,a){var p=Object.keys(this.a).map(Number);p.sort(D);for(var h=0,l=p.length;h<l;++h)for(var u=this.a[p[h].toString()],c=0,f=Ts.length;c<f;++c){var y=u[Ts[c]];void 0!==y&&y.La(t,e,o,i,r,n,s,a,void 0,!1)}},Rp.prototype.Ea=function(t,e,o,i,r,n,s,a,p,h){var l,u=e.b;return u.bindFramebuffer(u.FRAMEBUFFER,ra(e)),Np(this,e,t,i,r,s,a,p,function(t){var e=new Uint8Array(4);if(u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),0<e[3]&&(t=h(t)))return t},!0,l=void 0!==this.c?A(k(t),i*this.c):l)};var Fp=[1,1],kp={Circle:Hs,Image:la,LineString:ma,Polygon:dp,Text:Lp};function Dp(t,e,o,i,r,n,s){this.b=t,this.i=e,this.a=n,this.c=s,this.j=r,this.g=i,this.f=o,this.o=this.l=this.v=null}function Op(){this.c=0,this.b={},this.i=this.a=null}function Up(t,e){ss.call(this,0,e),this.b=document.createElement("CANVAS"),this.b.style.width="100%",this.b.style.height="100%",this.b.style.display="block",this.b.className="ol-unselectable",t.insertBefore(this.b,t.childNodes[0]||null),this.S=this.D=0,this.C=Ye(),this.l=!0,this.i=Mo(this.b,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.f=new ea(this.b,this.i),de(this.b,"webglcontextlost",this.Yn,this),de(this.b,"webglcontextrestored",this.Zn,this),this.a=new Op,this.u=null,this.j=new di(function(t){var e=t[1];t=t[2];var o=e[0]-this.u[0],e=e[1]-this.u[1];return 65536*Math.log(t)+Math.sqrt(o*o+e*e)/t}.bind(this),function(t){return t[0].bb()}),this.B=function(){var t;return this.j.b.length&&(wi(this.j),Gp(this,(t=vi(this.j))[0],t[3],t[4])),!1}.bind(this),this.g=0,Xp(this)}function Gp(t,e,o,i){var r,n,s,a=t.i,p=e.bb();t.a.b.hasOwnProperty(p)?(t=t.a.get(p),a.bindTexture(3553,t.Ib),9729!=t.Ph&&(a.texParameteri(3553,10240,9729),t.Ph=9729),9729!=t.Rh&&(a.texParameteri(3553,10241,9729),t.Rh=9729)):(r=a.createTexture(),a.bindTexture(3553,r),0<i?(n=t.C.canvas,s=t.C,t.D!==o[0]||t.S!==o[1]?(n.width=o[0],n.height=o[1],t.D=o[0],t.S=o[1]):s.clearRect(0,0,o[0],o[1]),s.drawImage(e.Y(),i,i,o[0],o[1],0,0,o[0],o[1]),a.texImage2D(3553,0,6408,6408,5121,n)):a.texImage2D(3553,0,6408,6408,5121,e.Y()),a.texParameteri(3553,10240,9729),a.texParameteri(3553,10241,9729),a.texParameteri(3553,10242,33071),a.texParameteri(3553,10243,33071),t.a.set(p,{Ib:r,Ph:9729,Rh:9729}))}function Bp(t,e,o){var i,r=t.o;Ee(r,e)&&(t=t.f,i=o.viewState,r.b(new cs(e,new Dp(t,i.center,i.resolution,i.rotation,o.size,o.extent,o.pixelRatio),o,null,t)))}function Xp(t){(t=t.i).activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)}e(Dp,vs),(Au=Dp.prototype).rd=function(t){this.Ma(t.Fa(),t.Ga()),this.Ub(t.Y())},Au.zb=function(t){switch(t.U()){case"Point":this.qc(t,null);break;case"LineString":this.mc(t,null);break;case"Polygon":this.rc(t,null);break;case"MultiPoint":this.oc(t,null);break;case"MultiLineString":this.nc(t,null);break;case"MultiPolygon":this.pc(t,null);break;case"GeometryCollection":this.ue(t,null);break;case"Circle":this.Zb(t,null)}},Au.te=function(t,e){(t=(0,e.Za)(t))&&nt(this.a,t.G())&&(this.rd(e),this.zb(t))},Au.ue=function(t){for(var e=0,o=(t=t.a).length;e<o;++e)this.zb(t[e])},Au.qc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Image");i.Ub(this.v),i.qc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.oc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Image");i.Ub(this.v),i.oc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.mc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.mc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.nc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"LineString");i.Ma(null,this.o),i.nc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.rc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.rc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.pc=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Polygon");i.Ma(this.l,this.o),i.pc(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.Zb=function(t,e){var o=this.b,i=new Rp(1,this.a).b(0,"Circle");i.Ma(this.l,this.o),i.Zb(t,e),i.Db(o),i.La(this.b,this.i,this.f,this.g,this.j,this.c,1,{},void 0,!1),i.Eb(o)()},Au.Ub=function(t){this.v=t},Au.Ma=function(t,e){this.l=t,this.o=e},(Au=Op.prototype).clear=function(){this.c=0,this.b={},this.i=this.a=null},Au.forEach=function(t,e){for(var o=this.a;o;)t.call(e,o.Yc,o.uc,this),o=o.Nb},Au.get=function(t){return O(!!(t=this.b[t]),15),t===this.i?t.Yc:(t===this.a?(this.a=this.a.Nb,this.a.vd=null):(t.Nb.vd=t.vd,t.vd.Nb=t.Nb),t.Nb=null,t.vd=this.i,(this.i=this.i.Nb=t).Yc)},Au.pop=function(){var t=this.a;return delete this.b[t.uc],t.Nb&&(t.Nb.vd=null),this.a=t.Nb,this.a||(this.i=null),--this.c,t.Yc},Au.replace=function(t,e){this.get(t),this.b[t].Yc=e},Au.set=function(t,e){O(!(t in this.b),16),e={uc:t,Nb:null,vd:this.i,Yc:e},this.i?this.i.Nb=e:this.a=e,this.i=e,this.b[t]=e,++this.c},e(Up,ss),(Au=Up.prototype).ka=function(){var e=this.i;e.isContextLost()||this.a.forEach(function(t){t&&e.deleteTexture(t.Ib)}),Se(this.f),ss.prototype.ka.call(this)},Au.xk=function(t,e){t=this.i;for(var o;1024<this.a.c-this.g;){if(o=this.a.a.Yc)t.deleteTexture(o.Ib);else{if(+this.a.a.uc==e.index)break;--this.g}this.a.pop()}},Au.U=function(){return"webgl"},Au.Yn=function(t){for(var e in t.preventDefault(),this.a.clear(),this.g=0,t=this.c)t[e].mg()},Au.Zn=function(){Xp(this),this.o.render()},Au.Jg=function(t){var e=this.f,o=this.i;if(o.isContextLost())return!1;if(!t)return this.l&&(this.b.style.display="none",this.l=!1),!1;this.u=t.focus,this.a.set((-t.index).toString(),null),++this.g,Bp(this,"precompose",t);var i=[],r=t.layerStatesArray;h(r);for(var n=t.viewState.resolution,s=0,a=r.length;s<a;++s){var p=r[s];!Kn(p,n)||"ready"!=p.yj||hs(this,p.layer).ng(t,p,e)&&i.push(p)}for(r=t.size[0]*t.pixelRatio,n=t.size[1]*t.pixelRatio,this.b.width==r&&this.b.height==n||(this.b.width=r,this.b.height=n),o.bindFramebuffer(36160,null),o.clearColor(0,0,0,0),o.clear(16384),o.enable(3042),o.viewport(0,0,this.b.width,this.b.height),s=0,a=i.length;s<a;++s)hs(this,(p=i[s]).layer).Gi(t,p,e);this.l||(this.b.style.display="",this.l=!0),as(t),1024<this.a.c-this.g&&t.postRenderFunctions.push(this.xk.bind(this)),this.j.b.length&&(t.postRenderFunctions.push(this.B),t.animate=!0),Bp(this,"postcompose",t),ls(this,t),t.postRenderFunctions.push(ps)},Au.Ea=function(t,e,o,i,r,n,s){if(this.i.isContextLost())return!1;for(var a=e.viewState,p=e.layerStatesArray,h=p.length-1;0<=h;--h){var l=p[h],u=l.layer;if(Kn(l,a.resolution)&&n.call(s,u)&&(l=hs(this,u).Ea(t,e,o,i,r)))return l}},Au.Ei=function(t,e,o,i,r){if(o=!1,this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Kn(p,n.resolution)&&i.call(r,h)&&(o=hs(this,h).Ue(t,e)))return!0}return o},Au.Di=function(t,e,o,i,r){if(this.i.isContextLost())return!1;for(var n=e.viewState,s=e.layerStatesArray,a=s.length-1;0<=a;--a){var p=s[a],h=p.layer;if(Kn(p,n.resolution)&&r.call(i,h)&&(p=hs(this,h).lg(t,e,o,i)))return p}};var Vp=["canvas","webgl"];function Wp(t){je.call(this);var e=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var o={},i={};void 0===t.logo||"boolean"==typeof t.logo&&t.logo?i["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="https://openlayers.org/":"string"==typeof(s=t.logo)?i[s]="":s instanceof HTMLElement?i[G(s).toString()]=s:s&&(O("string"==typeof s.href,44),O("string"==typeof s.src,45),i[s.src]=s.href);s=t.layers instanceof Vn?t.layers:new Vn({layers:t.layers}),o.layergroup=s,o.target=t.target,o.view=void 0!==t.view?t.view:new Er;var r,n,s=ss;void 0!==t.renderer?(Array.isArray(t.renderer)?r=t.renderer:"string"==typeof t.renderer?r=[t.renderer]:O(!1,46),0<=r.indexOf("dom")&&(r=r.concat(Vp))):r=Vp;var a=0;for(n=r.length;a<n;++a){var p=r[a];if("canvas"==p){if(Io){s=As;break}}else if("webgl"==p&&Xo){s=Up;break}}return r=void 0!==t.controls?Array.isArray(t.controls)?new Ne(t.controls.slice()):(O(t.controls instanceof Ne,47),t.controls):ao(),a=void 0!==t.interactions?Array.isArray(t.interactions)?new Ne(t.interactions.slice()):(O(t.interactions instanceof Ne,48),t.interactions):Gn(),t=void 0!==t.overlays?Array.isArray(t.overlays)?new Ne(t.overlays.slice()):(O(t.overlays instanceof Ne,49),t.overlays):new Ne,{controls:r,interactions:a,keyboardEventTarget:e,logos:i,overlays:t,Up:s,values:o}}(t);this.Cf=void 0!==t.loadTilesWhileAnimating&&t.loadTilesWhileAnimating,this.Df=void 0!==t.loadTilesWhileInteracting&&t.loadTilesWhileInteracting,this.If=void 0!==t.pixelRatio?t.pixelRatio:Lo,this.yf=e.logos,this.pa=function(){this.j=void 0,this.Sp.call(this,Date.now())}.bind(this),this.Yb=qn(),this.Jf=qn(),this.ad=0,this.I=this.R=this.T=this.g=this.c=null,this.a=document.createElement("DIV"),this.a.className="ol-viewport"+(ko?" ol-touch":""),this.a.style.position="relative",this.a.style.overflow="hidden",this.a.style.width="100%",this.a.style.height="100%",this.a.style.msTouchAction="none",this.a.style.touchAction="none",this.C=document.createElement("DIV"),this.C.className="ol-overlaycontainer",this.a.appendChild(this.C),this.D=document.createElement("DIV"),this.D.className="ol-overlaycontainer-stopevent";for(var o,i="click dblclick mousedown touchstart MSPointerDown pointerdown mousewheel wheel".split(" "),r=0,n=i.length;r<n;++r)de(this.D,i[r],Pe);for(o in this.a.appendChild(this.D),this.Sa=new fi(this,t.moveTolerance),Zo)de(this.Sa,Zo[o],this.Ih,this);this.va=e.keyboardEventTarget,this.u=null,de(this.a,"wheel",this.ld,this),de(this.a,"mousewheel",this.ld,this),this.l=e.controls,this.o=e.interactions,this.v=e.overlays,this.rg={},this.B=new e.Up(this.a,this),this.na=null,this.xb=[],this.$a=new xi(this.ql.bind(this),this.Wl.bind(this)),this.fa={},de(this,Le("layergroup"),this.El,this),de(this,Le("view"),this.Xl,this),de(this,Le("size"),this.Tl,this),de(this,Le("target"),this.Vl,this),this.H(e.values),this.l.forEach(function(t){t.setMap(this)},this),de(this.l,"add",function(t){t.element.setMap(this)},this),de(this.l,"remove",function(t){t.element.setMap(null)},this),this.o.forEach(function(t){t.setMap(this)},this),de(this.o,"add",function(t){t.element.setMap(this)},this),de(this.o,"remove",function(t){t.element.setMap(null)},this),this.v.forEach(this.kh,this),de(this.v,"add",function(t){this.kh(t.element)},this),de(this.v,"remove",function(t){var e=t.element.g;void 0!==e&&delete this.rg[e.toString()],t.element.setMap(null)},this)}function Zp(t){je.call(this),this.g=t.id,this.l=void 0===t.insertFirst||t.insertFirst,this.v=void 0===t.stopEvent||t.stopEvent,this.c=document.createElement("DIV"),this.c.className="ol-overlay-container ol-selectable",this.c.style.position="absolute",this.autoPan=void 0!==t.autoPan&&t.autoPan,this.j=t.autoPanAnimation||{},this.o=void 0!==t.autoPanMargin?t.autoPanMargin:20,this.a={re:"",Ie:"",nf:"",vf:"",visible:!0},this.f=null,de(this,Le(Hp),this.zl,this),de(this,Le(qp),this.Jl,this),de(this,Le(Jp),this.Nl,this),de(this,Le(_p),this.Pl,this),de(this,Le($p),this.Ql,this),void 0!==t.element&&this.lj(t.element),this.rj(void 0!==t.offset?t.offset:[0,0]),this.uj(void 0!==t.positioning?t.positioning:"top-left"),void 0!==t.position&&this.Ne(t.position)}function Kp(t,e){var o=t.getBoundingClientRect();return[t=o.left+window.pageXOffset,o=o.top+window.pageYOffset,t+e[0],o+e[1]]}function zp(t,e){t.a.visible!==e&&(t.c.style.display=e?"":"none",t.a.visible=e)}function Yp(t){var e,o,i,r,n=t.Me(),s=t.Yh();n&&n.c&&s?(s=n.Ja(s),e=n.Ob(),n=t.c.style,r=t.Dh(),o=t.Eh(),zp(t,!0),i=r[0],r=r[1],"bottom-right"==o||"center-right"==o||"top-right"==o?(""!==t.a.Ie&&(t.a.Ie=n.left=""),i=Math.round(e[0]-s[0]-i)+"px",t.a.nf!=i&&(t.a.nf=n.right=i)):(""!==t.a.nf&&(t.a.nf=n.right=""),"bottom-center"!=o&&"center-center"!=o&&"top-center"!=o||(i-=t.c.offsetWidth/2),i=Math.round(s[0]+i)+"px",t.a.Ie!=i&&(t.a.Ie=n.left=i)),"bottom-left"==o||"bottom-center"==o||"bottom-right"==o?(""!==t.a.vf&&(t.a.vf=n.top=""),s=Math.round(e[1]-s[1]-r)+"px",t.a.re!=s&&(t.a.re=n.bottom=s)):(""!==t.a.re&&(t.a.re=n.bottom=""),"center-left"!=o&&"center-center"!=o&&"center-right"!=o||(r-=t.c.offsetHeight/2),s=Math.round(s[1]+r)+"px",t.a.vf!=s&&(t.a.vf=n.top=s))):zp(t,!1)}e(Wp,je),(Au=Wp.prototype).kk=function(t){this.l.push(t)},Au.lk=function(t){this.o.push(t)},Au.ih=function(t){this.Kc().qd().push(t)},Au.jh=function(t){this.v.push(t)},Au.kh=function(t){var e=t.g;void 0!==e&&(this.rg[e.toString()]=t),t.setMap(this)},Au.ka=function(){Se(this.Sa),Se(this.B),be(this.a,"wheel",this.ld,this),be(this.a,"mousewheel",this.ld,this),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0),this.j&&(cancelAnimationFrame(this.j),this.j=void 0),this.Le(null),je.prototype.ka.call(this)},Au.we=function(t,e,o){if(this.c)return t=this.Wa(t),o=o||{},this.B.Ea(t,this.c,void 0!==o.hitTolerance?o.hitTolerance*this.c.pixelRatio:0,e,null,o.layerFilter||Ui,null)},Au.Im=function(t,e,o,i,r){if(this.c)return this.B.Di(t,this.c,e,void 0!==o?o:null,i||Ui,void 0!==r?r:null)},Au.Yl=function(t,e){return!!this.c&&(t=this.Wa(t),e=e||{},this.B.Ei(t,this.c,void 0!==e.hitTolerance?e.hitTolerance*this.c.pixelRatio:0,e.layerFilter||Ui,null))},Au.Tf=function(t){return this.Wa(this.xe(t))},Au.xe=function(t){var e=this.a.getBoundingClientRect();return[(t=t.changedTouches?t.changedTouches[0]:t).clientX-e.left,t.clientY-e.top]},Au.ag=function(){return this.get("target")},Au.jd=function(){var t=this.ag();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},Au.Wa=function(t){var e=this.c;return e?ts(e.pixelToCoordinateTransform,t.slice()):null},Au.Lk=function(){return this.l},Au.fl=function(){return this.v},Au.el=function(t){return void 0!==(t=this.rg[t.toString()])?t:null},Au.Sk=function(){return this.o},Au.Kc=function(){return this.get("layergroup")},Au.Xh=function(){return this.Kc().qd()},Au.Ja=function(t){var e=this.c;return e?ts(e.coordinateToPixelTransform,t.slice(0,2)):null},Au.Ob=function(){return this.get("size")},Au.Z=function(){return this.get("view")},Au.sl=function(){return this.a},Au.ql=function(t,e,o,i){var r=this.c;return r&&e in r.wantedTiles&&r.wantedTiles[e][t.bb()]?(t=o[0]-r.focus[0],o=o[1]-r.focus[1],65536*Math.log(i)+Math.sqrt(t*t+o*o)/i):1/0},Au.ld=function(t,e){t=new xo(e||t.type,this,t),this.Ih(t)},Au.Ih=function(t){if(this.c){this.na=t.coordinate,t.frameState=this.c;var e,o=this.o.a;if(!1!==this.b(t))for(e=o.length-1;0<=e;e--){var i=o[e];if(i.c()&&!i.handleEvent(t))break}}},Au.Rl=function(){var t,e,o,i=this.c,r=this.$a;for(r.b.length&&(e=t=16,i&&((o=i.viewHints)[0]&&(t=this.Cf?8:0,e=2),o[1]&&(t=this.Df?8:0,e=2)),r.j<t&&(wi(r),Si(r,t,e))),t=0,e=(r=this.xb).length;t<e;++t)r[t](this,i);r.length=0},Au.Tl=function(){this.render()},Au.Vl=function(){var t;if(this.ag()&&(t=this.jd()),this.u){for(var e=0,o=this.u.length;e<o;++e)me(this.u[e]);this.u=null}t?(t.appendChild(this.a),t=this.va||t,this.u=[de(t,"keydown",this.ld,this),de(t,"keypress",this.ld,this)],this.f||(this.f=this.Ad.bind(this),window.addEventListener("resize",this.f,!1))):(qe(this.a),this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0)),this.Ad()},Au.Wl=function(){this.render()},Au.Lh=function(){this.render()},Au.Xl=function(){this.T&&(me(this.T),this.T=null),this.R&&(me(this.R),this.R=null);var t=this.Z();t&&(this.a.setAttribute("data-view",G(t)),this.T=de(t,"propertychange",this.Lh,this),this.R=de(t,"change",this.Lh,this)),this.render()},Au.El=function(){this.I&&(this.I.forEach(me),this.I=null);var t=this.Kc();t&&(this.I=[de(t,"propertychange",this.render,this),de(t,"change",this.render,this)]),this.render()},Au.Tp=function(){this.j&&cancelAnimationFrame(this.j),this.pa()},Au.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.pa))},Au.Mp=function(t){return this.l.remove(t)},Au.Np=function(t){return this.o.remove(t)},Au.Pp=function(t){return this.Kc().qd().remove(t)},Au.Qp=function(t){return this.v.remove(t)},Au.Sp=function(t){var e=this.Ob(),o=this.Z(),i=V(),r=this.c,n=null;if(void 0!==e&&0<e[0]&&0<e[1]&&o&&Nr(o)){for(var n=Ir(o,this.c?this.c.viewHints:void 0),s=this.Kc().Yf(),a={},p=0,h=s.length;p<h;++p)a[G(s[p].layer)]=s[p];p=o.getState(),n={animate:!1,attributions:{},coordinateToPixelTransform:this.Yb,extent:i,focus:this.na||p.center,index:this.ad++,layerStates:a,layerStatesArray:s,logos:ht({},this.yf),pixelRatio:this.If,pixelToCoordinateTransform:this.Jf,postRenderFunctions:[],size:e,skippedFeatureUids:this.fa,tileQueue:this.$a,time:t,usedTiles:{},viewState:p,viewHints:n,wantedTiles:{}}}n&&(n.extent=Q(p.center,p.resolution,p.rotation,n.size,i)),this.c=n,this.B.Jg(n),n&&(n.animate&&this.render(),Array.prototype.push.apply(this.xb,n.postRenderFunctions),!r||this.g&&(st(this.g)||Z(n.extent,this.g))||(this.b(new wo("movestart",this,r)),this.g=I(this.g)),!this.g||n.viewHints[0]||n.viewHints[1]||Z(n.extent,this.g)||(this.b(new wo("moveend",this,n)),g(n.extent,this.g))),this.b(new wo("postrender",this,n)),setTimeout(this.Rl.bind(this),0)},Au.qj=function(t){this.set("layergroup",t)},Au.Qg=function(t){this.set("size",t)},Au.Le=function(t){this.set("target",t)},Au.iq=function(t){this.set("view",t)},Au.xj=function(t){t=G(t).toString(),this.fa[t]=!0,this.render()},Au.Ad=function(){var t,e=this.jd();e?(t=getComputedStyle(e),this.Qg([e.offsetWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)-parseFloat(t.borderRightWidth),e.offsetHeight-parseFloat(t.borderTopWidth)-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)-parseFloat(t.borderBottomWidth)])):this.Qg(void 0)},Au.Cj=function(t){t=G(t).toString(),delete this.fa[t],this.render()},e(Zp,je),(Au=Zp.prototype).Rd=function(){return this.get(Hp)},Au.Jm=function(){return this.g},Au.Me=function(){return this.get(qp)},Au.Dh=function(){return this.get(Jp)},Au.Yh=function(){return this.get(_p)},Au.Eh=function(){return this.get($p)},Au.zl=function(){for(var t=this.c;t.lastChild;)t.removeChild(t.lastChild);(t=this.Rd())&&this.c.appendChild(t)},Au.Jl=function(){this.f&&(qe(this.c),me(this.f),this.f=null);var t=this.Me();t&&(this.f=de(t,"postrender",this.render,this),Yp(this),t=this.v?t.D:t.C,this.l?t.insertBefore(this.c,t.childNodes[0]||null):t.appendChild(this.c))},Au.render=function(){Yp(this)},Au.Nl=function(){Yp(this)},Au.Pl=function(){var t,e,o,i,r,n,s;Yp(this),this.get(_p)&&this.autoPan&&((t=this.Me())&&t.jd()&&(e=Kp(t.jd(),t.Ob()),o=(s=this.Rd()).offsetWidth,r=getComputedStyle(s),o+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),r=s.offsetHeight,i=getComputedStyle(s),n=Kp(s,[o,r=r+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))]),s=this.o,N(e,n)||(o=n[0]-e[0],r=e[2]-n[2],i=n[1]-e[1],n=e[3]-n[3],e=[0,0],o<0?e[0]=o-s:r<0&&(e[0]=Math.abs(r)+s),i<0?e[1]=i-s:n<0&&(e[1]=Math.abs(n)+s),0===e[0]&&0===e[1])||(s=t.Z().wa(),e=[(s=t.Ja(s))[0]+e[0],s[1]+e[1]],t.Z().animate({center:t.Wa(e),duration:this.j.duration,easing:this.j.easing}))))},Au.Ql=function(){Yp(this)},Au.lj=function(t){this.set(Hp,t)},Au.setMap=function(t){this.set(qp,t)},Au.rj=function(t){this.set(Jp,t)},Au.Ne=function(t){this.set(_p,t)},Au.uj=function(t){this.set($p,t)};var Hp="element",qp="map",Jp="offset",_p="position",$p="positioning";function Qp(t){function e(t){t=a.Tf(t),p.a.Z().ob(t),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)}function o(t){t=a.Tf({clientX:t.clientX-l.offsetWidth/2,clientY:t.clientY+l.offsetHeight/2}),h.Ne(t)}t=t||{},this.j=void 0===t.collapsed||t.collapsed,this.o=void 0===t.collapsible||t.collapsible,this.o||(this.j=!1);var i=void 0!==t.className?t.className:"ol-overviewmap",r=void 0!==t.tipLabel?t.tipLabel:"Overview map",n=void 0!==t.collapseLabel?t.collapseLabel:"«";"string"==typeof n?(this.u=document.createElement("span"),this.u.textContent=n):this.u=n,"string"==typeof(n=void 0!==t.label?t.label:"»")?(this.D=document.createElement("span"),this.D.textContent=n):this.D=n;var s=this.o&&!this.j?this.u:this.D;(n=document.createElement("button")).setAttribute("type","button"),n.title=r,n.appendChild(s),de(n,"click",this.an,this),this.C=document.createElement("DIV"),this.C.className="ol-overviewmap-map";var a=this.c=new Wp({controls:new Ne,interactions:new Ne,view:t.view});t.layers&&t.layers.forEach(function(t){a.ih(t)},this),(r=document.createElement("DIV")).className="ol-overviewmap-box",r.style.boxSizing="border-box",this.l=new Zp({position:[0,0],positioning:"bottom-left",element:r}),this.c.jh(this.l),(r=document.createElement("div")).className=i+" ol-unselectable ol-control"+(this.j&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible"),r.appendChild(this.C),r.appendChild(n),Je.call(this,{element:r,render:t.render||th,target:t.target});var p=this,h=this.l,l=this.l.Rd();l.addEventListener("mousedown",function(){window.addEventListener("mousemove",o),window.addEventListener("mouseup",e)})}function th(){var t,e,o,i,r=this.a,n=this.c;r.c&&n.c&&(t=r.Ob(),r=r.Z().dd(t),i=n.Ob(),t=n.Z().dd(i),e=n.Ja(ot(r)),o=n.Ja(_(r)),n=Math.abs(e[0]-o[0]),e=Math.abs(e[1]-o[1]),o=i[0],i=i[1],n<.1*o||e<.1*i||.75*o<n||.75*i<e?eh(this):N(t,r)||(r=this.c,t=this.a.Z(),r.Z().ob(t.wa()))),oh(this)}function eh(t){var e=t.a;t=t.c;var o=e.Ob(),e=e.Z().dd(o);t=t.Z(),at(e,1/(.1*Math.pow(2,Math.log(7.5)/Math.LN2/2))),t.Qf(e)}function oh(t){var e,o,i,r,n,s,a=t.a,p=t.c;a.c&&p.c&&(i=a.Ob(),r=a.Z(),n=p.Z(),p=r.Qa(),a=t.l,e=t.l.Rd(),o=r.dd(i),i=n.Pa(),r=J(o),n=it(o),(t=t.a.Z().wa())&&(Ii(s=[r[0]-t[0],r[1]-t[1]],p),Ti(s,t)),a.Ne(s),e&&(e.style.width=Math.abs((r[0]-n[0])/i)+"px",e.style.height=Math.abs((n[1]-r[1])/i)+"px"))}function ih(t){t.element.classList.toggle("ol-collapsed"),t.j?He(t.u,t.D):He(t.D,t.u),t.j=!t.j;var e=t.c;t.j||e.c||(e.Ad(),eh(t),ve(e,"postrender",function(){oh(this)},t))}function rh(t){var e=void 0!==(t=t||{}).className?t.className:"ol-scale-line";this.o=document.createElement("DIV"),this.o.className=e+"-inner",this.c=document.createElement("DIV"),this.c.className=e+" ol-unselectable",this.c.appendChild(this.o),this.u=null,this.l=void 0!==t.minWidth?t.minWidth:64,this.j=!1,this.B=void 0,this.D="",Je.call(this,{element:this.c,render:t.render||sh,target:t.target}),de(this,Le(ph),this.T,this),this.I(t.units||"metric")}e(Qp,Je),(Au=Qp.prototype).setMap=function(t){var e=this.a;t!==e&&(e&&((e=e.Z())&&be(e,Le("rotation"),this.Ge,this),this.c.Le(null)),Je.prototype.setMap.call(this,t),t&&(this.c.Le(this.C),this.v.push(de(t,"propertychange",this.Kl,this)),this.c.Xh().dc()||this.c.qj(t.Kc()),t=t.Z()))&&(de(t,Le("rotation"),this.Ge,this),Nr(t)&&(this.c.Ad(),eh(this)))},Au.Kl=function(t){"view"===t.key&&((t=t.oldValue)&&be(t,Le("rotation"),this.Ge,this),de(t=this.a.Z(),Le("rotation"),this.Ge,this))},Au.Ge=function(){this.c.Z().Oe(this.a.Z().Qa())},Au.an=function(t){t.preventDefault(),ih(this)},Au.$m=function(){return this.o},Au.cn=function(t){this.o!==t&&(this.o=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.j&&ih(this))},Au.bn=function(t){this.o&&this.j!==t&&ih(this)},Au.Zm=function(){return this.j},Au.gl=function(){return this.c},e(rh,Je);var nh=[1,2,5];function sh(t){(t=t.frameState)?this.u=t.viewState:this.u=null,ah(this)}function ah(t){if(o=t.u){var e=(i=o.projection).sc(),o=Ft(i,o.resolution,o.center)*e,e=t.l*o,i="";"degrees"==(n=t.C())?(o/=i=gt.degrees,e<i/60?(i="″",o*=3600):e<i?(i="′",o*=60):i="°"):"imperial"==n?e<.9144?(i="in",o/=.0254):e<1609.344?(i="ft",o/=.3048):(i="mi",o/=1609.344):"nautical"==n?(o/=1852,i="nm"):"metric"==n?e<.001?(i="μm",o*=1e6):e<1?(i="mm",o*=1e3):e<1e3?i="m":(i="km",o/=1e3):"us"==n?e<.9144?(i="in",o*=39.37):e<1609.344?(i="ft",o/=.30480061):(i="mi",o/=1609.3472):O(!1,33);for(var r,n=3*Math.floor(Math.log(t.l*o)/Math.log(10));;){if(r=nh[(n%3+3)%3]*Math.pow(10,Math.floor(n/3)),e=Math.round(r/o),isNaN(e))return t.c.style.display="none",void(t.j=!1);if(e>=t.l)break;++n}o=r+" "+i,t.D!=o&&(t.o.innerHTML=o,t.D=o),t.B!=e&&(t.o.style.width=e+"px",t.B=e),t.j||(t.c.style.display="",t.j=!0)}else t.j&&(t.c.style.display="none",t.j=!1)}rh.prototype.C=function(){return this.get(ph)},rh.prototype.T=function(){ah(this)},rh.prototype.I=function(t){this.set(ph,t)};var ph="units";function hh(t){t=t||{},this.c=void 0,this.j=lh,this.D=this.l=0,this.I=null,this.na=!1,this.T=void 0!==t.duration?t.duration:200;var e=void 0!==t.className?t.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=e+"-thumb ol-unselectable";var i=document.createElement("div");i.className=e+" ol-unselectable ol-control",i.appendChild(o),this.o=new ri(i),de(this.o,"pointerdown",this.yl,this),de(this.o,"pointermove",this.wl,this),de(this.o,"pointerup",this.xl,this),de(i,"click",this.vl,this),de(o,"click",Pe),Je.call(this,{element:i,render:t.render||uh})}e(hh,Je),hh.prototype.ka=function(){Se(this.o),Je.prototype.ka.call(this)};var lh=0;function uh(t){var e,o,i,r,n;t.frameState&&(this.na||(e=(r=this.element).offsetWidth,o=r.offsetHeight,n=r.firstElementChild,i=getComputedStyle(n),r=n.offsetWidth+parseFloat(i.marginRight)+parseFloat(i.marginLeft),n=n.offsetHeight+parseFloat(i.marginTop)+parseFloat(i.marginBottom),this.I=[r,n],o<e?(this.j=1,this.D=e-r):(this.j=lh,this.l=o-n),this.na=!0),(t=t.frameState.viewState.resolution)!==this.c&&(this.c=t,ch(this,t)))}function ch(t,e){var o,i;e=1-(r=t.a.Z(),o=r.a,i=Math.log(o/r.f)/Math.log(2),function(t){return Math.log(o/t)/Math.log(2)/i}(e));var r=t.element.firstElementChild;1==t.j?r.style.left=t.D*e+"px":r.style.top=t.l*e+"px"}function fh(t,e){return t=t.a.Z(),o=t.a,i=Math.log(o/t.f)/Math.log(2),function(t){return o/Math.pow(2,t*i)}(1-e);var o,i}function yh(t){t=t||{},this.c=t.extent||null;var e=void 0!==t.className?t.className:"ol-zoom-extent",o=void 0!==t.label?t.label:"E",i=void 0!==t.tipLabel?t.tipLabel:"Fit to extent",r=document.createElement("button");r.setAttribute("type","button"),r.title=i,r.appendChild("string"==typeof o?document.createTextNode(o):o),de(r,"click",this.j,this),(o=document.createElement("div")).className=e+" ol-unselectable ol-control",o.appendChild(r),Je.call(this,{element:o,target:t.target})}function gh(t){je.call(this),t=t||{},this.a=null,de(this,Le(wh),this.vm,this),this.gg(void 0!==t.tracking&&t.tracking)}(Au=hh.prototype).setMap=function(t){Je.prototype.setMap.call(this,t),t&&t.render()},Au.vl=function(t){var e=this.a.Z();t=fh(this,x(1===this.j?(t.offsetX-this.I[0]/2)/this.D:(t.offsetY-this.I[1]/2)/this.l,0,1)),e.animate({resolution:e.constrainResolution(t),duration:this.T,easing:eo})},Au.yl=function(t){this.u||t.b.target!==this.element.firstElementChild||(Fr(this.a.Z(),1,1),this.C=t.clientX,this.B=t.clientY,this.u=!0)},Au.wl=function(t){var e;this.u&&(e=this.element.firstElementChild,this.c=fh(this,x(1===this.j?(t.clientX-this.C+parseInt(e.style.left,10))/this.D:(t.clientY-this.B+parseInt(e.style.top,10))/this.l,0,1)),this.a.Z().Vc(this.c),ch(this,this.c),this.C=t.clientX,this.B=t.clientY)},Au.xl=function(){var t;this.u&&(Fr(t=this.a.Z(),1,-1),t.animate({resolution:t.constrainResolution(this.c),duration:this.T,easing:eo}),this.u=!1,this.B=this.C=void 0)},e(yh,Je),yh.prototype.j=function(t){t.preventDefault(),t=this.a.Z();var e=this.c||t.v.G();t.Qf(e)},e(gh,je),(Au=gh.prototype).ka=function(){this.gg(!1),je.prototype.ka.call(this)},Au.ap=function(t){var e;null!==t.alpha&&(e=M(t.alpha),this.set(dh,e),"boolean"==typeof t.absolute&&t.absolute?this.set(mh,e):"number"==typeof t.webkitCompassHeading&&-1!=t.webkitCompassAccuracy&&this.set(mh,M(t.webkitCompassHeading))),null!==t.beta&&this.set(vh,M(t.beta)),null!==t.gamma&&this.set(bh,M(t.gamma)),this.s()},Au.Fk=function(){return this.get(dh)},Au.Ik=function(){return this.get(vh)},Au.Ok=function(){return this.get(bh)},Au.um=function(){return this.get(mh)},Au.Th=function(){return this.get(wh)},Au.vm=function(){var t;No&&((t=this.Th())&&!this.a?this.a=de(window,"deviceorientation",this.ap,this):t||null===this.a||(me(this.a),this.a=null))},Au.gg=function(t){this.set(wh,t)};var dh="alpha",vh="beta",bh="gamma",mh="heading",wh="tracking";function xh(t){this.f=t.opacity,this.l=t.rotateWithView,this.g=t.rotation,this.a=t.scale,this.v=t.snapToPixel}function Sh(t){this.D=this.u=this.c=null,this.Va=void 0!==t.fill?t.fill:null,this.oa=[0,0],this.o=t.points,this.b=void 0!==t.radius?t.radius:t.radius1,this.i=t.radius2,this.j=void 0!==t.angle?t.angle:0,this.Ya=void 0!==t.stroke?t.stroke:null,this.B=this.ra=this.C=null,this.S=t.atlasManager,Mh(this,this.S),xh.call(this,{opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel})}function Mh(t,e){var o,i="",r="",n=0,s=null,a=0;t.Ya&&(o=ze(o=null===(o=t.Ya.a)?gs:o),void 0===(a=t.Ya.c)&&(a=1),s=t.Ya.i,Ro||(s=null),void 0===(r=t.Ya.j)&&(r="round"),void 0===(i=t.Ya.f)&&(i="round"),void 0===(n=t.Ya.o)&&(n=10));var p,h=2*(t.b+a)+1,i={strokeStyle:o,zj:a,size:h,lineCap:i,lineDash:s,lineJoin:r,miterLimit:n};void 0===e?(p=Ye(h,h),t.u=p.canvas,e=h=t.u.width,t.rh(i,p,0,0),t.Va?t.D=t.u:(p=Ye(i.size,i.size),t.D=p.canvas,t.qh(i,p,0,0))):(h=Math.round(h),(r=!t.Va)&&(p=t.qh.bind(t,i)),n=t.Ya?(void 0===(n=t.Ya).b&&(n.b="s",n.b=n.a?"string"==typeof n.a?n.b+n.a:n.b+G(n.a).toString():n.b+"-",n.b+=","+(void 0!==n.f?n.f.toString():"-")+","+(n.i?n.i.toString():"-")+","+(void 0!==n.g?n.g:"-")+","+(void 0!==n.j?n.j:"-")+","+(void 0!==n.o?n.o.toString():"-")+","+(void 0!==n.c?n.c.toString():"-")),n.b):"-",s=t.Va?(void 0===(s=t.Va).a&&(s.a=s.b instanceof CanvasPattern||s.b instanceof CanvasGradient?G(s.b).toString():"f"+(s.b?Xe(s.b):"-")),s.a):"-",t.c&&n==t.c[1]&&s==t.c[2]&&t.b==t.c[3]&&t.i==t.c[4]&&t.j==t.c[5]&&t.o==t.c[6]||(t.c=["r"+n+s+(void 0!==t.b?t.b.toString():"-")+(void 0!==t.i?t.i.toString():"-")+(void 0!==t.j?t.j.toString():"-")+(void 0!==t.o?t.o.toString():"-"),n,s,t.b,t.i,t.j,t.o]),p=e.add(t.c[0],h,h,t.rh.bind(t,i),p),t.u=p.image,t.oa=[p.offsetX,p.offsetY],e=p.image.width,t.D=r?p.Zl:t.u),t.C=[h/2,h/2],t.ra=[h,h],t.B=[e,e]}function Ph(t){Sh.call(this,{points:1/0,fill:(t=t||{}).fill,radius:t.radius,snapToPixel:t.snapToPixel,stroke:t.stroke,atlasManager:t.atlasManager})}function Ah(t){t=t||{},this.b=void 0!==t.color?t.color:null,this.a=void 0}function Eh(t){t=t||{},this.Gc=null,this.Za=Rh,void 0!==t.geometry&&this.Ra(t.geometry),this.Va=void 0!==t.fill?t.fill:null,this.M=void 0!==t.image?t.image:null,this.Ya=void 0!==t.stroke?t.stroke:null,this.Ia=void 0!==t.text?t.text:null,this.Fj=t.zIndex}function Th(t){var e;return"function"!=typeof t&&(e=Array.isArray(t)?t:(O(t instanceof Eh,41),[t]),t=function(){return e}),t}(Au=xh.prototype).Ze=function(){return this.f},Au.$e=function(){return this.l},Au.af=function(){return this.g},Au.bf=function(){return this.a},Au.Ae=function(){return this.v},Au.td=function(t){this.f=t},Au.cf=function(t){this.g=t},Au.ud=function(t){this.a=t},e(Sh,xh),(Au=Sh.prototype).clone=function(){var t=new Sh({fill:this.Fa()?this.Fa().clone():void 0,points:this.o,radius:this.b,radius2:this.i,angle:this.j,snapToPixel:this.v,stroke:this.Ga()?this.Ga().clone():void 0,rotation:this.g,rotateWithView:this.l,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Au.Hc=function(){return this.C},Au.Pi=function(){return this.j},Au.Fa=function(){return this.Va},Au.qg=function(){return this.D},Au.Y=function(){return this.u},Au.ye=function(){return this.B},Au.Ye=function(){return 2},Au.Oc=function(){return this.oa},Au.Qi=function(){return this.o},Au.Ri=function(){return this.b},Au.Fh=function(){return this.i},Au.ic=function(){return this.ra},Au.Ga=function(){return this.Ya},Au.Nh=function(){},Au.load=function(){},Au.Bj=function(){},Au.rh=function(t,e,o,i){e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath();var r=this.o;if(1/0===r)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else{var n=void 0!==this.i?this.i:this.b;for(n!==this.b&&(r*=2),o=0;o<=r;o++){i=2*o*Math.PI/r-Math.PI/2+this.j;var s=o%2?n:this.b;e.lineTo(t.size/2+s*Math.cos(i),t.size/2+s*Math.sin(i))}}this.Va&&(null===(o=this.Va.b)&&(o=fs),e.fillStyle=ze(o),e.fill()),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},Au.qh=function(t,e,o,i){var r;if(e.setTransform(1,0,0,1,0,0),e.translate(o,i),e.beginPath(),o=this.o,1/0===o)e.arc(t.size/2,t.size/2,this.b,0,2*Math.PI,!0);else for((i=void 0!==this.i?this.i:this.b)!==this.b&&(o*=2),r=0;r<=o;r++){var n=2*r*Math.PI/o-Math.PI/2+this.j,s=r%2?i:this.b;e.lineTo(t.size/2+s*Math.cos(n),t.size/2+s*Math.sin(n))}e.fillStyle=fs,e.fill(),this.Ya&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.zj,t.lineDash&&e.setLineDash(t.lineDash),e.stroke()),e.closePath()},e(Ph,Sh),Ph.prototype.clone=function(){var t=new Ph({fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,radius:this.b,snapToPixel:this.v,atlasManager:this.S});return t.td(this.f),t.ud(this.a),t},Ph.prototype.Uc=function(t){this.b=t,Mh(this,this.S)},Ah.prototype.clone=function(){var t=this.b;return new Ah({color:t&&t.slice?t.slice():t||void 0})},Ah.prototype.i=function(){return this.b},Ah.prototype.c=function(t){this.b=t,this.a=void 0},(Au=Eh.prototype).clone=function(){var t=this.V();return new Eh({geometry:t=t&&t.clone?t.clone():t,fill:this.Fa()?this.Fa().clone():void 0,image:this.Y()?this.Y().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,text:this.Na()?this.Na().clone():void 0,zIndex:this.Ba()})},Au.V=function(){return this.Gc},Au.Pk=function(){return this.Za},Au.Fa=function(){return this.Va},Au.pf=function(t){this.Va=t},Au.Y=function(){return this.M},Au.Og=function(t){this.M=t},Au.Ga=function(){return this.Ya},Au.qf=function(t){this.Ya=t},Au.Na=function(){return this.Ia},Au.xd=function(t){this.Ia=t},Au.Ba=function(){return this.Fj},Au.Ra=function(e){"function"==typeof e?this.Za=e:"string"==typeof e?this.Za=function(t){return t.get(e)}:e?e&&(this.Za=function(){return e}):this.Za=Rh,this.Gc=e},Au.Vb=function(t){this.Fj=t};var jh=null;function Ch(){var t,e;return jh||(t=new Ah({color:"rgba(255,255,255,0.4)"}),e=new Ga({color:"#3399CC",width:1.25}),jh=[new Eh({image:new Ph({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]),jh}function Lh(){var t={},e=[255,255,255,1],o=[0,153,255,1];return t.Polygon=[new Eh({fill:new Ah({color:[255,255,255,.5]})})],t.MultiPolygon=t.Polygon,t.LineString=[new Eh({stroke:new Ga({color:e,width:5})}),new Eh({stroke:new Ga({color:o,width:3})})],t.MultiLineString=t.LineString,t.Circle=t.Polygon.concat(t.LineString),t.Point=[new Eh({image:new Ph({radius:6,fill:new Ah({color:o}),stroke:new Ga({color:e,width:1.5})}),zIndex:1/0})],t.MultiPoint=t.Point,t.GeometryCollection=t.Polygon.concat(t.LineString,t.Point),t}function Rh(t){return t.V()}function Ih(t){je.call(this),this.a=void 0,this.c="geometry",this.g=null,this.j=void 0,this.f=null,de(this,Le(this.c),this.Ee,this),void 0!==t&&(t instanceof Bi||!t?this.Ra(t):this.H(t))}e(Ih,je),(Au=Ih.prototype).clone=function(){var t=new Ih(this.N());t.Tc(this.c);var e=this.V();return e&&t.Ra(e.clone()),(e=this.g)&&t.hg(e),t},Au.V=function(){return this.get(this.c)},Au.wm=function(){return this.a},Au.Qk=function(){return this.c},Au.xm=function(){return this.g},Au.Lc=function(){return this.j},Au.Al=function(){this.s()},Au.Ee=function(){this.f&&(me(this.f),this.f=null);var t=this.V();t&&(this.f=de(t,"change",this.Al,this)),this.s()},Au.Ra=function(t){this.set(this.c,t)},Au.hg=function(t){this.j=(this.g=t)?function(e){var t;{var o;t="function"==typeof e?2==e.length?function(t){return e(this,t)}:e:(o=Array.isArray(e)?e:(O(e instanceof Eh,41),[e]),function(){return o})}return t}(t):void 0,this.s()},Au.jc=function(t){this.a=t,this.s()},Au.Tc=function(t){be(this,Le(this.c),this.Ee,this),this.c=t,de(this,Le(this.c),this.Ee,this),this.Ee()};var Nh=document.implementation.createDocument("","",null);function Fh(t,e){return Nh.createElementNS(t,e)}function kh(t,e){return function t(e,o,i){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)o?i.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(e.nodeValue);else for(e=e.firstChild;e;e=e.nextSibling)t(e,o,i);return i}(t,e,[]).join("")}function Dh(t){return t instanceof Document}function Oh(t){return t instanceof Node}function Uh(t){return(new DOMParser).parseFromString(t,"application/xml")}function Gh(o,i){return function(t,e){void 0!==(t=o.call(i,t,e))&&c(e[e.length-1],t)}}function Bh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&e[e.length-1].push(t)}}function Xh(o,i){return function(t,e){void 0!==(t=o.call(void 0!==i?i:this,t,e))&&(e[e.length-1]=t)}}function Vh(i){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e=e[e.length-1],((t=t.localName)in e?e[t]:e[t]=[]).push(o))}}function Wh(i,r){return function(t,e){var o=i.call(this,t,e);void 0!==o&&(e[e.length-1][void 0!==r?r:t.localName]=o)}}function Zh(i,r){return function(t,e,o){i.call(void 0!==r?r:this,t,e,o),o[o.length-1].node.appendChild(t)}}function Kh(r){var n,s;return function(t,e,o){var i;n||(n={},(i={})[t.localName]=r,n[t.namespaceURI]=i,s=zh(t.localName)),$h(n,s,e,o)}}function zh(i,r){return function(t,e,o){return t=e[e.length-1].node,void 0===(e=i)&&(e=o),Fh(o=void 0===(o=r)?t.namespaceURI:o,e)}}var Yh=zh();function Hh(t,e){for(var o=e.length,i=Array(o),r=0;r<o;++r)i[r]=t[e[r]];return i}function qh(t,e,o){o=void 0!==o?o:{};for(var i=0,r=t.length;i<r;++i)o[t[i]]=e;return o}function Jh(t,e,o,i){for(e=e.firstElementChild;e;e=e.nextElementSibling){var r=t[e.namespaceURI];void 0!==r&&(r=r[e.localName])&&r.call(i,e,o)}}function _h(t,e,o,i,r){return i.push(t),Jh(e,o,i,r),i.pop()}function $h(t,e,o,i,r,n){for(var s,a,p=(void 0!==r?r:o).length,h=0;h<p;++h)void 0!==(s=o[h])&&(void 0!==(a=e.call(n,s,i,void 0!==r?r[h]:void 0))&&t[a.namespaceURI][a.localName].call(n,a,s,i))}function Qh(t,e,o,i,r,n,s){r.push(t),$h(e,o,i,r,n,s),r.pop()}function tl(r,n,s,a){return function(t,e,o){var i=new XMLHttpRequest;i.open("GET","function"==typeof r?r(t,e,o):r,!0),"arraybuffer"==n.U()&&(i.responseType="arraybuffer"),i.onload=function(){var t,e;!i.status||200<=i.status&&i.status<300?("json"==(t=n.U())||"text"==t?e=i.responseText:"xml"==t?(e=i.responseXML)||(e=Uh(i.responseText)):"arraybuffer"==t&&(e=i.response),e?s.call(this,n.Oa(e,{featureProjection:o}),n.kb(e)):a.call(this)):a.call(this)}.bind(this),i.onerror=function(){a.call(this)}.bind(this),i.send()}}function el(t,e){return tl(t,e,function(t){this.cd(t)},w)}function ol(){this.f=this.defaultDataProjection=null}function il(t,e,o){var i;return o&&(i={dataProjection:o.dataProjection||t.kb(e),featureProjection:o.featureProjection}),rl(t,i)}function rl(t,e){return ht({dataProjection:t.defaultDataProjection,featureProjection:t.f},e)}function nl(t,e,o){var i,r=o?Bt(o.featureProjection):null,n=o?Bt(o.dataProjection):null,r=r&&n&&!Xt(r,n)?t instanceof Bi?(e?t.clone():t).tb(e?r:n,e?n:r):Yt(t,n,r):t;return e&&o&&void 0!==o.decimals&&(i=Math.pow(10,o.decimals),(r=r===t?r.clone():r).Dc(function(t){for(var e=0,o=t.length;e<o;++e)t[e]=Math.round(t[e]*i)/i;return t})),r}function sl(){ol.call(this)}function al(t){return"string"==typeof t?(t=JSON.parse(t))?t:null:null!==t?t:null}function pl(t,e,o,i,r,n){var s=NaN,a=NaN;if(1===(p=(o-e)/i))s=t[e],a=t[e+1];else if(2==p)s=(1-r)*t[e]+r*t[e+i],a=(1-r)*t[e+1]+r*t[e+i+1];else if(p){for(var a=t[e],p=t[e+1],h=0,s=[0],l=e+i;l<o;l+=i){var u=t[l],c=t[l+1],h=h+Math.sqrt((u-a)*(u-a)+(c-p)*(c-p));s.push(h),a=u,p=c}for(o=r*h,p=0,h=s.length,l=!1;p<h;)(a=+D(s[r=p+(h-p>>1)],o))<0?p=r+1:(h=r,l=!a);a=(r=l?p:~p)<0?(o=(o-s[-r-2])/(s[-r-1]-s[-r-2]),s=f(t[e+=(-r-2)*i],t[e+i],o),f(t[e+1],t[e+i+1],o)):(s=t[e+r*i],t[e+r*i+1])}return n?(n[0]=s,n[1]=a,n):[s,a]}function hl(t,e,o,i,r,n){if(o==e)return null;if(r<t[e+i-1])return n?((o=t.slice(e,e+i))[i-1]=r,o):null;if(t[o-1]<r)return n?((o=t.slice(o-i,o))[i-1]=r,o):null;if(r==t[e+i-1])return t.slice(e,e+i);for(e/=i,o/=i;e<o;)r<t[((n=e+o>>1)+1)*i-1]?o=n:e=n+1;if(r==(o=t[e*i-1]))return t.slice((e-1)*i,(e-1)*i+i);var s;for(n=(r-o)/(t[(e+1)*i-1]-o),o=[],s=0;s<i-1;++s)o.push(f(t[(e-1)*i+s],t[e*i+s],n));return o.push(r),o}function ll(t,e){Wi.call(this),this.c=null,this.u=this.D=this.j=-1,this.ma(t,e)}function ul(t){return t.j!=t.i&&(t.c=t.wh(.5,t.c),t.j=t.i),t.c}function cl(t,e){Wi.call(this),this.c=[],this.j=this.u=-1,this.ma(t,e)}function fl(t){var e=[],o=t.A,i=0,r=t.c;t=t.a;for(var n=0,s=r.length;n<s;++n){var a=r[n];c(e,i=pl(o,i,a,t,.5)),i=a}return e}function yl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja),c(i,a.ga()),r.push(i.length)}t.ba(o,i,r)}function gl(t,e){Wi.call(this),this.ma(t,e)}function dl(t,e){Wi.call(this),this.c=[],this.u=-1,this.D=null,this.I=this.C=this.B=-1,this.j=null,this.ma(t,e)}function vl(t){if(t.u!=t.i){var e=t.A,o=t.c,i=t.a,r=0,n=[],s=0;for(h=o.length;s<h;++s){var a=o[s],r=W(e,r,a[0],i);n.push((r[0]+r[2])/2,(r[1]+r[3])/2),r=a[a.length-1]}for(e=bl(t),o=t.c,i=t.a,h=[],a=s=0,r=o.length;a<r;++a)var p=o[a],h=cr(e,s,p,i,n,2*a,h),s=p[p.length-1];t.D=h,t.u=t.i}return t.D}function bl(t){if(t.I!=t.i){var e=t.A;t:{for(var o=t.c,i=0,r=o.length;i<r;++i)if(!vr(e,o[i],t.a,void 0)){o=!1;break t}o=!0}o?t.j=e:(t.j=e.slice(),t.j.length=mr(t.j,t.c,t.a)),t.I=t.i}return t.j}function ml(t,e,o,i){Ki(t,e,o),t.c=i,t.s()}function wl(t,e){for(var o=t.ja,i=[],r=[],n=0,s=e.length;n<s;++n){var a=e[n];n||(o=a.ja);for(var p=i.length,h=a.Bb(),l=0,u=h.length;l<u;++l)h[l]+=p;c(i,a.ga()),r.push(h)}ml(t,o,i,r)}function xl(t){t=t||{},ol.call(this),this.b=t.geometryName}function Sl(t,e){if(!t)return null;if("number"==typeof t.x&&"number"==typeof t.y)var o="Point";else if(t.points)o="MultiPoint";else if(t.paths)o=1===t.paths.length?"LineString":"MultiLineString";else if(t.rings){for(var i=t.rings,r=Ml(t),n=[],s=[],o=[],a=0,p=i.length;a<p;++a)n.length=0,er(n,0,i[a],r.length),dr(n,0,n.length,r.length)?s.push([i[a]]):o.push(i[a]);for(;o.length;){for(i=o.shift(),r=!1,a=s.length-1;0<=a;a--)if(N(new ar(s[a][0]).G(),new ar(i).G())){s[a].push(i),r=!0;break}r||s.push([i.reverse()])}t=ht({},t),1===s.length?(o="Polygon",t.rings=s[0]):(o="MultiPolygon",t.rings=s)}return nl((0,Al[o])(t),!1,e)}function Ml(t){var e="XY";return!0===t.hasZ&&!0===t.hasM?e="XYZM":!0===t.hasZ?e="XYZ":!0===t.hasM&&(e="XYM"),e}function Pl(t){return{hasZ:"XYZ"===(t=t.ja)||"XYZM"===t,hasM:"XYM"===t||"XYZM"===t}}e(sl,ol),(Au=sl.prototype).U=function(){return"json"},Au.Tb=function(t,e){return this.Rc(al(t),il(this,t,e))},Au.Oa=function(t,e){return this.yg(al(t),il(this,t,e))},Au.Sc=function(t,e){return this.Cg(al(t),il(this,t,e))},Au.kb=function(t){return this.Fg(al(t))},Au.Bd=function(t,e){return JSON.stringify(this.Zc(t,e))},Au.Wb=function(t,e){return JSON.stringify(this.he(t,e))},Au.$c=function(t,e){return JSON.stringify(this.je(t,e))},e(ll,Wi),(Au=ll.prototype).mk=function(t){this.A?c(this.A,t):this.A=t.slice(),this.s()},Au.clone=function(){var t=new ll(null);return t.ba(this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.u!=this.i&&(this.D=Math.sqrt(Ji(this.A,0,this.A.length,this.a,0)),this.u=this.i),$i(this.A,0,this.A.length,this.a,this.D,!1,t,e,o,i))},Au.Ck=function(t,e){return fr(this.A,0,this.A.length,this.a,t,e)},Au.nn=function(t,e){return"XYM"!=this.ja&&"XYZM"!=this.ja?null:hl(this.A,0,this.A.length,this.a,t,void 0!==e&&e)},Au.X=function(){return ir(this.A,0,this.A.length,this.a)},Au.wh=function(t,e){return pl(this.A,0,this.A.length,this.a,t,e)},Au.pn=function(){for(var t=this.A,e=this.a,o=t[0],i=t[1],r=0,n=0+e;n<this.A.length;n+=e)var s=t[n],a=t[n+1],r=r+Math.sqrt((s-o)*(s-o)+(a-i)*(a-i)),o=s,i=a;return r},Au.hd=function(t){var e=[];return e.length=nr(this.A,0,this.A.length,this.a,t,e,0),(t=new ll(null)).ba("XY",e),t},Au.U=function(){return"LineString"},Au.Xa=function(t){return yr(this.A,0,this.A.length,this.a,t)},Au.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Au.ba=function(t,e){Ki(this,t,e),this.s()},e(cl,Wi),(Au=cl.prototype).nk=function(t){this.A?c(this.A,t.ga().slice()):this.A=t.ga().slice(),this.c.push(this.A.length),this.s()},Au.clone=function(){var t=new cl(null);return t.ba(this.ja,this.A.slice(),this.c.slice()),t},Au.Kb=function(t,e,o,i){return i<E(this.G(),t,e)?i:(this.j!=this.i&&(this.u=Math.sqrt(_i(this.A,0,this.c,this.a,0)),this.j=this.i),Qi(this.A,0,this.c,this.a,this.u,!1,t,e,o,i))},Au.rn=function(t,e,o){return"XYM"!=this.ja&&"XYZM"!=this.ja||!this.A.length?null:function(t,e,o,i,r,n){var s=0;if(n)return hl(t,s,e[e.length-1],o,i,r);if(i<t[o-1])return r?((t=t.slice(0,o))[o-1]=i,t):null;if(t[t.length-1]<i)return r?((t=t.slice(t.length-o))[o-1]=i,t):null;for(r=0,n=e.length;r<n;++r){var a=e[r];if(s!=a){if(i<t[s+o-1])break;if(i<=t[a-1])return hl(t,s,a,o,i,!1);s=a}}return null}(this.A,this.c,this.a,t,void 0!==e&&e,void 0!==o&&o)},Au.X=function(){return rr(this.A,0,this.c,this.a)},Au.Bb=function(){return this.c},Au.Yk=function(t){if(t<0||this.c.length<=t)return null;var e=new ll(null);return e.ba(this.ja,this.A.slice(t?this.c[t-1]:0,this.c[t])),e},Au.gd=function(){for(var t=this.A,e=this.c,o=this.ja,i=[],r=0,n=0,s=e.length;n<s;++n){var a=e[n],p=new ll(null);p.ba(o,t.slice(r,a)),i.push(p),r=a}return i},Au.hd=function(t){for(var e=[],o=[],i=this.A,r=this.c,n=this.a,s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],a=nr(i,s,l,n,t,e,a);o.push(a),s=l}return e.length=a,(t=new cl(null)).ba("XY",e,o),t},Au.U=function(){return"MultiLineString"},Au.Xa=function(t){t:{for(var e=this.A,o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){if(yr(e,r,o[n],i,t)){t=!0;break t}r=o[n]}t=!1}return t},Au.ma=function(t,e){t?(zi(this,e,t,2),this.A||(this.A=[]),t=or(this.A,0,t,this.a,this.c),this.A.length=t.length?t[t.length-1]:0,this.s()):this.ba("XY",null,this.c)},Au.ba=function(t,e,o){Ki(this,t,e),this.c=o,this.s()},e(gl,Wi),(Au=gl.prototype).qk=function(t){this.A?c(this.A,t.ga()):this.A=t.ga().slice(),this.s()},Au.clone=function(){var t=new gl(null);return t.ba(this.ja,this.A.slice()),t},Au.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.A,n=this.a,s=0,a=r.length;s<a;s+=n){var p=y(t,e,r[s],r[s+1]);if(p<i){for(i=p,p=0;p<n;++p)o[p]=r[s+p];o.length=n}}return i},Au.X=function(){return ir(this.A,0,this.A.length,this.a)},Au.il=function(t){var e=this.A?this.A.length/this.a:0;return t<0||e<=t?null:((e=new hr(null)).ba(this.ja,this.A.slice(t*this.a,(t+1)*this.a)),e)},Au.Zd=function(){for(var t=this.A,e=this.ja,o=this.a,i=[],r=0,n=t.length;r<n;r+=o){var s=new hr(null);s.ba(e,t.slice(r,r+o)),i.push(s)}return i},Au.U=function(){return"MultiPoint"},Au.Xa=function(t){for(var e=this.A,o=this.a,i=0,r=e.length;i<r;i+=o)if(j(t,e[i],e[i+1]))return!0;return!1},Au.ma=function(t,e){t?(zi(this,e,t,1),this.A||(this.A=[]),this.A.length=er(this.A,0,t,this.a),this.s()):this.ba("XY",null)},Au.ba=function(t,e){Ki(this,t,e),this.s()},e(dl,Wi),(Au=dl.prototype).rk=function(t){if(this.A){var e=this.A.length;c(this.A,t.ga());for(var o=0,i=(t=t.Bb().slice()).length;o<i;++o)t[o]+=e}else this.A=t.ga().slice(),t=t.Bb().slice(),this.c.push();this.c.push(t),this.s()},Au.clone=function(){for(var t=new dl(null),e=this.c.length,o=Array(e),i=0;i<e;++i)o[i]=this.c[i].slice();return ml(t,this.ja,this.A.slice(),o),t},Au.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;if(this.C!=this.i){for(var r=this.c,n=0,s=0,a=0,p=r.length;a<p;++a)var h=r[a],s=_i(this.A,n,h,this.a,s),n=h[h.length-1];this.B=Math.sqrt(s),this.C=this.i}r=bl(this),n=this.c,s=this.a;for(var a=this.B,h=[NaN,NaN],l=p=0,u=n.length;l<u;++l){var c=n[l];i=Qi(r,p,c,s,a,!0,t,e,o,i,h),p=c[c.length-1]}return i},Au.Mc=function(t,e){t:{var o=bl(this),i=this.c,r=0;if(i.length)for(var n=0,s=i.length;n<s;++n){var a=i[n];if(ur(o,r,a,this.a,t,e)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Au.sn=function(){for(var t=bl(this),e=this.c,o=0,i=0,r=0,n=e.length;r<n;++r)var s=e[r],i=i+Hi(t,o,s,this.a),o=s[s.length-1];return i},Au.X=function(t){void 0!==t?mr(e=bl(this).slice(),this.c,this.a,t):e=this.A,t=e;for(var e=this.c,o=this.a,i=0,r=[],n=0,s=0,a=e.length;s<a;++s){var p=e[s];r[n++]=rr(t,i,p,o,r[n]),i=p[p.length-1]}return r.length=n,r},Au.Uk=function(){var t=new gl(null);return t.ba("XY",vl(this).slice()),t},Au.hd=function(t){var e=[],o=[],i=this.A,r=this.c,n=this.a;t=Math.sqrt(t);for(var s=0,a=0,p=0,h=r.length;p<h;++p){var l=r[p],u=[],a=sr(i,s,l,n,t,e,a,u);o.push(u),s=l[l.length-1]}return e.length=a,ml(i=new dl(null),"XY",e,o),i},Au.jl=function(t){if(t<0||this.c.length<=t)return null;var e;e=t?(e=this.c[t-1])[e.length-1]:0;var o=(t=this.c[t].slice())[t.length-1];if(e)for(var i=0,r=t.length;i<r;++i)t[i]-=e;return(i=new wr(null)).ba(this.ja,this.A.slice(e,o),t),i},Au.Td=function(){for(var t=this.ja,e=this.A,o=this.c,i=[],r=0,n=0,s=o.length;n<s;++n){var a=o[n].slice(),p=a[a.length-1];if(r)for(var h=0,l=a.length;h<l;++h)a[h]-=r;(h=new wr(null)).ba(t,e.slice(r,p),a),i.push(h),r=p}return i},Au.U=function(){return"MultiPolygon"},Au.Xa=function(t){t:{for(var e=bl(this),o=this.c,i=this.a,r=0,n=0,s=o.length;n<s;++n){var a=o[n];if(gr(e,r,a,i,t)){t=!0;break t}r=a[a.length-1]}t=!1}return t},Au.ma=function(t,e){if(t){zi(this,e,t,3),this.A||(this.A=[]),e=this.A;for(var o=this.a,i=0,r=(r=this.c)||[],n=0,s=0,a=t.length;s<a;++s)i=or(e,i,t[s],o,r[n]),i=(r[n++]=i)[i.length-1];r.length=n,r.length?(t=r[r.length-1],this.A.length=t.length?t[t.length-1]:0):this.A.length=0,this.s()}else ml(this,"XY",null,this.c)},e(xl,sl);var Al={Point:function(t){return void 0!==t.m&&void 0!==t.z?new hr([t.x,t.y,t.z,t.m],"XYZM"):void 0!==t.z?new hr([t.x,t.y,t.z],"XYZ"):void 0!==t.m?new hr([t.x,t.y,t.m],"XYM"):new hr([t.x,t.y])},LineString:function(t){return new ll(t.paths[0],Ml(t))},Polygon:function(t){return new wr(t.rings,Ml(t))},MultiPoint:function(t){return new gl(t.points,Ml(t))},MultiLineString:function(t){return new cl(t.paths,Ml(t))},MultiPolygon:function(t){return new dl(t.rings,Ml(t))}},El={Point:function(t){var e,o=t.X();return"XYZ"===(t=t.ja)?e={x:o[0],y:o[1],z:o[2]}:"XYM"===t?e={x:o[0],y:o[1],m:o[2]}:"XYZM"===t?e={x:o[0],y:o[1],z:o[2],m:o[3]}:"XY"===t?e={x:o[0],y:o[1]}:O(!1,34),e},LineString:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:[t.X()]}},Polygon:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,rings:t.X(!1)}},MultiPoint:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,points:t.X()}},MultiLineString:function(t){var e=Pl(t);return{hasZ:e.hasZ,hasM:e.hasM,paths:t.X()}},MultiPolygon:function(t){var e=Pl(t);t=t.X(!1);for(var o=[],i=0;i<t.length;i++)for(var r=t[i].length-1;0<=r;r--)o.push(t[i][r]);return{hasZ:e.hasZ,hasM:e.hasM,rings:o}}};function Tl(t,e){return(0,El[t.U()])(nl(t,!0,e),e)}function jl(t){this.kc=t}function Cl(t,e){this.kc=t,this.b=Array.prototype.slice.call(arguments,1),O(2<=this.b.length,57)}function Ll(t){var e=["And"].concat(Array.prototype.slice.call(arguments));Cl.apply(this,e)}function Rl(t,e,o){this.kc="BBOX",this.geometryName=t,this.extent=e,this.srsName=o}function Il(t,e){this.kc=t,this.b=e}function Nl(t,e,o){Il.call(this,"During",t),this.a=e,this.i=o}function Fl(t,e,o,i){Il.call(this,t,e),this.i=o,this.a=i}function kl(t,e,o){Fl.call(this,"PropertyIsEqualTo",t,e,o)}function Dl(t,e){Fl.call(this,"PropertyIsGreaterThan",t,e)}function Ol(t,e){Fl.call(this,"PropertyIsGreaterThanOrEqualTo",t,e)}function Ul(t,e,o,i){this.kc=t,this.geometryName=e||"the_geom",this.geometry=o,this.srsName=i}function Gl(t,e,o){Ul.call(this,"Intersects",t,e,o)}function Bl(t,e,o){Il.call(this,"PropertyIsBetween",t),this.a=e,this.i=o}function Xl(t,e,o,i,r,n){Il.call(this,"PropertyIsLike",t),this.c=e,this.g=void 0!==o?o:"*",this.f=void 0!==i?i:".",this.i=void 0!==r?r:"!",this.a=n}function Vl(t){Il.call(this,"PropertyIsNull",t)}function Wl(t,e){Fl.call(this,"PropertyIsLessThan",t,e)}function Zl(t,e){Fl.call(this,"PropertyIsLessThanOrEqualTo",t,e)}function Kl(t){this.kc="Not",this.condition=t}function zl(t,e,o){Fl.call(this,"PropertyIsNotEqualTo",t,e,o)}function Yl(t){var e=["Or"].concat(Array.prototype.slice.call(arguments));Cl.apply(this,e)}function Hl(t,e,o){Ul.call(this,"Within",t,e,o)}function ql(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Ll,e))}function Jl(t,e,o){return new Rl(t,e,o)}function _l(t){Bi.call(this),this.a=t||null,tu(this)}function $l(t){for(var e=[],o=0,i=t.length;o<i;++o)e.push(t[o].clone());return e}function Ql(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)be(t.a[e],"change",t.s,t)}function tu(t){if(t.a)for(var e=0,o=t.a.length;e<o;++e)de(t.a[e],"change",t.s,t)}function eu(t){t=t||{},ol.call(this),this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326"),t.featureProjection&&(this.f=Bt(t.featureProjection)),this.b=t.geometryName}function ou(t,e){return t?nl((0,ru[t.type])(t),!1,e):null}function iu(t,e){return(0,nu[t.U()])(nl(t,!0,e),e)}(Au=xl.prototype).Rc=function(t,e){var o=Sl(t.geometry,e),i=new Ih;return this.b&&i.Tc(this.b),i.Ra(o),e&&e.dg&&t.attributes[e.dg]&&i.jc(t.attributes[e.dg]),t.attributes&&i.H(t.attributes),i},Au.yg=function(t,e){if(e=e||{},t.features){var o,i=[],r=t.features;for(e.dg=t.objectIdFieldName,t=0,o=r.length;t<o;++t)i.push(this.Rc(r[t],e));return i}return[this.Rc(t,e)]},Au.Cg=Sl,Au.Fg=function(t){return t.spatialReference&&t.spatialReference.wkid?Bt("EPSG:"+t.spatialReference.wkid):null},Au.je=function(t,e){return Tl(t,rl(this,e))},Au.Zc=function(t,e){e=rl(this,e);var o={},i=t.V();return i&&(o.geometry=Tl(i,e)),delete(i=t.N())[t.c],o.attributes=ct(i)?{}:i,e&&e.featureProjection&&(o.spatialReference={wkid:Bt(e.featureProjection).mb.split(":").pop()}),o},Au.he=function(t,e){e=rl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{features:o}},e(Cl,jl),e(Ll,Cl),e(Rl,jl),e(Il,jl),e(Nl,Il),e(Fl,Il),e(kl,Fl),e(Dl,Fl),e(Ol,Fl),e(Ul,jl),e(Gl,Ul),e(Bl,Il),e(Xl,Il),e(Vl,Il),e(Wl,Fl),e(Zl,Fl),e(Kl,jl),e(zl,Fl),e(Yl,Cl),e(Hl,Ul),e(_l,Bi),(Au=_l.prototype).clone=function(){var t=new _l(null);return t.oj(this.a),t},Au.Kb=function(t,e,o,i){if(i<E(this.G(),t,e))return i;for(var r=this.a,n=0,s=r.length;n<s;++n)i=r[n].Kb(t,e,o,i);return i},Au.Mc=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)if(o[i].Mc(t,e))return!0;return!1},Au.se=function(t){I(t);for(var e=this.a,o=0,i=e.length;o<i;++o)K(t,e[o].G());return t},Au.Vf=function(){return $l(this.a)},Au.Vd=function(t){if(this.o!=this.i&&(lt(this.f),this.g=0,this.o=this.i),t<0||this.g&&t<this.g)return this;var e=t.toString();if(this.f.hasOwnProperty(e))return this.f[e];for(var o=[],i=this.a,r=!1,n=0,s=i.length;n<s;++n){var a=i[n],p=a.Vd(t);o.push(p),p!==a&&(r=!0)}return r?(Ql(t=new _l(null)),t.a=o,tu(t),t.s(),this.f[e]=t):(this.g=t,this)},Au.U=function(){return"GeometryCollection"},Au.Xa=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)if(e[o].Xa(t))return!0;return!1},Au.rotate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].rotate(t,e);this.s()},Au.scale=function(t,e,o){o=o||$(this.G());for(var i=this.a,r=0,n=i.length;r<n;++r)i[r].scale(t,e,o);this.s()},Au.oj=function(t){t=$l(t),Ql(this),this.a=t,tu(this),this.s()},Au.Dc=function(t){for(var e=this.a,o=0,i=e.length;o<i;++o)e[o].Dc(t);this.s()},Au.translate=function(t,e){for(var o=this.a,i=0,r=o.length;i<r;++i)o[i].translate(t,e);this.s()},Au.ka=function(){Ql(this),Bi.prototype.ka.call(this)},e(eu,sl);var ru={Point:function(t){return new hr(t.coordinates)},LineString:function(t){return new ll(t.coordinates)},Polygon:function(t){return new wr(t.coordinates)},MultiPoint:function(t){return new gl(t.coordinates)},MultiLineString:function(t){return new cl(t.coordinates)},MultiPolygon:function(t){return new dl(t.coordinates)},GeometryCollection:function(t,e){return new _l(t=t.geometries.map(function(t){return ou(t,e)}))}},nu={Point:function(t){return{type:"Point",coordinates:t.X()}},LineString:function(t){return{type:"LineString",coordinates:t.X()}},Polygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"Polygon",coordinates:t.X(o)}},MultiPoint:function(t){return{type:"MultiPoint",coordinates:t.X()}},MultiLineString:function(t){return{type:"MultiLineString",coordinates:t.X()}},MultiPolygon:function(t,e){var o;return e&&(o=e.rightHanded),{type:"MultiPolygon",coordinates:t.X(o)}},GeometryCollection:function(t,o){return{type:"GeometryCollection",geometries:t.a.map(function(t){var e=ht({},o);return delete e.featureProjection,iu(t,e)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function su(){this.i=new XMLSerializer,ol.call(this)}function au(t,e,o){return 0<(t=pu(t,e,o)).length?t[0]:null}function pu(t,e,o){var i=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(i,t.zc(e,o));return i}function hu(t){t=t||{},this.featureType=t.featureType,this.featureNS=t.featureNS,this.srsName=t.srsName,this.schemaLocation="",this.b={},this.b["http://www.opengis.net/gml"]={featureMember:Xh(hu.prototype.be),featureMembers:Xh(hu.prototype.be)},su.call(this)}(Au=eu.prototype).Rc=function(t,e){e=ou((t="Feature"===t.type?t:{type:"Feature",geometry:t}).geometry,e);var o=new Ih;return this.b&&o.Tc(this.b),o.Ra(e),void 0!==t.id&&o.jc(t.id),t.properties&&o.H(t.properties),o},Au.yg=function(t,e){if("FeatureCollection"===t.type)for(var o=[],i=0,r=(t=t.features).length;i<r;++i)o.push(this.Rc(t[i],e));else o=[this.Rc(t,e)];return o},Au.Cg=ou,Au.Fg=function(t){var e;return(t=t.crs)?"name"==t.type?e=Bt(t.properties.name):"EPSG"==t.type?e=Bt("EPSG:"+t.properties.code):O(!1,36):e=this.defaultDataProjection,e},Au.Zc=function(t,e){e=rl(this,e);var o={type:"Feature"},i=t.a;return void 0!==i&&(o.id=i),(i=t.V())?o.geometry=iu(i,e):o.geometry=null,delete(e=t.N())[t.c],ct(e)?o.properties=null:o.properties=e,o},Au.he=function(t,e){e=rl(this,e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(this.Zc(t[i],e));return{type:"FeatureCollection",features:o}},Au.je=function(t,e){return iu(t,rl(this,e))},e(su,ol),(Au=su.prototype).U=function(){return"xml"},Au.Tb=function(t,e){return Dh(t)?au(this,t,e):Oh(t)?this.xg(t,e):"string"==typeof t?au(this,t=Uh(t),e):null},Au.xg=function(){return null},Au.Oa=function(t,e){return Dh(t)?pu(this,t,e):Oh(t)?this.zc(t,e):"string"==typeof t?pu(this,t=Uh(t),e):[]},Au.Sc=function(t,e){return Dh(t)?null:Oh(t)?this.aj(t,e):("string"==typeof t&&Uh(t),null)},Au.aj=function(){return null},Au.kb=function(t){return Dh(t)?this.Eg(t):Oh(t)?this.kf(t):"string"==typeof t?(t=Uh(t),this.Eg(t)):null},Au.Eg=function(){return this.defaultDataProjection},Au.kf=function(){return this.defaultDataProjection},Au.Bd=function(t,e){return this.i.serializeToString(this.Vg(t,e))},Au.Vg=function(){return null},Au.Wb=function(t,e){return t=this.Xb(t,e),this.i.serializeToString(t)},Au.Xb=function(){return null},Au.$c=function(t,e){return t=this.ie(t,e),this.i.serializeToString(t)},Au.ie=function(){return null},e(hu,su);var lu=/^[\s\xa0]*$/;function uu(t){return cu(t=kh(t,!1))}function cu(t){if(t=/^\s*(true|1)|(false|0)\s*$/.exec(t))return void 0!==t[1]||!1}function fu(t){return t=kh(t,!1),t=Date.parse(t),isNaN(t)?void 0:t/1e3}function yu(t){return gu(t=kh(t,!1))}function gu(t){if(t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t))return parseFloat(t[1])}function du(t){return vu(t=kh(t,!1))}function vu(t){if(t=/^\s*(\d+)\s*$/.exec(t))return parseInt(t[1],10)}function bu(t){return kh(t,!1).trim()}function mu(t,e){Su(t,e?"1":"0")}function wu(t,e){t.appendChild(Nh.createTextNode(e.toPrecision()))}function xu(t,e){t.appendChild(Nh.createTextNode(e.toString()))}function Su(t,e){t.appendChild(Nh.createTextNode(e))}function Mu(t){hu.call(this,t=t||{}),this.l=void 0!==t.surface&&t.surface,this.c=void 0!==t.curve&&t.curve,this.g=void 0===t.multiCurve||t.multiCurve,this.j=void 0===t.multiSurface||t.multiSurface,this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}function Pu(t,e,o){o=(i=o[o.length-1]).hasZ;for(var i=i.srsName,r=(e=e.X()).length,n=Array(r),s=0;s<r;++s){var a=e[s],p=s,h=o,l="enu",l="en"===(l=i?Bt(i).b:l).substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];h&&(l+=" "+(a[2]||0)),n[p]=l}Su(t,n.join(" "))}(Au=hu.prototype).be=function(t,e){var o=t.localName,i=null;if("FeatureCollection"==o)i="http://www.opengis.net/wfs"===t.namespaceURI?_h([],this.b,t,e,this):_h(null,this.b,t,e,this);else if("featureMembers"==o||"featureMember"==o){var r=(y=e[0]).featureType,n=y.featureNS;if(!r&&t.childNodes){r=[];for(var n={},s=0,a=t.childNodes.length;s<a;++s)if(1===(c=t.childNodes[s]).nodeType){var p=c.nodeName.split(":").pop();if(-1===r.indexOf(p)){var h,l="",u=0,c=c.namespaceURI;for(h in n){if(n[h]===c){l=h;break}++u}l||(n[l="p"+u]=c),r.push(l+":"+p)}}"featureMember"!=o&&(y.featureType=r,y.featureNS=n)}"string"==typeof n&&(s=n,(n={}).p0=s);var f,y={},r=Array.isArray(r)?r:[r];for(f in n){for(p={},s=0,a=r.length;s<a;++s)(-1===r[s].indexOf(":")?"p0":r[s].split(":")[0])===f&&(p[r[s].split(":").pop()]=("featureMembers"==o?Bh:Xh)(this.wg,this));y[n[f]]=p}i=_h("featureMember"==o?void 0:[],y,t,e)}return i=null===i?[]:i},Au.gf=function(t,e){var o=e[0];if(o.srsName=t.firstElementChild.getAttribute("srsName"),t=_h(null,this.Zg,t,e,this))return nl(t,!1,o)},Au.wg=function(t,e){var o;(o=t.getAttribute("fid"))||(o=t.getAttributeNS("http://www.opengis.net/gml","id")||"");var i,r={};for(t=t.firstElementChild;t;t=t.nextElementSibling){var n,s=t.localName;0===t.childNodes.length||1===t.childNodes.length&&(3===t.firstChild.nodeType||4===t.firstChild.nodeType)?(n=kh(t,!1),lu.test(n)&&(n=void 0),r[s]=n):("boundedBy"!==s&&(i=s),r[s]=this.gf(t,e))}return e=new Ih(r),i&&e.Tc(i),o&&e.jc(o),e},Au.fj=function(t,e){if(t=this.ff(t,e))return(e=new hr(null)).ba("XYZ",t),e},Au.dj=function(t,e){if(t=_h([],this.Nj,t,e,this))return new gl(t)},Au.cj=function(t,e){if(t=_h([],this.Mj,t,e,this))return yl(e=new cl(null),t),e},Au.ej=function(t,e){if(t=_h([],this.Oj,t,e,this))return wl(e=new dl(null),t),e},Au.Xi=function(t,e){Jh(this.Rj,t,e,this)},Au.Mh=function(t,e){Jh(this.Kj,t,e,this)},Au.Yi=function(t,e){Jh(this.Sj,t,e,this)},Au.hf=function(t,e){if(t=this.ff(t,e))return(e=new ll(null)).ba("XYZ",t),e},Au.wp=function(t,e){if(t=_h(null,this.ke,t,e,this))return t},Au.bj=function(t,e){if(t=this.ff(t,e))return pr(e=new ar(null),"XYZ",t),e},Au.jf=function(t,e){if((t=_h([null],this.zf,t,e,this))&&t[0]){e=new wr(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Au.ff=function(t,e){return _h(null,this.ke,t,e,this)},Au.Nj={"http://www.opengis.net/gml":{pointMember:Bh(hu.prototype.Xi),pointMembers:Bh(hu.prototype.Xi)}},Au.Mj={"http://www.opengis.net/gml":{lineStringMember:Bh(hu.prototype.Mh),lineStringMembers:Bh(hu.prototype.Mh)}},Au.Oj={"http://www.opengis.net/gml":{polygonMember:Bh(hu.prototype.Yi),polygonMembers:Bh(hu.prototype.Yi)}},Au.Rj={"http://www.opengis.net/gml":{Point:Bh(hu.prototype.ff)}},Au.Kj={"http://www.opengis.net/gml":{LineString:Bh(hu.prototype.hf)}},Au.Sj={"http://www.opengis.net/gml":{Polygon:Bh(hu.prototype.jf)}},Au.le={"http://www.opengis.net/gml":{LinearRing:Xh(hu.prototype.wp)}},Au.aj=function(t,e){return(t=this.gf(t,[il(this,t,e||{})]))?t:null},Au.zc=function(t,e){var o={featureType:this.featureType,featureNS:this.featureNS};return e&&ht(o,il(this,t,e)),this.be(t,[o])||[]},Au.kf=function(t){return Bt(this.srsName||t.firstElementChild.getAttribute("srsName"))},e(Mu,hu),(Au=Mu.prototype).Ap=function(t,e){if(t=_h([],this.Lj,t,e,this))return yl(e=new cl(null),t),e},Au.Bp=function(t,e){if(t=_h([],this.Pj,t,e,this))return wl(e=new dl(null),t),e},Au.ph=function(t,e){Jh(this.Hj,t,e,this)},Au.Aj=function(t,e){Jh(this.Uj,t,e,this)},Au.Ep=function(t,e){return _h([null],this.Qj,t,e,this)},Au.Hp=function(t,e){return _h([null],this.Tj,t,e,this)},Au.Fp=function(t,e){return _h([null],this.zf,t,e,this)},Au.zp=function(t,e){return _h([null],this.ke,t,e,this)},Au.cm=function(t,e){(t=_h(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Au.yk=function(t,e){(t=_h(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Au.gj=function(t,e){if((t=_h([null],this.Vj,t,e,this))&&t[0]){e=new wr(null);for(var o=t[0],i=[o.length],r=1,n=t.length;r<n;++r)c(o,t[r]),i.push(o.length);return e.ba("XYZ",o,i),e}},Au.Zi=function(t,e){if(t=_h([null],this.Ij,t,e,this))return(e=new ll(null)).ba("XYZ",t),e},Au.vp=function(t,e){return F((t=_h([null],this.Jj,t,e,this))[1][0],t[1][1],t[2][0],t[2][1])},Au.xp=function(t,e){var o,i=kh(t,!1),r=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;for(t=[];o=r.exec(i);)t.push(parseFloat(o[1])),i=i.substr(o[0].length);if(""===i){if(i="enu","neu"===(i=(e=e[0].srsName)?Bt(e).b:i))for(e=0,i=t.length;e<i;e+=3)r=t[e],t[e]=t[e+1],t[e+1]=r;if(2==(e=t.length)&&t.push(0),e)return t}},Au.Bg=function(t,e){var o=kh(t,!1).replace(/^\s*|\s*$/g,""),i=e[0].srsName,r=t.parentNode.getAttribute("srsDimension");e="enu",i&&(e=Bt(i).b),o=o.split(/\s+/),i=2,t.getAttribute("srsDimension")?i=vu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?i=vu(t.getAttribute("dimension")):r&&(i=vu(r));for(var n,s=[],a=0,p=o.length;a<p;a+=i)t=parseFloat(o[a]),r=parseFloat(o[a+1]),n=3===i?parseFloat(o[a+2]):0,"en"===e.substr(0,2)?s.push(t,r,n):s.push(r,t,n);return s},Au.ke={"http://www.opengis.net/gml":{pos:Xh(Mu.prototype.xp),posList:Xh(Mu.prototype.Bg)}},Au.zf={"http://www.opengis.net/gml":{interior:Mu.prototype.cm,exterior:Mu.prototype.yk}},Au.Zg={"http://www.opengis.net/gml":{Point:Xh(hu.prototype.fj),MultiPoint:Xh(hu.prototype.dj),LineString:Xh(hu.prototype.hf),MultiLineString:Xh(hu.prototype.cj),LinearRing:Xh(hu.prototype.bj),Polygon:Xh(hu.prototype.jf),MultiPolygon:Xh(hu.prototype.ej),Surface:Xh(Mu.prototype.gj),MultiSurface:Xh(Mu.prototype.Bp),Curve:Xh(Mu.prototype.Zi),MultiCurve:Xh(Mu.prototype.Ap),Envelope:Xh(Mu.prototype.vp)}},Au.Lj={"http://www.opengis.net/gml":{curveMember:Bh(Mu.prototype.ph),curveMembers:Bh(Mu.prototype.ph)}},Au.Pj={"http://www.opengis.net/gml":{surfaceMember:Bh(Mu.prototype.Aj),surfaceMembers:Bh(Mu.prototype.Aj)}},Au.Hj={"http://www.opengis.net/gml":{LineString:Bh(hu.prototype.hf),Curve:Bh(Mu.prototype.Zi)}},Au.Uj={"http://www.opengis.net/gml":{Polygon:Bh(hu.prototype.jf),Surface:Bh(Mu.prototype.gj)}},Au.Vj={"http://www.opengis.net/gml":{patches:Xh(Mu.prototype.Ep)}},Au.Ij={"http://www.opengis.net/gml":{segments:Xh(Mu.prototype.Hp)}},Au.Jj={"http://www.opengis.net/gml":{lowerCorner:Bh(Mu.prototype.Bg),upperCorner:Bh(Mu.prototype.Bg)}},Au.Qj={"http://www.opengis.net/gml":{PolygonPatch:Xh(Mu.prototype.Fp)}},Au.Tj={"http://www.opengis.net/gml":{LineStringSegment:Xh(Mu.prototype.zp)}},Au.ni=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Fh(t.namespaceURI,"pos"),t.appendChild(i),t=(o=o[o.length-1]).hasZ;var r=o.srsName;o="enu",r&&(o=Bt(r).b),e=e.X(),o="en"===o.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0],t&&(o+=" "+(e[2]||0)),Su(i,o)};var Au,Eu={"http://www.opengis.net/gml":{lowerCorner:Zh(Su),upperCorner:Zh(Su)}};(Au=Mu.prototype).jn=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),Qh({node:t},Eu,Yh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)},Au.ki=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Fh(t.namespaceURI,"posList"),t.appendChild(i),Pu(i,e,o)},Au.hn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Fh(e.namespaceURI,void 0!==o?"interior":"exterior")},Au.Se=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),Qh({node:t,hasZ:i,srsName:r},Lu,this.hn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Fh(t.namespaceURI,"patches"),t.appendChild(i),t=Fh(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Se(t,e,o))},Au.Re=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Fh(t.namespaceURI,"posList"),t.appendChild(i),Pu(i,e,o)):"Curve"===t.nodeName&&(i=Fh(t.namespaceURI,"segments"),t.appendChild(i),t=Fh(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Re(t,e,o))},Au.mi=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),Qh({node:t,hasZ:i,srsName:r,surface:n},Tu,this.o,e,o,void 0,this)},Au.kn=function(t,e,o){var i=(r=o[o.length-1]).srsName,r=r.hasZ;i&&t.setAttribute("srsName",i),e=e.Zd(),Qh({node:t,hasZ:r,srsName:i},ju,zh("pointMember"),e,o,void 0,this)},Au.li=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),Qh({node:t,hasZ:i,srsName:r,curve:n},Cu,this.o,e,o,void 0,this)},Au.oi=function(t,e,o){var i=Fh(t.namespaceURI,"LinearRing");t.appendChild(i),this.ki(i,e,o)},Au.pi=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Se(i,e,o))},Au.ln=function(t,e,o){var i=Fh(t.namespaceURI,"Point");t.appendChild(i),this.ni(i,e,o)},Au.ji=function(t,e,o){var i=this.a(e,o);i&&(t.appendChild(i),this.Re(i,e,o))},Au.od=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:nl(e,!0,i),Qh(r,Ru,this.a,[i],o,void 0,this)},Au.ii=function(t,e,o){var i=e.a;i&&t.setAttribute("fid",i);var r=(i=o[o.length-1]).featureNS,n=e.c;i.lb||(i.lb={},i.lb[r]={});var s=e.N();e=[];var a=[];for(h in s){var p=s[h];null!==p&&(e.push(h),a.push(p),h==n||p instanceof Bi?h in i.lb[r]||(i.lb[r][h]=Zh(this.od,this)):h in i.lb[r]||(i.lb[r][h]=Zh(Su)))}var h=ht({},i);h.node=t,Qh(h,i.lb,zh(void 0,r),a,o,e)};var Tu={"http://www.opengis.net/gml":{surfaceMember:Zh(Mu.prototype.pi),polygonMember:Zh(Mu.prototype.pi)}},ju={"http://www.opengis.net/gml":{pointMember:Zh(Mu.prototype.ln)}},Cu={"http://www.opengis.net/gml":{lineStringMember:Zh(Mu.prototype.ji),curveMember:Zh(Mu.prototype.ji)}},Lu={"http://www.opengis.net/gml":{exterior:Zh(Mu.prototype.oi),interior:Zh(Mu.prototype.oi)}},Ru={"http://www.opengis.net/gml":{Curve:Zh(Mu.prototype.Re),MultiCurve:Zh(Mu.prototype.li),Point:Zh(Mu.prototype.ni),MultiPoint:Zh(Mu.prototype.kn),LineString:Zh(Mu.prototype.Re),MultiLineString:Zh(Mu.prototype.li),LinearRing:Zh(Mu.prototype.ki),Polygon:Zh(Mu.prototype.Se),MultiPolygon:Zh(Mu.prototype.mi),Surface:Zh(Mu.prototype.Se),MultiSurface:Zh(Mu.prototype.mi),Envelope:Zh(Mu.prototype.jn)}},Iu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};function Nu(t){hu.call(this,t=t||{}),this.b["http://www.opengis.net/gml"].featureMember=Bh(hu.prototype.be),this.schemaLocation=t.schemaLocation||"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}function Fu(t){return(t=Fh(t,"coordinates")).setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}function ku(t,e,o){o=(r=o[o.length-1]).hasZ;for(var i,r=r.srsName,n=(e=e.X()).length,s=Array(n),a=0;a<n;++a)i=e[a],s[a]=Du(i,r,o);Su(t,s.join(" "))}function Du(t,e,o){var i="enu";return e="en"===(i=e?Bt(e).b:i).substr(0,2)?t[0]+","+t[1]:t[1]+","+t[0],o&&(e+=","+(t[2]||0)),e}Mu.prototype.o=function(t,e){return Fh("http://www.opengis.net/gml",Iu[e[e.length-1].node.nodeName])},Mu.prototype.a=function(t,e){e=(r=e[e.length-1]).multiSurface;var o=r.surface,i=r.curve,r=r.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"LineString"===t&&!0===i?t="Curve":"MultiLineString"===t&&!0===r&&(t="MultiCurve"),Fh("http://www.opengis.net/gml",t)},Mu.prototype.ie=function(t,e){e=rl(this,e);var o=Fh("http://www.opengis.net/gml","geom"),i={node:o,hasZ:this.hasZ,srsName:this.srsName,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g};return e&&ht(i,e),this.od(o,t,[i]),o},Mu.prototype.Xb=function(t,e){e=rl(this,e);var o=Fh("http://www.opengis.net/gml","featureMembers");o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var i={srsName:this.srsName,hasZ:this.hasZ,curve:this.c,surface:this.l,multiSurface:this.j,multiCurve:this.g,featureNS:this.featureNS,featureType:this.featureType};e&&ht(i,e);var r=(e=[i])[e.length-1],i=r.featureType,n=r.featureNS,s={};return s[n]={},s[n][i]=Zh(this.ii,this),(r=ht({},r)).node=o,Qh(r,s,zh(i,n),t,e),o},e(Nu,hu),(Au=Nu.prototype).$i=function(t,e){t=kh(t,!1).replace(/^\s*|\s*$/g,"");var o=e[0].srsName;e="enu",(o=o&&Bt(o))&&(e=o.b);for(var i,r,n=[],s=0,a=(t=t.trim().split(/\s+/)).length;s<a;s++)r=t[s].split(/,+/),o=parseFloat(r[0]),i=parseFloat(r[1]),r=3===r.length?parseFloat(r[2]):0,"en"===e.substr(0,2)?n.push(o,i,r):n.push(i,o,r);return n},Au.tp=function(t,e){return F((t=_h([null],this.Gj,t,e,this))[1][0],t[1][1],t[1][3],t[1][4])},Au.am=function(t,e){(t=_h(void 0,this.le,t,e,this))&&e[e.length-1].push(t)},Au.bp=function(t,e){(t=_h(void 0,this.le,t,e,this))&&(e[e.length-1][0]=t)},Au.ke={"http://www.opengis.net/gml":{coordinates:Xh(Nu.prototype.$i)}},Au.zf={"http://www.opengis.net/gml":{innerBoundaryIs:Nu.prototype.am,outerBoundaryIs:Nu.prototype.bp}},Au.Gj={"http://www.opengis.net/gml":{coordinates:Bh(Nu.prototype.$i)}},Au.Zg={"http://www.opengis.net/gml":{Point:Xh(hu.prototype.fj),MultiPoint:Xh(hu.prototype.dj),LineString:Xh(hu.prototype.hf),MultiLineString:Xh(hu.prototype.cj),LinearRing:Xh(hu.prototype.bj),Polygon:Xh(hu.prototype.jf),MultiPolygon:Xh(hu.prototype.ej),Box:Xh(Nu.prototype.tp)}},Au.jg=function(t,e){e=(i=e[e.length-1]).multiSurface;var o=i.surface,i=i.multiCurve;return Array.isArray(t)?t="Envelope":"MultiPolygon"===(t=t.U())&&!0===e?t="MultiSurface":"Polygon"===t&&!0===o?t="Surface":"MultiLineString"===t&&!0===i&&(t="MultiCurve"),Fh("http://www.opengis.net/gml",t)},Au.ai=function(t,e,o){var i=o[o.length-1],r=ht({},i);r.node=t,i=Array.isArray(e)?i.dataProjection?Yt(e,i.featureProjection,i.dataProjection):e:nl(e,!0,i),Qh(r,Ou,this.jg,[i],o,void 0,this)},Au.Pe=function(t,e,o){var i=o[o.length-1].srsName;"LineStringSegment"!==t.nodeName&&i&&t.setAttribute("srsName",i),"LineString"===t.nodeName||"LineStringSegment"===t.nodeName?(i=Fu(t.namespaceURI),t.appendChild(i),ku(i,e,o)):"Curve"===t.nodeName&&(i=Fh(t.namespaceURI,"segments"),t.appendChild(i),t=Fh(i.namespaceURI,"LineStringSegment"),i.appendChild(t),this.Pe(t,e,o))},Au.Qe=function(t,e,o){var i=(r=o[o.length-1]).hasZ,r=r.srsName;"PolygonPatch"!==t.nodeName&&r&&t.setAttribute("srsName",r),"Polygon"===t.nodeName||"PolygonPatch"===t.nodeName?(e=e.Sd(),Qh({node:t,hasZ:i,srsName:r},Uu,this.dn,e,o,void 0,this)):"Surface"===t.nodeName&&(i=Fh(t.namespaceURI,"patches"),t.appendChild(i),t=Fh(i.namespaceURI,"PolygonPatch"),i.appendChild(t),this.Qe(t,e,o))},Au.dn=function(t,e){e=(t=e[e.length-1]).node;var o=t.exteriorWritten;return void 0===o&&(t.exteriorWritten=!0),Fh(e.namespaceURI,void 0!==o?"innerBoundaryIs":"outerBoundaryIs")},Au.gi=function(t,e,o){var i=Fh(t.namespaceURI,"LinearRing");t.appendChild(i),this.ci(i,e,o)},Au.di=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.curve;r&&t.setAttribute("srsName",r),e=e.gd(),Qh({node:t,hasZ:i,srsName:r,curve:n},Bu,this.a,e,o,void 0,this)},Au.fi=function(t,e,o){var i=o[o.length-1];o=i.hasZ;var r=i.srsName;r&&t.setAttribute("srsName",r),i=Fu(t.namespaceURI),t.appendChild(i),Su(i,t=Du(t=e.X(),r,o))},Au.fn=function(t,e,o){var i=o[o.length-1],r=i.hasZ;(i=i.srsName)&&t.setAttribute("srsName",i),e=e.Zd(),Qh({node:t,hasZ:r,srsName:i},Gu,zh("pointMember"),e,o,void 0,this)},Au.gn=function(t,e,o){var i=Fh(t.namespaceURI,"Point");t.appendChild(i),this.fi(i,e,o)},Au.bi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Pe(i,e,o))},Au.ci=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),i=Fu(t.namespaceURI),t.appendChild(i),ku(i,e,o)},Au.ei=function(t,e,o){var i=(n=o[o.length-1]).hasZ,r=n.srsName,n=n.surface;r&&t.setAttribute("srsName",r),e=e.Td(),Qh({node:t,hasZ:i,srsName:r,surface:n},Vu,this.a,e,o,void 0,this)},Au.hi=function(t,e,o){var i=this.jg(e,o);i&&(t.appendChild(i),this.Qe(i,e,o))},Au.en=function(t,e,o){var i=o[o.length-1].srsName;i&&t.setAttribute("srsName",i),Qh({node:t},Wu,Yh,[e[0]+" "+e[1],e[2]+" "+e[3]],o,["lowerCorner","upperCorner"],this)};var Ou={"http://www.opengis.net/gml":{Curve:Zh(Nu.prototype.Pe),MultiCurve:Zh(Nu.prototype.di),Point:Zh(Nu.prototype.fi),MultiPoint:Zh(Nu.prototype.fn),LineString:Zh(Nu.prototype.Pe),MultiLineString:Zh(Nu.prototype.di),LinearRing:Zh(Nu.prototype.ci),Polygon:Zh(Nu.prototype.Qe),MultiPolygon:Zh(Nu.prototype.ei),Surface:Zh(Nu.prototype.Qe),MultiSurface:Zh(Nu.prototype.ei),Envelope:Zh(Nu.prototype.en)}},Uu={"http://www.opengis.net/gml":{outerBoundaryIs:Zh(Nu.prototype.gi),innerBoundaryIs:Zh(Nu.prototype.gi)}},Gu={"http://www.opengis.net/gml":{pointMember:Zh(Nu.prototype.gn)}},Bu={"http://www.opengis.net/gml":{lineStringMember:Zh(Nu.prototype.bi),curveMember:Zh(Nu.prototype.bi)}};Nu.prototype.a=function(t,e){return Fh("http://www.opengis.net/gml",Xu[e[e.length-1].node.nodeName])};var Xu={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Vu={"http://www.opengis.net/gml":{surfaceMember:Zh(Nu.prototype.hi),polygonMember:Zh(Nu.prototype.hi)}},Wu={"http://www.opengis.net/gml":{lowerCorner:Zh(Su),upperCorner:Zh(Su)}};function Zu(t){t=t||{},su.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.readExtensions}e(Zu,su);var Ku=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function zu(t,e,o,i){return t.push(parseFloat(o.getAttribute("lon")),parseFloat(o.getAttribute("lat"))),"ele"in i?(t.push(i.ele),delete i.ele,e.hasZ=!0):t.push(0),"time"in i?(t.push(i.time),delete i.time,e.hasM=!0):t.push(0),t}function Yu(t,e,o){var i="XY",r=2;if(t.hasZ&&t.hasM?(i="XYZM",r=4):t.hasZ?(i="XYZ",r=3):t.hasM&&(i="XYM",r=3),4!==r){for(var n=0,s=e.length/4;n<s;n++)e[n*r]=e[4*n],e[n*r+1]=e[4*n+1],t.hasZ&&(e[n*r+2]=e[4*n+2]),t.hasM&&(e[n*r+2]=e[4*n+3]);if(e.length=e.length/4*r,o)for(n=0,s=o.length;n<s;n++)o[n]=o[n]/4*r}return i}function Hu(t,e){var o=e[e.length-1],i=t.getAttribute("href");null!==i&&(o.link=i),Jh(ec,t,e)}function qu(t,e){e[e.length-1].extensionsNode_=t}function Ju(t,e){var o=e[0];if(t=_h({flatCoordinates:[],layoutOptions:{}},oc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.layoutOptions;delete t.layoutOptions;var i=Yu(i,e),r=new ll(null);return r.ba(i,e),nl(r,!1,o),(o=new Ih(r)).H(t),o}}function _u(t,e){var o=e[0];if(t=_h({flatCoordinates:[],ends:[],layoutOptions:{}},rc,t,e)){e=t.flatCoordinates,delete t.flatCoordinates;var i=t.ends;delete t.ends;var r=t.layoutOptions;delete t.layoutOptions;var r=Yu(r,e,i),n=new cl(null);return n.ba(r,e,i),nl(n,!1,o),(o=new Ih(n)).H(t),o}}function $u(t,e){var o=e[0];if(e=_h({},ac,t,e)){var i={};return nl(t=new hr(t=zu([],i,t,e),Yu(i,t)),!1,o),(o=new Ih(t)).H(e),o}}var Qu={rte:Ju,trk:_u,wpt:$u},tc=qh(Ku,{rte:Bh(Ju),trk:Bh(_u),wpt:Bh($u)}),ec=qh(Ku,{text:Wh(bu,"linkText"),type:Wh(bu,"linkType")}),oc=qh(Ku,{name:Wh(bu),cmt:Wh(bu),desc:Wh(bu),src:Wh(bu),link:Hu,number:Wh(du),extensions:qu,type:Wh(bu),rtept:function(t,e){var o=_h({},ic,t,e);o&&zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),ic=qh(Ku,{ele:Wh(yu),time:Wh(fu)}),rc=qh(Ku,{name:Wh(bu),cmt:Wh(bu),desc:Wh(bu),src:Wh(bu),link:Hu,number:Wh(du),type:Wh(bu),extensions:qu,trkseg:function(t,e){var o=e[e.length-1];Jh(nc,t,e),o.ends.push(o.flatCoordinates.length)}}),nc=qh(Ku,{trkpt:function(t,e){var o=_h({},sc,t,e);o&&zu((e=e[e.length-1]).flatCoordinates,e.layoutOptions,t,o)}}),sc=qh(Ku,{ele:Wh(yu),time:Wh(fu)}),ac=qh(Ku,{ele:Wh(yu),time:Wh(fu),magvar:Wh(yu),geoidheight:Wh(yu),name:Wh(bu),cmt:Wh(bu),desc:Wh(bu),src:Wh(bu),link:Hu,sym:Wh(bu),type:Wh(bu),fix:Wh(bu),sat:Wh(du),hdop:Wh(yu),vdop:Wh(yu),pdop:Wh(yu),ageofdgpsdata:Wh(yu),dgpsid:Wh(du),extensions:qu});function pc(t,e){for(var o=0,i=(e=e||[]).length;o<i;++o){var r,n=e[o];t.b&&(r=n.get("extensionsNode_")||null,t.b(n,r)),n.set("extensionsNode_",void 0)}}function hc(t,e,o){t.setAttribute("href",e),e=o[o.length-1].properties,Qh({node:t},cc,Yh,[e.linkText,e.linkType],o,uc)}function lc(t,e,o){var i=o[o.length-1],r=i.node.namespaceURI,n=i.properties;switch(t.setAttributeNS(null,"lat",e[1]),t.setAttributeNS(null,"lon",e[0]),i.geometryLayout){case"XYZM":e[3]&&(n.time=e[3]);case"XYZ":e[2]&&(n.ele=e[2]);break;case"XYM":e[2]&&(n.time=e[2])}i=Hh(n,e=("rtept"==t.nodeName?gc:wc)[r]),Qh({node:t,properties:n},xc,Yh,i,o,e)}Zu.prototype.xg=function(t,e){if(!d(Ku,t.namespaceURI))return null;var o=Qu[t.localName];return o&&(t=o(t,[il(this,t,e)]))?(pc(this,[t]),t):null},Zu.prototype.zc=function(t,e){return d(Ku,t.namespaceURI)&&"gpx"==t.localName&&(t=_h([],tc,t,[il(this,t,e)]))?(pc(this,t),t):[]};var uc=["text","type"],cc=qh(Ku,{text:Zh(Su),type:Zh(Su)}),fc=qh(Ku,"name cmt desc src link number type rtept".split(" ")),yc=qh(Ku,{name:Zh(Su),cmt:Zh(Su),desc:Zh(Su),src:Zh(Su),link:Zh(hc),number:Zh(xu),type:Zh(Su),rtept:Kh(Zh(lc))}),gc=qh(Ku,["ele","time"]),dc=qh(Ku,"name cmt desc src link number type trkseg".split(" ")),vc=qh(Ku,{name:Zh(Su),cmt:Zh(Su),desc:Zh(Su),src:Zh(Su),link:Zh(hc),number:Zh(xu),type:Zh(Su),trkseg:Kh(Zh(function(t,e,o){Qh({node:t,geometryLayout:e.ja,properties:{}},mc,bc,e.X(),o)}))}),bc=zh("trkpt"),mc=qh(Ku,{trkpt:Zh(lc)}),wc=qh(Ku,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),xc=qh(Ku,{ele:Zh(wu),time:Zh(function(t,e){e=new Date(1e3*e),t.appendChild(Nh.createTextNode(e.getUTCFullYear()+"-"+Ai(e.getUTCMonth()+1)+"-"+Ai(e.getUTCDate())+"T"+Ai(e.getUTCHours())+":"+Ai(e.getUTCMinutes())+":"+Ai(e.getUTCSeconds())+"Z"))}),magvar:Zh(wu),geoidheight:Zh(wu),name:Zh(Su),cmt:Zh(Su),desc:Zh(Su),src:Zh(Su),link:Zh(hc),sym:Zh(Su),type:Zh(Su),fix:Zh(Su),sat:Zh(xu),hdop:Zh(wu),vdop:Zh(wu),pdop:Zh(wu),ageofdgpsdata:Zh(wu),dgpsid:Zh(xu)}),Sc={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Mc(t,e){if((t=t.V())&&(t=Sc[t.U()]))return Fh(e[e.length-1].node.namespaceURI,t)}var Pc=qh(Ku,{rte:Zh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=nl(e,!0,i),t.geometryLayout=e.ja,r.rtept=e.X()),r=Hh(r,i=fc[o[o.length-1].node.namespaceURI]),Qh(t,yc,Yh,r,o,i)}),trk:Zh(function(t,e,o){var i=o[0],r=e.N();t={node:t,properties:r},(e=e.V())&&(e=nl(e,!0,i),r.trkseg=e.gd()),r=Hh(r,i=dc[o[o.length-1].node.namespaceURI]),Qh(t,vc,Yh,r,o,i)}),wpt:Zh(function(t,e,o){var i=o[0],r=o[o.length-1];r.properties=e.N(),(e=e.V())&&(e=nl(e,!0,i),r.geometryLayout=e.ja,lc(t,e.X(),o))})});function Ac(){ol.call(this)}function Ec(t){return"string"==typeof t?t:""}function Tc(t){t=t||{},ol.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.altitudeMode||"none"}Zu.prototype.Xb=function(t,e){e=rl(this,e);var o=Fh("http://www.topografix.com/GPX/1/1","gpx");return o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),o.setAttribute("version","1.1"),o.setAttribute("creator","OpenLayers"),Qh({node:o},Pc,Mc,t,[e]),o},e(Ac,ol),(Au=Ac.prototype).U=function(){return"text"},Au.Tb=function(t,e){return this.ae(Ec(t),rl(this,e))},Au.Oa=function(t,e){return this.zg(Ec(t),rl(this,e))},Au.Sc=function(t,e){return this.wd(Ec(t),rl(this,e))},Au.kb=function(){return this.defaultDataProjection},Au.Bd=function(t,e){return this.ge(t,rl(this,e))},Au.Wb=function(t,e){return this.Wg(t,rl(this,e))},Au.$c=function(t,e){return this.Cd(t,rl(this,e))},e(Tc,Ac);var jc,Cc,Lc,Rc,Ic,Nc,Fc,kc,Dc,Oc,Uc,Gc,Bc,Xc,Vc,Wc=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Zc=/^H.([A-Z]{3}).*?:(.*)/,Kc=/^HFDTE(\d{2})(\d{2})(\d{2})/,zc=/\r\n|\r|\n/;function Yc(t,e,o,i,r,n){Ae.call(this),this.j=null,this.M=t||new Image,null!==i&&(this.M.crossOrigin=i),this.c=n?document.createElement("CANVAS"):null,this.g=n,this.f=null,this.i=r,this.a=o,this.o=e,this.l=!1,2==this.i&&Hc(this)}function Hc(e){var t=Ye(1,1);try{t.drawImage(e.M,0,0),t.getImageData(0,0,1,1)}catch(t){e.l=!0}}function qc(t){t=t||{},this.o=void 0!==t.anchor?t.anchor:[.5,.5],this.u=null,this.i=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.C=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.B=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.ra=void 0!==t.crossOrigin?t.crossOrigin:null;var e=void 0!==t.img?t.img:null,o=void 0!==t.imgSize?t.imgSize:null,i=t.src;O(!(void 0!==i&&e),4),O(!e||e&&o,5),O(void 0!==(i=(void 0===i||!i.length)&&e?e.src||G(e).toString():i)&&0<i.length,6);var r=void 0!==t.src?0:2;this.j=void 0!==t.color?Be(t.color):null;var n=this.ra,s=this.j,a=Yn.get(i,n,s);a||(a=new Yc(e,i,o,n,r,s),Yn.set(i,n,s,a)),this.b=a,this.oa=void 0!==t.offset?t.offset:[0,0],this.c=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.S=null,this.D=void 0!==t.size?t.size:null,xh.call(this,{opacity:void 0!==t.opacity?t.opacity:1,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,snapToPixel:void 0===t.snapToPixel||t.snapToPixel,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView})}function Jc(t){t=t||{},this.a=t.font,this.f=t.rotation,this.o=t.rotateWithView,this.b=t.scale,this.Ia=t.text,this.g=t.textAlign,this.j=t.textBaseline,this.Va=void 0!==t.fill?t.fill:new Ah({color:"#333"}),this.Ya=void 0!==t.stroke?t.stroke:null,this.i=void 0!==t.offsetX?t.offsetX:0,this.c=void 0!==t.offsetY?t.offsetY:0}function _c(t){t=t||{},su.call(this),jc||(Lc=new Ah({color:Cc=[255,255,255,1]}),Nc=Ic="pixels",Oc=new qc({anchor:Rc=[20,2],anchorOrigin:"bottom-left",anchorXUnits:Ic,anchorYUnits:Nc,crossOrigin:"anonymous",rotation:0,scale:Dc=.5,size:Fc=[64,64],src:kc="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),Uc="NO_IMAGE",Gc=new Ga({color:Cc,width:1}),Bc=new Ga({color:[51,51,51,1],width:2}),Xc=new Jc({font:"bold 16px Helvetica",fill:Lc,stroke:Bc,scale:.8}),Vc=new Eh({fill:Lc,image:Oc,text:Xc,stroke:Gc,zIndex:0}),jc=[Vc]),this.defaultDataProjection=Bt("EPSG:4326"),this.a=t.defaultStyle||jc,this.c=void 0===t.extractStyles||t.extractStyles,this.j=void 0===t.writeStyles||t.writeStyles,this.b={},this.g=void 0===t.showPointNames||t.showPointNames}(Au=Tc.prototype).ae=function(t,e){var o=this.b,i=t.split(zc);t={};for(var r=[],n=2e3,s=0,a=1,p=-1,h=0,l=i.length;h<l;++h){var u,c,f,y,g,d=i[h];"B"==d.charAt(0)?(u=Wc.exec(d))&&(d=parseInt(u[1],10),c=parseInt(u[2],10),f=parseInt(u[3],10),y=parseInt(u[4],10)+parseInt(u[5],10)/6e4,"S"==u[6]&&(y=-y),g=parseInt(u[7],10)+parseInt(u[8],10)/6e4,"W"==u[9]&&(g=-g),r.push(g,y),"none"!=o&&r.push("gps"==o?parseInt(u[11],10):"barometric"==o?parseInt(u[12],10):0),(u=Date.UTC(n,s,a,d,c,f))<p&&(u=Date.UTC(n,s,a+1,d,c,f)),r.push(u/1e3),p=u):"H"==d.charAt(0)&&((u=Kc.exec(d))?(a=parseInt(u[1],10),s=parseInt(u[2],10)-1,n=2e3+parseInt(u[3],10)):(u=Zc.exec(d))&&(t[u[1]]=u[2].trim()))}return r.length?((i=new ll(null)).ba("none"==o?"XYM":"XYZM",r),(e=new Ih(nl(i,!1,e))).H(t),e):null},Au.zg=function(t,e){return(t=this.ae(t,e))?[t]:[]},Au.ge=function(){},Au.Wg=function(){},Au.Cd=function(){},Au.wd=function(){},e(Yc,Ae),Yc.prototype.v=function(){this.i=3,this.f.forEach(me),this.f=null,this.b("change")},Yc.prototype.u=function(){if(this.i=2,this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]),this.a=[this.M.width,this.M.height],this.f.forEach(me),this.f=null,Hc(this),!this.l&&null!==this.g){this.c.width=this.M.width,this.c.height=this.M.height;var t=this.c.getContext("2d");t.drawImage(this.M,0,0);for(var e=t.getImageData(0,0,this.M.width,this.M.height),o=e.data,i=this.g[0]/255,r=this.g[1]/255,n=this.g[2]/255,s=0,a=o.length;s<a;s+=4)o[s]*=i,o[s+1]*=r,o[s+2]*=n;t.putImageData(e,0,0)}this.b("change")},Yc.prototype.Y=function(){return this.c||this.M},Yc.prototype.load=function(){if(0==this.i){this.i=1,this.f=[ve(this.M,"error",this.v,this),ve(this.M,"load",this.u,this)];try{this.M.src=this.o}catch(t){this.v()}}},e(qc,xh),(Au=qc.prototype).clone=function(){var t,e,o=this.Y(1);return 2===this.b.i&&("IMG"===o.tagName.toUpperCase()?t=o.cloneNode(!0):(e=(t=document.createElement("canvas")).getContext("2d"),t.width=o.width,t.height=o.height,e.drawImage(o,0,0))),new qc({anchor:this.o.slice(),anchorOrigin:this.i,anchorXUnits:this.C,anchorYUnits:this.B,crossOrigin:this.ra,color:this.j&&this.j.slice?this.j.slice():this.j||void 0,img:t||void 0,imgSize:t?this.b.a.slice():void 0,src:t?void 0:this.b.o,offset:this.oa.slice(),offsetOrigin:this.c,size:null!==this.D?this.D.slice():void 0,opacity:this.f,scale:this.a,snapToPixel:this.v,rotation:this.g,rotateWithView:this.l})},Au.Hc=function(){if(this.u)return this.u;var t=this.o,e=this.ic();if("fraction"==this.C||"fraction"==this.B){if(!e)return null;t=this.o.slice(),"fraction"==this.C&&(t[0]*=e[0]),"fraction"==this.B&&(t[1]*=e[1])}if("top-left"!=this.i){if(!e)return null;t===this.o&&(t=this.o.slice()),"top-right"!=this.i&&"bottom-right"!=this.i||(t[0]=-t[0]+e[0]),"bottom-left"!=this.i&&"bottom-right"!=this.i||(t[1]=-t[1]+e[1])}return this.u=t},Au.Lo=function(){return this.j},Au.Y=function(t){return this.b.Y(t)},Au.ye=function(){return this.b.a},Au.Ye=function(){return this.b.i},Au.qg=function(){var t,e,o,i=this.b;return i.j||(i.l?((o=Ye(t=i.a[0],e=i.a[1])).fillRect(0,0,t,e),i.j=o.canvas):i.j=i.M),i.j},Au.Oc=function(){if(this.S)return this.S;var t=this.oa;if("top-left"!=this.c){var e=this.ic(),o=this.b.a;if(!e||!o)return null;t=t.slice(),"top-right"!=this.c&&"bottom-right"!=this.c||(t[0]=o[0]-e[0]-t[0]),"bottom-left"!=this.c&&"bottom-right"!=this.c||(t[1]=o[1]-e[1]-t[1])}return this.S=t},Au.Mo=function(){return this.b.o},Au.ic=function(){return this.D||this.b.a},Au.Nh=function(t,e){return de(this.b,"change",t,e)},Au.load=function(){this.b.load()},Au.Bj=function(t,e){be(this.b,"change",t,e)},(Au=Jc.prototype).clone=function(){return new Jc({font:this.a,rotation:this.f,rotateWithView:this.o,scale:this.b,text:this.Na(),textAlign:this.g,textBaseline:this.j,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.Ga()?this.Ga().clone():void 0,offsetX:this.i,offsetY:this.c})},Au.Nk=function(){return this.a},Au.cl=function(){return this.i},Au.dl=function(){return this.c},Au.Fa=function(){return this.Va},Au.Ro=function(){return this.o},Au.So=function(){return this.f},Au.To=function(){return this.b},Au.Ga=function(){return this.Ya},Au.Na=function(){return this.Ia},Au.nl=function(){return this.g},Au.ol=function(){return this.j},Au.nj=function(t){this.a=t},Au.sj=function(t){this.i=t},Au.tj=function(t){this.c=t},Au.pf=function(t){this.Va=t},Au.Uo=function(t){this.f=t},Au.Si=function(t){this.b=t},Au.qf=function(t){this.Ya=t},Au.xd=function(t){this.Ia=t},Au.vj=function(t){this.g=t},Au.hq=function(t){this.j=t},e(_c,su);var $c=["http://www.google.com/kml/ext/2.2"],Qc=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],tf={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"};function ef(t,e){var o,i=[0,0],r="start";return!t.Y()||2==(o=null===(o=t.Y().ye())?Fc:o).length&&(r=t.Y().a,i[0]=r*o[0]/2,i[1]=-r*o[1]/2,r="left"),null!==t.Na()?((t=(o=t.Na()).clone()).nj(o.a||Xc.a),t.Si(o.b||Xc.b),t.pf(o.Fa()||Xc.Fa()),t.qf(o.Ga()||Bc)):t=Xc.clone(),t.xd(e),t.sj(i[0]),t.tj(i[1]),t.vj(r),new Eh({text:t})}function of(i,r,n,s,a){return function(){var t=a,e="";if((t=t&&this.V()?"Point"===this.V().U():t)&&(e=this.get("name"),t=t&&e),i)return t?(t=ef(i[0],e),i.concat(t)):i;if(r){var o=function t(e,o,i){return Array.isArray(e)?e:"string"==typeof e?(!(e in i)&&"#"+e in i&&(e="#"+e),t(i[e],o,i)):o}(r,n,s);return t?(t=ef(o[0],e),o.concat(t)):o}return t?(t=ef(n[0],e),n.concat(t)):n}}function rf(t){if(t=kh(t,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t))return t=t[1],[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}function nf(t){t=kh(t,!1);for(var e,o=[],i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i;e=i.exec(t);)o.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),t=t.substr(e[0].length);if(""===t)return o}function sf(t){var e=kh(t,!1).trim();return t.baseURI&&"about:blank"!==t.baseURI?new URL(e,t.baseURI).href:e}function af(t){return yu(t)}function pf(t,e){return _h(null,Af,t,e)}function hf(t,e){if(e=_h({A:[],Ej:[]},Tf,t,e)){t=e.A,e=e.Ej;for(var o=0,i=Math.min(t.length,e.length);o<i;++o)t[4*o+3]=e[o];return(e=new ll(null)).ba("XYZM",t),e}}function lf(t,e){var o=_h({},Pf,t,e);if(t=_h(null,jf,t,e))return(e=new ll(null)).ba("XYZ",t),e.H(o),e}function uf(t,e){var o=_h({},Pf,t,e);if(t=_h(null,jf,t,e))return(e=new wr(null)).ba("XYZ",t,[t.length]),e.H(o),e}function cf(t,e){if(!(t=_h([],Ff,t,e)))return null;if(!t.length)return new _l(t);var o=!0,i=t[0].U(),r=1;for(s=t.length;r<s;++r)if((e=t[r]).U()!=i){o=!1;break}if(o)if("Point"==i){for(var n=t[0],o=n.ja,i=n.ga(),r=1,s=t.length;r<s;++r)c(i,(e=t[r]).ga());(n=new gl(null)).ba(o,i),df(n,t)}else"LineString"==i?(yl(n=new cl(null),t),df(n,t)):"Polygon"==i?(wl(n=new dl(null),t),df(n,t)):"GeometryCollection"==i?n=new _l(t):O(!1,37);else n=new _l(t);return n}function ff(t,e){var o=_h({},Pf,t,e);if(t=_h(null,jf,t,e))return(e=new hr(null)).ba("XYZ",t),e.H(o),e}function yf(t,e){var o=_h({},Pf,t,e);if((t=_h([null],Ef,t,e))&&t[0]){e=new wr(null);for(var i=t[0],r=[i.length],n=1,s=t.length;n<s;++n)c(i,t[n]),r.push(i.length);return e.ba("XYZ",i,r),e.H(o),e}}function gf(t,e){if(!(e=_h({},Wf,t,e)))return null;t="fillStyle"in e?e.fillStyle:Lc;var o=e.fill;void 0===o||o||(t=null),(o="imageStyle"in e?e.imageStyle:Oc)==Uc&&(o=void 0);var i="textStyle"in e?e.textStyle:Xc,r="strokeStyle"in e?e.strokeStyle:Gc;return[new Eh({fill:t,image:o,stroke:r=void 0!==(e=e.outline)&&!e?null:r,text:i,zIndex:void 0})]}function df(t,e){for(var o,i=e.length,r=Array(e.length),n=Array(e.length),s=o=!1,a=0;a<i;++a){var p=e[a];r[a]=p.get("extrude"),n[a]=p.get("altitudeMode"),s=s||void 0!==r[a],o=o||n[a]}s&&t.set("extrude",r),o&&t.set("altitudeMode",n)}function vf(t,e){Jh(wf,t,e)}function bf(t,e){Jh(xf,t,e)}var mf=qh(Qc,{displayName:Wh(bu),value:Wh(bu)}),wf=qh(Qc,{Data:function(t,e){var o=t.getAttribute("name");Jh(mf,t,e),t=e[e.length-1],null!==o?t[o]=t.value:null!==t.displayName&&(t[t.displayName]=t.value)},SchemaData:function(t,e){Jh(Vf,t,e)}}),xf=qh(Qc,{LatLonAltBox:function(t,e){(t=_h({},Sf,t,e))&&((e=e[e.length-1]).extent=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)],e.altitudeMode=t.altitudeMode,e.minAltitude=parseFloat(t.minAltitude),e.maxAltitude=parseFloat(t.maxAltitude))},Lod:function(t,e){(t=_h({},Mf,t,e))&&((e=e[e.length-1]).minLodPixels=parseFloat(t.minLodPixels),e.maxLodPixels=parseFloat(t.maxLodPixels),e.minFadeExtent=parseFloat(t.minFadeExtent),e.maxFadeExtent=parseFloat(t.maxFadeExtent))}}),Sf=qh(Qc,{altitudeMode:Wh(bu),minAltitude:Wh(yu),maxAltitude:Wh(yu),north:Wh(yu),south:Wh(yu),east:Wh(yu),west:Wh(yu)}),Mf=qh(Qc,{minLodPixels:Wh(yu),maxLodPixels:Wh(yu),minFadeExtent:Wh(yu),maxFadeExtent:Wh(yu)}),Pf=qh(Qc,{extrude:Wh(uu),altitudeMode:Wh(bu)}),Af=qh(Qc,{coordinates:Xh(nf)}),Ef=qh(Qc,{innerBoundaryIs:function(t,e){(t=_h(void 0,Rf,t,e))&&e[e.length-1].push(t)},outerBoundaryIs:function(t,e){(t=_h(void 0,Uf,t,e))&&(e[e.length-1][0]=t)}}),Tf=qh(Qc,{when:function(t,e){e=e[e.length-1].Ej,t=kh(t,!1),t=Date.parse(t),e.push(isNaN(t)?0:t)}},qh($c,{coord:function(t,e){e=e[e.length-1].A,t=kh(t,!1),(t=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(t))?e.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]),0):e.push(0,0,0,0)}})),jf=qh(Qc,{coordinates:Xh(nf)}),Cf=qh(Qc,{href:Wh(sf)},qh($c,{x:Wh(yu),y:Wh(yu),w:Wh(yu),h:Wh(yu)})),Lf=qh(Qc,{Icon:Wh(function(t,e){return(t=_h({},Cf,t,e))?t:null}),heading:Wh(yu),hotSpot:Wh(function(t){var e=t.getAttribute("xunits"),o=t.getAttribute("yunits"),i="insetPixels"!==e?"insetPixels"!==o?"bottom-left":"top-left":"insetPixels"!==o?"bottom-right":"top-right";return{x:parseFloat(t.getAttribute("x")),Xg:tf[e],y:parseFloat(t.getAttribute("y")),Yg:tf[o],origin:i}}),scale:Wh(af)}),Rf=qh(Qc,{LinearRing:Xh(pf)}),If=qh(Qc,{color:Wh(rf),scale:Wh(af)}),Nf=qh(Qc,{color:Wh(rf),width:Wh(yu)}),Ff=qh(Qc,{LineString:Bh(lf),LinearRing:Bh(uf),MultiGeometry:Bh(cf),Point:Bh(ff),Polygon:Bh(yf)}),kf=qh($c,{Track:Bh(hf)}),Df=qh(Qc,{ExtendedData:vf,Region:bf,Link:function(t,e){Jh(Of,t,e)},address:Wh(bu),description:Wh(bu),name:Wh(bu),open:Wh(uu),phoneNumber:Wh(bu),visibility:Wh(uu)}),Of=qh(Qc,{href:Wh(sf)}),Uf=qh(Qc,{LinearRing:Xh(pf)}),Gf=qh(Qc,{Style:Wh(gf),key:Wh(bu),styleUrl:Wh(sf)}),Bf=qh(Qc,{ExtendedData:vf,Region:bf,MultiGeometry:Wh(cf,"geometry"),LineString:Wh(lf,"geometry"),LinearRing:Wh(uf,"geometry"),Point:Wh(ff,"geometry"),Polygon:Wh(yf,"geometry"),Style:Wh(gf),StyleMap:function(t,e){(t=_h(void 0,Zf,t,e))&&(e=e[e.length-1],Array.isArray(t)?e.Style=t:"string"==typeof t?e.styleUrl=t:O(!1,38))},address:Wh(bu),description:Wh(bu),name:Wh(bu),open:Wh(uu),phoneNumber:Wh(bu),styleUrl:Wh(sf),visibility:Wh(uu)},qh($c,{MultiTrack:Wh(function(t,e){if(t=_h([],kf,t,e))return yl(e=new cl(null),t),e},"geometry"),Track:Wh(hf,"geometry")})),Xf=qh(Qc,{color:Wh(rf),fill:Wh(uu),outline:Wh(uu)}),Vf=qh(Qc,{SimpleData:function(t,e){var o=t.getAttribute("name");null!==o&&(t=bu(t),e[e.length-1][o]=t)}}),Wf=qh(Qc,{IconStyle:function(t,e){var o,i,r,n,s,a,p,h,l,u,c,f;(t=_h({},Lf,t,e))&&(e=e[e.length-1],f="Icon"in t?t.Icon:{},o=!("Icon"in t)||0<Object.keys(f).length,(r=f.href)?i=r:o&&(i=kc),r="bottom-left",(u=t.hotSpot)?(n=[u.x,u.y],s=u.Xg,a=u.Yg,r=u.origin):i===kc?(n=Rc,s=Ic,a=Nc):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(n=[.5,0],a=s="fraction"),u=f.x,h=f.y,void 0!==u&&void 0!==h&&(p=[u,h]),u=f.w,f=f.h,void 0!==u&&void 0!==f&&(l=[u,f]),void 0!==(f=t.heading)&&(c=M(f)),t=t.scale,o?(i==kc&&(l=Fc,void 0===t&&(t=Dc)),i=new qc({anchor:n,anchorOrigin:r,anchorXUnits:s,anchorYUnits:a,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:c,scale:t,size:l,src:i}),e.imageStyle=i):e.imageStyle=Uc)},LabelStyle:function(t,e){(t=_h({},If,t,e))&&(e[e.length-1].textStyle=new Jc({fill:new Ah({color:"color"in t?t.color:Cc}),scale:t.scale}))},LineStyle:function(t,e){(t=_h({},Nf,t,e))&&(e[e.length-1].strokeStyle=new Ga({color:"color"in t?t.color:Cc,width:"width"in t?t.width:1}))},PolyStyle:function(t,e){var o;(t=_h({},Xf,t,e))&&((e=e[e.length-1]).fillStyle=new Ah({color:"color"in t?t.color:Cc}),void 0!==(o=t.fill)&&(e.fill=o),void 0!==(t=t.outline)&&(e.outline=t))}}),Zf=qh(Qc,{Pair:function(t,e){var o;!(t=_h({},Gf,t,e))||(o=t.key)&&"normal"==o&&((o=t.styleUrl)&&(e[e.length-1]=o),(t=t.Style)&&(e[e.length-1]=t))}});function Kf(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var o=zf(t,e);if(o)return o}}function zf(t,e){for(var o=e.firstElementChild;o;o=o.nextElementSibling)if(d(Qc,o.namespaceURI)&&"name"==o.localName)return bu(o);for(o=e.firstElementChild;o;o=o.nextElementSibling)if(e=o.localName,d(Qc,o.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=zf(t,o)))return e}function Yf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,Hf(t,e));return o}function Hf(t,e){for(var o,i=[],r=e.firstElementChild;r;r=r.nextElementSibling)d(Qc,r.namespaceURI)&&"NetworkLink"==r.localName&&(o=_h({},Df,r,[]),i.push(o));for(r=e.firstElementChild;r;r=r.nextElementSibling)e=r.localName,!d(Qc,r.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||c(i,Hf(t,r));return i}function qf(t,e){var o=[];for(e=e.firstChild;e;e=e.nextSibling)e.nodeType==Node.ELEMENT_NODE&&c(o,t.lf(e));return o}function Jf(t,e){var o;for(e=[255*(4==(e=Be(e)).length?e[3]:1),e[2],e[1],e[0]],o=0;o<4;++o){var i=parseInt(e[o],10).toString(16);e[o]=1==i.length?"0"+i:i}Su(t,e.join(""))}function _f(t,e,o){t={node:t};var i,r,n=e.U();"GeometryCollection"==n?(i=e.Vf(),r=Ty):"MultiPoint"==n?(i=e.Zd(),r=Ny):"MultiLineString"==n?(i=e.gd(),r=Fy):"MultiPolygon"==n?(i=e.Td(),r=Dy):O(!1,39),Qh(t,vy,r,i,o)}function $f(t,e,o){Qh({node:t},dy,ky,[e],o)}function Qf(t,e,o){var i={node:t};e.a&&t.setAttribute("id",e.a),t=e.N();var r={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};r[e.c]=1;var n,s=Object.keys(t||{}).sort().filter(function(t){return!r[t]});0<s.length&&(n=Hh(t,s),Qh(i,my,Ry,[{names:s,values:n}],o)),(s=e.Lc())&&(s=s.call(e,0))&&(s=Array.isArray(s)?s[0]:s,this.j&&(t.Style=s),(s=s.Na())&&(t.name=s.Na())),t=Hh(t,s=by[o[o.length-1].node.namespaceURI]),Qh(i,my,Yh,t,o,s),t=o[0],(e=e.V())&&(e=nl(e,!0,t)),Qh(i,my,Ty,[e],o)}function ty(t,e,o){var i=e.ga();(t={node:t}).layout=e.ja,t.stride=e.qa(),Qh(t,wy,Cy,[i],o)}function ey(t,e,o){var i=(e=e.Sd()).shift();Qh(t={node:t},xy,Iy,e,o),Qh(t,xy,Oy,[i],o)}function oy(t,e){wu(t,Math.round(1e6*e)/1e6)}(Au=_c.prototype).vg=function(t,e){if(t=_h([],qh(Qc,{Document:Gh(this.vg,this),Folder:Gh(this.vg,this),Placemark:Bh(this.Dg,this),Style:this.Jp.bind(this),StyleMap:this.Ip.bind(this)}),t,e,this))return t},Au.Dg=function(t,e){var o=_h({geometry:null},Bf,t,e);if(o){var i=new Ih;return null!==(t=t.getAttribute("id"))&&i.jc(t),e=e[0],(t=o.geometry)&&nl(t,!1,e),i.Ra(t),delete o.geometry,this.c&&i.hg(of(o.Style,o.styleUrl,this.a,this.b,this.g)),delete o.Style,i.H(o),i}},Au.Jp=function(t,e){var o=t.getAttribute("id");null!==o&&(e=gf(t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Au.Ip=function(t,e){var o=t.getAttribute("id");null!==o&&(e=_h(void 0,Zf,t,e))&&(t=t.baseURI&&"about:blank"!==t.baseURI?new URL("#"+o,t.baseURI).href:"#"+o,this.b[t]=e)},Au.xg=function(t,e){return d(Qc,t.namespaceURI)&&(t=this.Dg(t,[il(this,t,e)]))?t:null},Au.zc=function(t,e){if(!d(Qc,t.namespaceURI))return[];var o=t.localName;if("Document"==o||"Folder"==o)return(o=this.vg(t,[il(this,t,e)]))?o:[];if("Placemark"==o)return(e=this.Dg(t,[il(this,t,e)]))?[e]:[];if("kml"!=o)return[];for(o=[],t=t.firstElementChild;t;t=t.nextElementSibling){var i=this.zc(t,e);i&&c(o,i)}return o},Au.Cp=function(t){return Dh(t)?Kf(this,t):Oh(t)?zf(this,t):"string"==typeof t?Kf(this,t=Uh(t)):void 0},Au.Dp=function(t){var e=[];return Dh(t)?c(e,Yf(this,t)):Oh(t)?c(e,Hf(this,t)):"string"==typeof t&&c(e,Yf(this,t=Uh(t))),e},Au.Gp=function(t){var e=[];return Dh(t)?c(e,qf(this,t)):Oh(t)?c(e,this.lf(t)):"string"==typeof t&&c(e,qf(this,t=Uh(t))),e},Au.lf=function(t){for(var e,o=[],i=t.firstElementChild;i;i=i.nextElementSibling)d(Qc,i.namespaceURI)&&"Region"==i.localName&&(e=_h({},xf,i,[]),o.push(e));for(i=t.firstElementChild;i;i=i.nextElementSibling)t=i.localName,!d(Qc,i.namespaceURI)||"Document"!=t&&"Folder"!=t&&"kml"!=t||c(o,this.lf(i));return o};var iy=qh(Qc,["Document","Placemark"]),ry=qh(Qc,{Document:Zh(function(t,e,o){Qh({node:t},ny,Ey,e,o,void 0,this)}),Placemark:Zh(Qf)}),ny=qh(Qc,{Placemark:Zh(Qf)}),sy=qh(Qc,{Data:Zh(function(t,e,o){t.setAttribute("name",e.name),t={node:t},"object"==typeof(e=e.value)?(null!==e&&e.displayName&&Qh(t,sy,Yh,[e.displayName],o,["displayName"]),null!==e&&e.value&&Qh(t,sy,Yh,[e.value],o,["value"])):Qh(t,sy,Yh,[e],o,["value"])}),value:Zh(function(t,e){Su(t,e)}),displayName:Zh(function(t,e){t.appendChild(Nh.createCDATASection(e))})}),ay={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},py=qh(Qc,["href"],qh($c,["x","y","w","h"])),hy=qh(Qc,{href:Zh(Su)},qh($c,{x:Zh(wu),y:Zh(wu),w:Zh(wu),h:Zh(wu)})),ly=qh(Qc,["scale","heading","Icon","hotSpot"]),uy=qh(Qc,{Icon:Zh(function(t,e,o){t={node:t};var i=py[o[o.length-1].node.namespaceURI],r=Hh(e,i);Qh(t,hy,Yh,r,o,i),r=Hh(e,i=py[$c[0]]),Qh(t,hy,Ay,r,o,i)}),heading:Zh(wu),hotSpot:Zh(function(t,e){t.setAttribute("x",e.x),t.setAttribute("y",e.y),t.setAttribute("xunits",e.Xg),t.setAttribute("yunits",e.Yg)}),scale:Zh(oy)}),cy=qh(Qc,["color","scale"]),fy=qh(Qc,{color:Zh(Jf),scale:Zh(oy)}),yy=qh(Qc,["color","width"]),gy=qh(Qc,{color:Zh(Jf),width:Zh(wu)}),dy=qh(Qc,{LinearRing:Zh(ty)}),vy=qh(Qc,{LineString:Zh(ty),Point:Zh(ty),Polygon:Zh(ey),GeometryCollection:Zh(_f)}),by=qh(Qc,"name open visibility address phoneNumber description styleUrl Style".split(" ")),my=qh(Qc,{ExtendedData:Zh(function(t,e,o){t={node:t};var i=e.names;e=e.values;for(var r=i.length,n=0;n<r;n++)Qh(t,sy,Ly,[{name:i[n],value:e[n]}],o)}),MultiGeometry:Zh(_f),LineString:Zh(ty),LinearRing:Zh(ty),Point:Zh(ty),Polygon:Zh(ey),Style:Zh(function(t,e,o){t={node:t};var i={},r=e.Fa(),n=e.Ga(),s=e.Y();e=e.Na(),s instanceof qc&&(i.IconStyle=s),e&&(i.LabelStyle=e),n&&(i.LineStyle=n),r&&(i.PolyStyle=r),i=Hh(i,e=My[o[o.length-1].node.namespaceURI]),Qh(t,Py,Yh,i,o,e)}),address:Zh(Su),description:Zh(Su),name:Zh(Su),open:Zh(mu),phoneNumber:Zh(Su),styleUrl:Zh(Su),visibility:Zh(mu)}),wy=qh(Qc,{coordinates:Zh(function(t,e,o){var i,r=(o=o[o.length-1]).layout;o=o.stride,"XY"==r||"XYM"==r?i=2:"XYZ"==r||"XYZM"==r?i=3:O(!1,34);var n,s=e.length,a="";if(0<s){for(a+=e[0],r=1;r<i;++r)a+=","+e[r];for(n=o;n<s;n+=o)for(a+=" "+e[n],r=1;r<i;++r)a+=","+e[n+r]}Su(t,a)})}),xy=qh(Qc,{outerBoundaryIs:Zh($f),innerBoundaryIs:Zh($f)}),Sy=qh(Qc,{color:Zh(Jf)}),My=qh(Qc,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Py=qh(Qc,{IconStyle:Zh(function(t,e,o){t={node:t};var i,r,n={},s=e.ic(),a=e.ye(),p={href:e.b.o};s&&(p.w=s[0],p.h=s[1],i=e.Hc(),(r=e.Oc())&&a&&r[0]&&r[1]!==s[1]&&(p.x=r[0],p.y=a[1]-(r[1]+s[1])),i&&i[0]&&i[1]!==s[1]&&(n.hotSpot={x:i[0],Xg:"pixels",y:s[1]-i[1],Yg:"pixels"})),n.Icon=p,1!==(s=e.a)&&(n.scale=s),(e=e.g)&&(n.heading=e),n=Hh(n,e=ly[o[o.length-1].node.namespaceURI]),Qh(t,uy,Yh,n,o,e)}),LabelStyle:Zh(function(t,e,o){t={node:t};var i={},r=e.Fa();r&&(i.color=r.b),(e=e.b)&&1!==e&&(i.scale=e),i=Hh(i,e=cy[o[o.length-1].node.namespaceURI]),Qh(t,fy,Yh,i,o,e)}),LineStyle:Zh(function(t,e,o){t={node:t};var i=yy[o[o.length-1].node.namespaceURI];e=Hh({color:e.a,width:e.c},i),Qh(t,gy,Yh,e,o,i)}),PolyStyle:Zh(function(t,e,o){Qh({node:t},Sy,jy,[e.b],o)})});function Ay(t,e,o){return Fh($c[0],"gx:"+o)}function Ey(t,e){return Fh(e[e.length-1].node.namespaceURI,"Placemark")}function Ty(t,e){if(t)return Fh(e[e.length-1].node.namespaceURI,ay[t.U()])}var jy=zh("color"),Cy=zh("coordinates"),Ly=zh("Data"),Ry=zh("ExtendedData"),Iy=zh("innerBoundaryIs"),Ny=zh("Point"),Fy=zh("LineString"),ky=zh("LinearRing"),Dy=zh("Polygon"),Oy=zh("outerBoundaryIs");function Uy(t,e,o,i,r){this.g=r,this.i=t,this.b=e,this.f=o,this.c=i}function Gy(t){ol.call(this),t=t||{},this.defaultDataProjection=new vt({code:"",units:"tile-pixels"}),this.b=t.featureClass||Uy,this.a=t.geometryName,this.i=t.layerName||"layer",this.c=t.layers||null}function By(t,e,o){for(var i=0,r=0,n=t.length;r<n;++r){for(var s=t[r],a=0,p=s.length;a<p;++a){var h=s[a];e.push(h.x,h.y)}i+=2*a,o.push(i)}}function Xy(){su.call(this),this.defaultDataProjection=Bt("EPSG:4326")}function Vy(t,e){e[e.length-1].fe[t.getAttribute("k")]=t.getAttribute("v")}_c.prototype.Xb=function(t,e){e=rl(this,e);var o=Fh(Qc[4],"kml");o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",$c[0]),o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),o.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:o},r={};return 1<t.length?r.Document=t:1==t.length&&(r.Placemark=t[0]),r=Hh(r,t=iy[o.namespaceURI]),Qh(i,ry,Yh,r,[e],t,this),o},qa.Dd=function(){},function(t){function e(t){this.lc=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.type=this.ea=0,this.length=this.lc.length}function s(t,e,o){return o?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}var o=function(t,e,o,i,r){var n=8*r-i-1,s=(1<<n)-1,a=s>>1,p=-7,h=o?-1:1,l=t[e+(r=o?r-1:0)];for(r+=h,o=l&(1<<-p)-1,l>>=-p,p+=n;0<p;o=256*o+t[e+r],r+=h,p-=8);for(n=o&(1<<-p)-1,o>>=-p,p+=i;0<p;n=256*n+t[e+r],r+=h,p-=8);if(0===o)o=1-a;else{if(o===s)return n?NaN:1/0*(l?-1:1);n+=Math.pow(2,i),o-=a}return(l?-1:1)*n*Math.pow(2,o-i)};e.c=0,e.i=1,e.b=2,e.a=5,e.prototype={Ag:function(t,e,o){for(o=o||this.length;this.ea<o;){var i=this.Ka(),r=i>>3,n=this.ea;this.type=7&i,t(r,e,this),this.ea===n&&this.mq(i)}return e},yp:function(){var t=o(this.lc,this.ea,!0,23,4);return this.ea+=4,t},up:function(){var t=o(this.lc,this.ea,!0,52,8);return this.ea+=8,t},Ka:function(t){var e=this.lc,o=e[this.ea++],i=127&o;return o<128?i:(i|=(127&(o=e[this.ea++]))<<7,o<128?i:(i|=(127&(o=e[this.ea++]))<<14,o<128?i:(i|=(127&(o=e[this.ea++]))<<21,o<128?i:function(t,e,o){var i=o.lc,r=i[o.ea++],n=(112&r)>>4;if(r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<3,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<10,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<17,r<128)return s(t,n,e);if(n|=(127&(r=i[o.ea++]))<<24,r<128)return s(t,n,e);if((r=i[o.ea++])<128)return s(t,n|(1&r)<<31,e);throw Error("Expected varint not more than 10 bytes")}(i|(15&e[this.ea])<<28,t,this))))},Kp:function(){return this.Ka(!0)},ce:function(){var t=this.Ka();return 1==t%2?(t+1)/-2:t/2},sp:function(){return!!this.Ka()},Gg:function(){for(var t=this.Ka()+this.ea,e=this.lc,o="",i=this.ea;i<t;){var r,n,s,a=e[i],p=null,h=239<a?4:223<a?3:191<a?2:1;if(t<i+h)break;1===h?a<128&&(p=a):2===h?128!=(192&(r=e[i+1]))||(p=(31&a)<<6|63&r)<=127&&(p=null):3===h?(r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&((p=(15&a)<<12|(63&r)<<6|63&n)<=2047||55296<=p&&p<=57343)&&(p=null)):4===h&&(r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&((p=(15&a)<<18|(63&r)<<12|(63&n)<<6|63&s)<=65535||1114112<=p)&&(p=null)),null===p?(p=65533,h=1):65535<p&&(p-=65536,o+=String.fromCharCode(p>>>10&1023|55296),p=56320|1023&p),o+=String.fromCharCode(p),i+=h}return this.ea=t,o},mq:function(t){if((t&=7)===e.c)for(;127<this.lc[this.ea++];);else if(t===e.b)this.ea=this.Ka()+this.ea;else if(t===e.a)this.ea+=4;else{if(t!==e.i)throw Error("Unimplemented type: "+t);this.ea+=8}}},t.default=e}(qa.Dd=qa.Dd||{}),qa.Dd=qa.Dd.default,qa.xf={},qa.xf.Bf=function(){},function(t){function e(t,e){this.layers=t.Ag(s,{},e)}function p(t,e){this.x=t,this.y=e}function o(t,e,o,i,r){this.properties={},this.extent=o,this.type=0,this.Cc=t,this.Ef=-1,this.ne=i,this.pe=r,t.Ag(n,this,e)}function n(t,e,o){if(1==t)e.id=o.Ka();else if(2==t)for(t=o.Ka()+o.ea;o.ea<t;){var i=e.ne[o.Ka()],r=e.pe[o.Ka()];e.properties[i]=r}else 3==t?e.type=o.Ka():4==t&&(e.Ef=o.ea)}function i(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this.Cc=t,this.ne=[],this.pe=[],this.me=[],t.Ag(r,this,e),this.length=this.me.length}function r(t,e,o){15===t?e.version=o.Ka():1===t?e.name=o.Gg():5===t?e.extent=o.Ka():2===t?e.me.push(o.ea):3===t?e.ne.push(o.Gg()):4===t&&e.pe.push(function(t){for(var e=null,o=t.Ka()+t.ea;t.ea<o;)e=1==(e=t.Ka()>>3)?t.Gg():2===e?t.yp():3===e?t.up():4===e?t.Kp():5===e?t.Ka():6===e?t.ce():7===e?t.sp():null;return e}(o))}function s(t,e,o){3===t&&((t=new a(o,o.Ka()+o.ea)).length&&(e[t.name]=t))}p.prototype={clone:function(){return new p(this.x,this.y)},add:function(t){return this.clone().Yj(t)},rotate:function(t){return this.clone().hk(t)},round:function(){return this.clone().ik()},angle:function(){return Math.atan2(this.y,this.x)},Yj:function(t){return this.x+=t.x,this.y+=t.y,this},hk:function(t){var e=Math.cos(t),o=(t=Math.sin(t))*this.x+e*this.y;return this.x=e*this.x-t*this.y,this.y=o,this},ik:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},p.Kq=function(t){return!(t instanceof p)&&Array.isArray(t)?new p(t[0],t[1]):t},o.b=["Unknown","Point","LineString","Polygon"],o.prototype.Oh=function(){var t=this.Cc;t.ea=this.Ef;for(var e,o=t.Ka()+t.ea,i=1,r=0,n=0,s=0,a=[];t.ea<o;)if(r||(i=7&(r=t.Ka()),r>>=3),r--,1===i||2===i)n+=t.ce(),s+=t.ce(),1===i&&(e&&a.push(e),e=[]),e.push(new p(n,s));else{if(7!==i)throw Error("unknown command "+i);e&&e.push(e[0].clone())}return e&&a.push(e),a},o.prototype.bbox=function(){var t=this.Cc;t.ea=this.Ef;for(var e=t.Ka()+t.ea,o=1,i=0,r=0,n=0,s=1/0,a=-1/0,p=1/0,h=-1/0;t.ea<e;)if(i||(o=7&(i=t.Ka()),i>>=3),i--,1===o||2===o)(r+=t.ce())<s&&(s=r),a<r&&(a=r),(n+=t.ce())<p&&(p=n),h<n&&(h=n);else if(7!==o)throw Error("unknown command "+o);return[s,p,a,h]};var a=i;i.prototype.feature=function(t){if(t<0||t>=this.me.length)throw Error("feature index out of bounds");return this.Cc.ea=this.me[t],t=this.Cc.Ka()+this.Cc.ea,new o(this.Cc,t,this.extent,this.ne,this.pe)};var h=a;t.default={Bf:e,Wj:o,Xj:h},t.Bf=e,t.Wj=o,t.Xj=h}(qa.xf=qa.xf||{}),(Au=Uy.prototype).get=function(t){return this.c[t]},Au.Bb=function(){return this.f},Au.G=function(){return this.a||(this.a="Point"===this.i?k(this.b):W(this.b,0,this.b.length,2)),this.a},Au.Wn=function(){return this.g},Au.ec=function(){return this.b},Au.ga=Uy.prototype.ec,Au.V=function(){return this},Au.Xn=function(){return this.c},Au.Vd=Uy.prototype.V,Au.qa=function(){return 2},Au.Lc=w,Au.U=function(){return this.i},e(Gy,ol),(Au=Gy.prototype).U=function(){return"arraybuffer"},Au.Oa=function(t,e){var o=this.c;t=new qa.Dd(t),t=new qa.xf.Bf(t);var i,r=[],n=this.b;for(i in t.layers)if(!o||-1!=o.indexOf(i))for(var s,a,p,h,l,u,c,f,y,g=t.layers[i],d=0,v=g.length;d<v;++d)n===Uy?(s=void 0,p=i,By(h=(a=g.feature(d)).Oh(),u=[],l=[]),1===(c=a.type)?s=1===h.length?"Point":"MultiPoint":2===c?s=1===h.length?"LineString":"MultiLineString":3===c&&(s="Polygon"),(h=a.properties)[this.i]=p,s=new this.b(s,u,l,h,a.id)):(c=g.feature(d),u=i,l=e,s=new this.b,a=c.id,(p=c.properties)[this.i]=u,this.a&&s.Tc(this.a),u=void 0,0===(h=c.type)?u=null:(f=[],y=[],By(c=c.Oh(),y,f),1===h?u=new(1===c.length?hr:gl)(null):2===h?u=new(1===c.length?ll:cl)(null):3===h&&(u=new wr(null)),u.ba("XY",y,f)),l=nl(u,!1,rl(this,l)),s.Ra(l),s.jc(a),s.H(p)),r.push(s);return r},Au.kb=function(){return this.defaultDataProjection},Au.mn=function(t){this.c=t},Au.Tb=function(){},Au.Sc=function(){},Au.Bd=function(){},Au.$c=function(){},Au.Wb=function(){},e(Xy,su);var Ao=[null],Wy=qh(Ao,{nd:function(t,e){e[e.length-1].md.push(t.getAttribute("ref"))},tag:Vy}),Zy=qh(Ao,{node:function(t,e){var o=e[0],i=e[e.length-1],r=t.getAttribute("id"),n=[parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))];i.Sh[r]=n,ct((t=_h({fe:{}},Ky,t,e)).fe)||(nl(n=new hr(n),!1,o),(o=new Ih(n)).jc(r),o.H(t.fe),i.features.push(o))},way:function(t,e){var o=e[0],i=t.getAttribute("id");t=_h({md:[],fe:{}},Wy,t,e),e=e[e.length-1];for(var r=[],n=0,s=t.md.length;n<s;n++)c(r,e.Sh[t.md[n]]);t.md[0]==t.md[t.md.length-1]?(n=new wr(null)).ba("XY",r,[r.length]):(n=new ll(null)).ba("XY",r),nl(n,!1,o),(o=new Ih(n)).jc(i),o.H(t.fe),e.features.push(o)}}),Ky=qh(Ao,{tag:Vy});function zy(t){return t.getAttributeNS("http://www.w3.org/1999/xlink","href")}function Yy(){}function Hy(){}Xy.prototype.zc=function(t,e){return e=il(this,t,e),"osm"==t.localName&&(t=_h({Sh:{},features:[]},Zy,t,[e])).features?t.features:[]},Xy.prototype.Vg=function(){},Xy.prototype.Xb=function(){},Xy.prototype.ie=function(){},Yy.prototype.read=function(t){return Dh(t)?this.a(t):Oh(t)?this.b(t):"string"==typeof t?(t=Uh(t),this.a(t)):null},e(Hy,Yy),Hy.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},Hy.prototype.b=function(t){return(t=_h({},Jy,t,[]))?t:null};var qy=[null,"http://www.opengis.net/ows/1.1"],Jy=qh(qy,{ServiceIdentification:Wh(function(t,e){return _h({},pg,t,e)}),ServiceProvider:Wh(function(t,e){return _h({},hg,t,e)}),OperationsMetadata:Wh(function(t,e){return _h({},rg,t,e)})}),_y=qh(qy,{DeliveryPoint:Wh(bu),City:Wh(bu),AdministrativeArea:Wh(bu),PostalCode:Wh(bu),Country:Wh(bu),ElectronicMailAddress:Wh(bu)}),$y=qh(qy,{Value:Vh(bu)}),Qy=qh(qy,{AllowedValues:Wh(function(t,e){return _h({},$y,t,e)})}),tg=qh(qy,{Phone:Wh(function(t,e){return _h({},ng,t,e)}),Address:Wh(function(t,e){return _h({},_y,t,e)})}),eg=qh(qy,{HTTP:Wh(function(t,e){return _h({},og,t,e)})}),og=qh(qy,{Get:Vh(function(t,e){var o=zy(t);if(o)return _h({href:o},sg,t,e)}),Post:void 0}),ig=qh(qy,{DCP:Wh(function(t,e){return _h({},eg,t,e)})}),rg=qh(qy,{Operation:function(t,e){var o=t.getAttribute("name");(t=_h({},ig,t,e))&&(e[e.length-1][o]=t)}}),ng=qh(qy,{Voice:Wh(bu),Facsimile:Wh(bu)}),sg=qh(qy,{Constraint:Vh(function(t,e){var o=t.getAttribute("name");if(o)return _h({name:o},Qy,t,e)})}),ag=qh(qy,{IndividualName:Wh(bu),PositionName:Wh(bu),ContactInfo:Wh(function(t,e){return _h({},tg,t,e)})}),pg=qh(qy,{Title:Wh(bu),ServiceTypeVersion:Wh(bu),ServiceType:Wh(bu)}),hg=qh(qy,{ProviderName:Wh(bu),ProviderSite:Wh(zy),ServiceContact:Wh(function(t,e){return _h({},ag,t,e)})});function lg(t,e,o,i){for(var r=void 0!==i?i:[],n=i=0;n<e;){var s=t[n++];for(r[i++]=t[n++],r[i++]=s,s=2;s<o;++s)r[i++]=t[n++]}r.length=i}function ug(t){t=t||{},ol.call(this),this.defaultDataProjection=Bt("EPSG:4326"),this.b=t.factor||1e5,this.a=t.geometryLayout||"XY"}function cg(t,e,o){for(var i=Array(e),r=0;r<e;++r)i[r]=0;for(var n=0,s=t.length;n<s;)for(r=0;r<e;++r,++n){var a=t[n],p=a-i[r];i[r]=a,t[n]=p}return yg(t,o||1e5)}function fg(t,e,o){for(var i,r=Array(e),n=0;n<e;++n)r[n]=0;for(t=gg(t,o||1e5),o=0,i=t.length;o<i;)for(n=0;n<e;++n,++o)r[n]+=t[o],t[o]=r[n];return t}function yg(t,e){e=e||1e5;for(var o=0,i=t.length;o<i;++o)t[o]=Math.round(t[o]*e);for(e=0,o=t.length;e<o;++e)i=t[e],t[e]=i<0?~(i<<1):i<<1;for(e="",o=0,i=t.length;o<i;++o){for(var r,n=t[o],s="";32<=n;)r=63+(32|31&n),s+=String.fromCharCode(r),n>>=5;e+=s+=String.fromCharCode(n+63)}return e}function gg(t,e){e=e||1e5;for(var o=[],i=0,r=0,n=0,s=t.length;n<s;++n){var a=t.charCodeAt(n)-63,i=i|(31&a)<<r;a<32?(o.push(i),r=i=0):r+=5}for(t=0,i=o.length;t<i;++t)r=o[t],o[t]=1&r?~(r>>1):r>>1;for(t=0,i=o.length;t<i;++t)o[t]/=e;return o}function dg(t){t=t||{},ol.call(this),this.a=t.layerName,this.b=t.layers||null,this.defaultDataProjection=Bt(t.defaultDataProjection||"EPSG:4326")}function vg(t,e){for(var o=[],i=0,r=t.length;i<r;++i){var n=t[i];0<i&&o.pop(),n=0<=n?e[n]:e[~n].slice().reverse(),o.push.apply(o,n)}for(t=0,e=o.length;t<e;++t)o[t]=o[t].slice();return o}function bg(t,e,o,i,r,n,s){var a=t.type,p=wg[a];return o="Point"===a||"MultiPoint"===a?p(t,o,i):p(t,e),(e=new Ih).Ra(nl(o,!1,s)),void 0!==t.id&&e.jc(t.id),t=t.properties,r&&((t=t||{})[r]=n),t&&e.H(t),e}function mg(t,e,o){t[0]=t[0]*e[0]+o[0],t[1]=t[1]*e[1]+o[1]}e(ug,Ac),(Au=ug.prototype).ae=function(t,e){return new Ih(t=this.wd(t,e))},Au.zg=function(t,e){return[this.ae(t,e)]},Au.wd=function(t,e){var o=Zi(this.a);return lg(t=fg(t,o,this.b),t.length,o,t),nl(new ll(ir(t,0,t.length,o),this.a),!1,rl(this,e))},Au.ge=function(t,e){return(t=t.V())?this.Cd(t,e):(O(!1,40),"")},Au.Wg=function(t,e){return this.ge(t[0],e)},Au.Cd=function(t,e){return e=(t=nl(t,!0,rl(this,e))).ga(),t=t.qa(),lg(e,e.length,t,e),cg(e,t,this.b)},e(dg,sl),dg.prototype.yg=function(t,e){if("Topology"!=t.type)return[];var o=null,i=null;t.transform&&(o=(n=t.transform).scale,i=n.translate);var r=t.arcs;if(n)for(var n=o,s=i,a=0,p=r.length;a<p;++a)for(var h=r[a],l=n,u=s,c=0,f=0,y=0,g=h.length;y<g;++y){var d=h[y];c+=d[0],f+=d[1],d[0]=c,d[1]=f,mg(d,l,u)}n=[],t=t.objects;var v,s=this.a;for(v in t)this.b&&-1==this.b.indexOf(v)||("GeometryCollection"===t[v].type?(a=t[v],n.push.apply(n,function(t,e,o,i,r,n,s){for(var a=[],p=0,h=(t=t.geometries).length;p<h;++p)a[p]=bg(t[p],e,o,i,r,n,s);return a}(a,r,o,i,s,v,e))):(a=t[v],n.push(bg(a,r,o,i,s,v,e))));return n},dg.prototype.Fg=function(){return this.defaultDataProjection};var wg={Point:function(t,e,o){return t=t.coordinates,e&&o&&mg(t,e,o),new hr(t)},LineString:function(t,e){return new ll(t=vg(t.arcs,e))},Polygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=vg(t.arcs[i],e);return new wr(o)},MultiPoint:function(t,e,o){if(t=t.coordinates,e&&o)for(var i=0,r=t.length;i<r;++i)mg(t[i],e,o);return new gl(t)},MultiLineString:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i)o[i]=vg(t.arcs[i],e);return new cl(o)},MultiPolygon:function(t,e){for(var o=[],i=0,r=t.arcs.length;i<r;++i){for(var n=t.arcs[i],s=[],a=0,p=n.length;a<p;++a)s[a]=vg(n[a],e);o[i]=s}return new dl(o)}};function xg(t){t=t||{},this.c=t.featureType,this.a=t.featureNS,this.b=t.gmlFormat||new Mu,this.o=t.schemaLocation||Sg["1.1.0"],su.call(this)}(Au=dg.prototype).Zc=function(){},Au.he=function(){},Au.je=function(){},Au.Cg=function(){},Au.Rc=function(){},e(xg,su);var Sg={"1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"};function Mg(t,e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return Ag(t,e)}xg.prototype.zc=function(t,e){var o={featureType:this.c,featureNS:this.a};return ht(o,il(this,t,e||{})),e=[o],this.b.b["http://www.opengis.net/gml"].featureMember=Bh(hu.prototype.be),t=!(t=_h([],this.b.b,t,e,this.b))?[]:t},xg.prototype.j=function(t){return Dh(t)?Lg(t):Oh(t)?_h({},Cg,t,[]):"string"==typeof t?Lg(t=Uh(t)):void 0},xg.prototype.g=function(t){return Dh(t)?Mg(this,t):Oh(t)?Ag(this,t):"string"==typeof t?Mg(this,t=Uh(t)):void 0};var Pg={"http://www.opengis.net/gml":{boundedBy:Wh(hu.prototype.gf,"bounds")}};function Ag(t,e){var o={},i=vu(e.getAttribute("numberOfFeatures"));return o.numberOfFeatures=i,_h(o,Pg,e,[],t.b)}var Eg={"http://www.opengis.net/wfs":{totalInserted:Wh(du),totalUpdated:Wh(du),totalDeleted:Wh(du)}},Tg={"http://www.opengis.net/ogc":{FeatureId:Bh(function(t){return t.getAttribute("fid")})}},jg={"http://www.opengis.net/wfs":{Feature:function(t,e){Jh(Tg,t,e)}}},Cg={"http://www.opengis.net/wfs":{TransactionSummary:Wh(function(t,e){return _h({},Eg,t,e)},"transactionSummary"),InsertResults:Wh(function(t,e){return _h([],jg,t,e)},"insertIds")}};function Lg(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return _h({},Cg,t,[])}var Rg={"http://www.opengis.net/wfs":{PropertyName:Zh(Su)}};function Ig(t,e){var o=Fh("http://www.opengis.net/ogc","Filter"),i=Fh("http://www.opengis.net/ogc","FeatureId");o.appendChild(i),i.setAttribute("fid",e),t.appendChild(o)}function Ng(t,e){return t=(t||"feature")+":",e.indexOf(t)?t+e:e}var Fg={"http://www.opengis.net/wfs":{Insert:Zh(function(t,e,o){var i=(r=o[o.length-1]).gmlVersion,r=Fh(r.featureNS,r.featureType);if(t.appendChild(r),2===i){t=Nu.prototype,(i=e.a)&&r.setAttribute("fid",i);var n=(i=o[o.length-1]).featureNS,s=e.c;i.lb||(i.lb={},i.lb[n]={});var a=e.N();e=[];var p=[];for(l in a){var h=a[l];null!==h&&(e.push(l),p.push(h),l==s||h instanceof Bi?l in i.lb[n]||(i.lb[n][l]=Zh(t.ai,t)):l in i.lb[n]||(i.lb[n][l]=Zh(Su)))}var l=ht({},i);l.node=r,Qh(l,i.lb,zh(void 0,n),p,o,e)}else Mu.prototype.ii(r,e,o)}),Update:Zh(function(t,e,o){var i=o[o.length-1];O(void 0!==e.a,27);var r=i.featurePrefix,n=i.featureNS;if(t.setAttribute("typeName",Ng(r,i.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),void 0!==(r=e.a)){for(var s=[],a=0,p=(n=e.O()).length;a<p;a++){var h=e.get(n[a]);void 0!==h&&s.push({name:n[a],value:h})}Qh({gmlVersion:i.gmlVersion,node:t,hasZ:i.hasZ,srsName:i.srsName},Fg,zh("Property"),s,o),Ig(t,r)}}),Delete:Zh(function(t,e,o){o=o[o.length-1],O(void 0!==e.a,26);var i=o.featurePrefix,r=o.featureNS;t.setAttribute("typeName",Ng(i,o.featureType)),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+i,r),void 0!==(e=e.a)&&Ig(t,e)}),Property:Zh(function(t,e,o){var i=Fh("http://www.opengis.net/wfs","Name"),r=o[o.length-1].gmlVersion;t.appendChild(i),Su(i,e.name),void 0!==e.value&&null!==e.value&&(i=Fh("http://www.opengis.net/wfs","Value"),t.appendChild(i),e.value instanceof Bi?2===r?Nu.prototype.ai(i,e.value,o):Mu.prototype.od(i,e.value,o):Su(i,e.value))}),Native:Zh(function(t,e){e.vq&&t.setAttribute("vendorId",e.vq),void 0!==e.Vp&&t.setAttribute("safeToIgnore",e.Vp),void 0!==e.value&&Su(t,e.value)})}};function kg(t,e,o){var i={node:t};e.b.forEach(function(t){Qh(i,Xg,zh(t.kc),[t],o)})}function Dg(t,e){void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Ug(t,e.b),Gg(t,""+e.i)}function Og(t,e,o){Su(t=Fh("http://www.opengis.net/ogc",t),o),e.appendChild(t)}function Ug(t,e){Og("PropertyName",t,e)}function Gg(t,e){Og("Literal",t,e)}function Bg(t,e){var o=Fh("http://www.opengis.net/gml","TimeInstant");t.appendChild(o),t=Fh("http://www.opengis.net/gml","timePosition"),o.appendChild(t),Su(t,e)}var Xg={"http://www.opengis.net/wfs":{Query:Zh(function(t,e,o){var i=o[o.length-1],r=i.featurePrefix,n=i.featureNS,s=i.propertyNames,a=i.srsName;t.setAttribute("typeName",r?Ng(r,e):e),a&&t.setAttribute("srsName",a),n&&t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:"+r,n),(e=ht({},i)).node=t,Qh(e,Rg,zh("PropertyName"),s,o),(i=i.filter)&&(s=Fh("http://www.opengis.net/ogc","Filter"),t.appendChild(s),Qh({node:s},Xg,zh(i.kc),[i],o))})},"http://www.opengis.net/ogc":{During:Zh(function(t,e){var o=Fh("http://www.opengis.net/fes","ValueReference");Su(o,e.b),t.appendChild(o),o=Fh("http://www.opengis.net/gml","TimePeriod"),t.appendChild(o),t=Fh("http://www.opengis.net/gml","begin"),o.appendChild(t),Bg(t,e.a),t=Fh("http://www.opengis.net/gml","end"),o.appendChild(t),Bg(t,e.i)}),And:Zh(kg),Or:Zh(kg),Not:Zh(function(t,e,o){e=e.condition,Qh({node:t},Xg,zh(e.kc),[e],o)}),BBOX:Zh(function(t,e,o){o[o.length-1].srsName=e.srsName,Ug(t,e.geometryName),Mu.prototype.od(t,e.extent,o)}),Intersects:Zh(function(t,e,o){o[o.length-1].srsName=e.srsName,Ug(t,e.geometryName),Mu.prototype.od(t,e.geometry,o)}),Within:Zh(function(t,e,o){o[o.length-1].srsName=e.srsName,Ug(t,e.geometryName),Mu.prototype.od(t,e.geometry,o)}),PropertyIsEqualTo:Zh(Dg),PropertyIsNotEqualTo:Zh(Dg),PropertyIsLessThan:Zh(Dg),PropertyIsLessThanOrEqualTo:Zh(Dg),PropertyIsGreaterThan:Zh(Dg),PropertyIsGreaterThanOrEqualTo:Zh(Dg),PropertyIsNull:Zh(function(t,e){Ug(t,e.b)}),PropertyIsBetween:Zh(function(t,e){Ug(t,e.b);var o=Fh("http://www.opengis.net/ogc","LowerBoundary");t.appendChild(o),Gg(o,""+e.a),o=Fh("http://www.opengis.net/ogc","UpperBoundary"),t.appendChild(o),Gg(o,""+e.i)}),PropertyIsLike:Zh(function(t,e){t.setAttribute("wildCard",e.g),t.setAttribute("singleChar",e.f),t.setAttribute("escapeChar",e.i),void 0!==e.a&&t.setAttribute("matchCase",e.a.toString()),Ug(t,e.b),Gg(t,""+e.c)})}};function Vg(t){t=t||{},ol.call(this),this.b=void 0!==t.splitCollection&&t.splitCollection}function Wg(t){return(t=t.X()).length?t.join(" "):""}function Zg(t){for(var e=[],o=0,i=(t=t.X()).length;o<i;++o)e.push(t[o].join(" "));return e.join(",")}function Kg(t){for(var e=[],o=0,i=(t=t.Sd()).length;o<i;++o)e.push("("+Zg(t[o])+")");return e.join(",")}function zg(t){var e,o=t.U(),i=(0,Yg[o])(t),o=o.toUpperCase();return t instanceof Wi&&(e="","XYZ"!==(t=t.ja)&&"XYZM"!==t||(e+="Z"),"XYM"!==t&&"XYZM"!==t||(e+="M"),0<(t=e).length&&(o+=" "+t)),i.length?o+"("+i+")":o+" EMPTY"}xg.prototype.l=function(t){var e,o,i=Fh("http://www.opengis.net/wfs","GetFeature");return i.setAttribute("service","WFS"),i.setAttribute("version","1.1.0"),t&&(t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),void 0!==t.maxFeatures&&i.setAttribute("maxFeatures",t.maxFeatures),t.resultType&&i.setAttribute("resultType",t.resultType),void 0!==t.startIndex&&i.setAttribute("startIndex",t.startIndex),void 0!==t.count&&i.setAttribute("count",t.count),o=t.filter,t.bbox&&(O(t.geometryName,12),e=Jl(t.geometryName,t.bbox,t.srsName),o=o?ql(o,e):e)),i.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.o),o={node:i,srsName:t.srsName,featureNS:t.featureNS||this.a,featurePrefix:t.featurePrefix,geometryName:t.geometryName,filter:o,propertyNames:t.propertyNames||[]},O(Array.isArray(t.featureTypes),11),t=t.featureTypes,(e=ht({},(o=[o])[o.length-1])).node=i,Qh(e,Xg,zh("Query"),t,o),i},xg.prototype.v=function(t,e,o,i){var r,n=[],s=Fh("http://www.opengis.net/wfs","Transaction"),a=i.version||"1.1.0",p="1.0.0"===a?2:3;return s.setAttribute("service","WFS"),s.setAttribute("version",a),i&&(r=i.gmlOptions||{},i.handle&&s.setAttribute("handle",i.handle)),s.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",Sg[a]),t&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),Qh(a,Fg,zh("Insert"),t,n)),e&&(a={node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,hasZ:i.hasZ,srsName:i.srsName},ht(a,r),Qh(a,Fg,zh("Update"),e,n)),o&&Qh({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Fg,zh("Delete"),o,n),i.nativeElements&&Qh({node:s,featureNS:i.featureNS,featureType:i.featureType,featurePrefix:i.featurePrefix,gmlVersion:p,srsName:i.srsName},Fg,zh("Native"),i.nativeElements,n),s},xg.prototype.Eg=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.kf(t);return null},xg.prototype.kf=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild)for(t=(t=t.firstElementChild.firstElementChild).firstElementChild;t;t=t.nextElementSibling)if(0!==t.childNodes.length&&(1!==t.childNodes.length||3!==t.firstChild.nodeType)){var e=[{}];return this.b.gf(t,e),Bt(e.pop().srsName)}return null},e(Vg,Ac);var Yg={Point:Wg,LineString:Zg,Polygon:Kg,MultiPoint:function(t){for(var e=[],o=0,i=(t=t.Zd()).length;o<i;++o)e.push("("+Wg(t[o])+")");return e.join(",")},MultiLineString:function(t){for(var e=[],o=0,i=(t=t.gd()).length;o<i;++o)e.push("("+Zg(t[o])+")");return e.join(",")},MultiPolygon:function(t){for(var e=[],o=0,i=(t=t.Td()).length;o<i;++o)e.push("("+Kg(t[o])+")");return e.join(",")},GeometryCollection:function(t){for(var e=[],o=0,i=(t=t.Vf()).length;o<i;++o)e.push(zg(t[o]));return e.join(",")}};function Hg(t){this.a=t,this.b=-1}function qg(t){this.i=t,this.a="XY"}function Jg(t){t.b=function t(e){var o=e.a.charAt(++e.b),i={position:e.b,value:o};if("("==o)i.type=2;else if(","==o)i.type=5;else if(")"==o)i.type=3;else if("0"<=o&&o<="9"||"."==o||"-"==o){i.type=4;var o=e.b,r=!1,n=!1;do{"."==s?r=!0:"e"!=s&&"E"!=s||(n=!0);var s=e.a.charAt(++e.b)}while("0"<=s&&s<="9"||"."==s&&(void 0===r||!r)||!n&&("e"==s||"E"==s)||n&&("-"==s||"+"==s));e=parseFloat(e.a.substring(o,e.b--)),i.value=e}else if("a"<=o&&o<="z"||"A"<=o&&o<="Z"){for(i.type=1,o=e.b;s=e.a.charAt(++e.b),"a"<=s&&s<="z"||"A"<=s&&s<="Z";);e=e.a.substring(o,e.b--).toUpperCase(),i.value=e}else{if(" "==o||"\t"==o||"\r"==o||"\n"==o)return t(e);if(""!==o)throw Error("Unexpected character: "+o);i.type=6}return i}(t.i)}function _g(t,e){return(e=t.b.type==e)&&Jg(t),e}function $g(t){for(var e=[],o=t.a.length,i=0;i<o;++i){var r=t.b;if(!_g(t,4))break;e.push(r.value)}if(e.length==o)return e;throw Error(od(t))}function Qg(t){for(var e=[$g(t)];_g(t,5);)e.push($g(t));return e}function td(t){for(var e=[t.sg()];_g(t,5);)e.push(t.sg());return e}function ed(t){var e=1==t.b.type&&"EMPTY"==t.b.value;return e&&Jg(t),e}function od(t){return"Unexpected `"+t.b.value+"` at position "+t.b.position+" in `"+t.i.a+"`"}(Au=Vg.prototype).ae=function(t,e){return(t=this.wd(t,e))?((e=new Ih).Ra(t),e):null},Au.zg=function(t,e){var o=[];t=this.wd(t,e),e=[];for(var i=0,r=(o=this.b&&"GeometryCollection"==t.U()?t.a:[t]).length;i<r;++i)(t=new Ih).Ra(o[i]),e.push(t);return e},Au.wd=function(t,e){return Jg(t=new qg(new Hg(t))),(t=function t(e){var o=e.b;if(_g(e,1)){var o=o.value,i="XY",r=e.b;if(1==e.b.type&&("Z"===(r=r.value)?i="XYZ":"M"===r?i="XYM":"ZM"===r&&(i="XYZM"),"XY"!==i&&Jg(e)),e.a=i,"GEOMETRYCOLLECTION"==o){t:{if(_g(e,2)){for(o=[];o.push(t(e)),_g(e,5););if(_g(e,3)){e=o;break t}}else if(ed(e)){e=[];break t}throw Error(od(e))}return new _l(e)}if(r=rd[o],i=id[o],!r||!i)throw Error("Invalid geometry type: "+o);return o=r.call(e),new i(o,e.a)}throw Error(od(e))}(t))?nl(t,!1,e):null},Au.ge=function(t,e){return(t=t.V())?this.Cd(t,e):""},Au.Wg=function(t,e){if(1==t.length)return this.ge(t[0],e);for(var o=[],i=0,r=t.length;i<r;++i)o.push(t[i].V());return t=new _l(o),this.Cd(t,e)},Au.Cd=function(t,e){return zg(nl(t,!0,e))},(Au=qg.prototype).tg=function(){if(_g(this,2)){var t=$g(this);if(_g(this,3))return t}else if(ed(this))return null;throw Error(od(this))},Au.sg=function(){if(_g(this,2)){var t=Qg(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.ug=function(){if(_g(this,2)){var t=td(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.fp=function(){if(_g(this,2)){var t;if(2==this.b.type)for(t=[this.tg()];_g(this,5);)t.push(this.tg());else t=Qg(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.ep=function(){if(_g(this,2)){var t=td(this);if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))},Au.gp=function(){if(_g(this,2)){for(var t=[this.ug()];_g(this,5);)t.push(this.ug());if(_g(this,3))return t}else if(ed(this))return[];throw Error(od(this))};var id={POINT:hr,LINESTRING:ll,POLYGON:wr,MULTIPOINT:gl,MULTILINESTRING:cl,MULTIPOLYGON:dl},rd={POINT:qg.prototype.tg,LINESTRING:qg.prototype.sg,POLYGON:qg.prototype.ug,MULTIPOINT:qg.prototype.fp,MULTILINESTRING:qg.prototype.ep,MULTIPOLYGON:qg.prototype.gp};function nd(){this.version=void 0}function sd(t,e){return _h({},Ad,t,e)}function ad(t,e){return _h({},xd,t,e)}function pd(t,e){if(e=sd(t,e))return t=[vu(t.getAttribute("width")),vu(t.getAttribute("height"))],e.size=t,e}function hd(t,e){return _h([],Ed,t,e)}e(nd,Yy),nd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},nd.prototype.b=function(t){return this.version=t.getAttribute("version").trim(),(t=_h({version:this.version},ld,t,[]))?t:null};var Ao=[null,"http://www.opengis.net/wms"],ld=qh(Ao,{Service:Wh(function(t,e){return _h({},cd,t,e)}),Capability:Wh(function(t,e){return _h({},ud,t,e)})}),ud=qh(Ao,{Request:Wh(function(t,e){return _h({},wd,t,e)}),Exception:Wh(function(t,e){return _h([],dd,t,e)}),Layer:Wh(function(t,e){return _h({},vd,t,e)})}),cd=qh(Ao,{Name:Wh(bu),Title:Wh(bu),Abstract:Wh(bu),KeywordList:Wh(hd),OnlineResource:Wh(zy),ContactInformation:Wh(function(t,e){return _h({},fd,t,e)}),Fees:Wh(bu),AccessConstraints:Wh(bu),LayerLimit:Wh(du),MaxWidth:Wh(du),MaxHeight:Wh(du)}),fd=qh(Ao,{ContactPersonPrimary:Wh(function(t,e){return _h({},yd,t,e)}),ContactPosition:Wh(bu),ContactAddress:Wh(function(t,e){return _h({},gd,t,e)}),ContactVoiceTelephone:Wh(bu),ContactFacsimileTelephone:Wh(bu),ContactElectronicMailAddress:Wh(bu)}),yd=qh(Ao,{ContactPerson:Wh(bu),ContactOrganization:Wh(bu)}),gd=qh(Ao,{AddressType:Wh(bu),Address:Wh(bu),City:Wh(bu),StateOrProvince:Wh(bu),PostCode:Wh(bu),Country:Wh(bu)}),dd=qh(Ao,{Format:Bh(bu)}),vd=qh(Ao,{Name:Wh(bu),Title:Wh(bu),Abstract:Wh(bu),KeywordList:Wh(hd),CRS:Vh(bu),EX_GeographicBoundingBox:Wh(function(t,e){if(i=_h({},md,t,e)){t=i.westBoundLongitude,e=i.southBoundLatitude;var o=i.eastBoundLongitude,i=i.northBoundLatitude;if(void 0!==t&&void 0!==e&&void 0!==o&&void 0!==i)return[t,e,o,i]}}),BoundingBox:Vh(function(t){var e=[gu(t.getAttribute("minx")),gu(t.getAttribute("miny")),gu(t.getAttribute("maxx")),gu(t.getAttribute("maxy"))],o=[gu(t.getAttribute("resx")),gu(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:e,res:o}}),Dimension:Vh(function(t){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:cu(t.getAttribute("multipleValues")),nearestValue:cu(t.getAttribute("nearestValue")),current:cu(t.getAttribute("current")),values:bu(t)}}),Attribution:Wh(function(t,e){return _h({},bd,t,e)}),AuthorityURL:Vh(function(t,e){if(e=sd(t,e))return e.name=t.getAttribute("name"),e}),Identifier:Vh(bu),MetadataURL:Vh(function(t,e){if(e=sd(t,e))return e.type=t.getAttribute("type"),e}),DataURL:Vh(sd),FeatureListURL:Vh(sd),Style:Vh(function(t,e){return _h({},Pd,t,e)}),MinScaleDenominator:Wh(yu),MaxScaleDenominator:Wh(yu),Layer:Vh(function(t,e){var o=e[e.length-1],i=_h({},vd,t,e);if(i)return void 0===(e=cu(t.getAttribute("queryable")))&&(e=o.queryable),i.queryable=void 0!==e&&e,void 0===(e=vu(t.getAttribute("cascaded")))&&(e=o.cascaded),i.cascaded=e,void 0===(e=cu(t.getAttribute("opaque")))&&(e=o.opaque),i.opaque=void 0!==e&&e,void 0===(e=cu(t.getAttribute("noSubsets")))&&(e=o.noSubsets),i.noSubsets=void 0!==e&&e,(e=gu(t.getAttribute("fixedWidth")))||(e=o.fixedWidth),i.fixedWidth=e,(t=gu(t.getAttribute("fixedHeight")))||(t=o.fixedHeight),i.fixedHeight=t,["Style","CRS","AuthorityURL"].forEach(function(t){t in o&&(i[t]=(i[t]||[]).concat(o[t]))}),"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(t){t in i||(i[t]=o[t])}),i})}),bd=qh(Ao,{Title:Wh(bu),OnlineResource:Wh(zy),LogoURL:Wh(pd)}),md=qh(Ao,{westBoundLongitude:Wh(yu),eastBoundLongitude:Wh(yu),southBoundLatitude:Wh(yu),northBoundLatitude:Wh(yu)}),wd=qh(Ao,{GetCapabilities:Wh(ad),GetMap:Wh(ad),GetFeatureInfo:Wh(ad)}),xd=qh(Ao,{Format:Vh(bu),DCPType:Vh(function(t,e){return _h({},Sd,t,e)})}),Sd=qh(Ao,{HTTP:Wh(function(t,e){return _h({},Md,t,e)})}),Md=qh(Ao,{Get:Wh(sd),Post:Wh(sd)}),Pd=qh(Ao,{Name:Wh(bu),Title:Wh(bu),Abstract:Wh(bu),LegendURL:Vh(pd),StyleSheetURL:Wh(sd),StyleURL:Wh(sd)}),Ad=qh(Ao,{Format:Wh(bu),OnlineResource:Wh(zy)}),Ed=qh(Ao,{Keyword:Bh(bu)});function Td(t){t=t||{},this.a="http://mapserver.gis.umn.edu/mapserver",this.b=new Nu,this.c=t.layers||null,su.call(this)}function jd(){this.i=new Hy}function Cd(t){var e=bu(t).split(" ");if(e&&2==e.length&&(t=+e[0],e=+e[1],!isNaN(t)&&!isNaN(e)))return[t,e]}e(Td,su),Td.prototype.zc=function(t,e){var o={};e&&ht(o,il(this,t,e)),o=[o],t.setAttribute("namespaceURI",this.a);var i=t.localName;if(e=[],t.childNodes.length){if("msGMLOutput"==i)for(var r=0,n=t.childNodes.length;r<n;r++){var s,a,p,h=t.childNodes[r];h.nodeType===Node.ELEMENT_NODE&&(s=o[0],a=h.localName.replace("_layer",""),this.c&&!d(this.c,a)||(a+="_feature",s.featureType=a,s.featureNS=this.a,(p={})[a]=Bh(this.b.wg,this.b),s=qh([s.featureNS,null],p),h.setAttribute("namespaceURI",this.a),(h=_h([],s,h,o,this.b))&&c(e,h)))}"FeatureCollection"==i&&(t=_h([],this.b.b,t,[{}],this.b))&&(e=t)}return e},Td.prototype.Vg=function(){},Td.prototype.Xb=function(){},Td.prototype.ie=function(){},e(jd,Yy),jd.prototype.a=function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.b(t);return null},jd.prototype.b=function(t){var e=t.getAttribute("version").trim(),o=this.i.b(t);return o?(o.version=e,(o=_h(o,Ld,t,[]))?o:null):null};var qy=[null,"http://www.opengis.net/wmts/1.0"],Ao=[null,"http://www.opengis.net/ows/1.1"],Ld=qh(qy,{Contents:Wh(function(t,e){return _h({},Rd,t,e)})}),Rd=qh(qy,{Layer:Vh(function(t,e){return _h({},Id,t,e)}),TileMatrixSet:Vh(function(t,e){return _h({},Gd,t,e)})}),Id=qh(qy,{Style:Vh(function(t,e){if(e=_h({},Nd,t,e))return t="true"===t.getAttribute("isDefault"),e.isDefault=t,e}),Format:Vh(bu),TileMatrixSetLink:Vh(function(t,e){return _h({},Fd,t,e)}),Dimension:Vh(function(t,e){return _h({},Od,t,e)}),ResourceURL:Vh(function(t){var e=t.getAttribute("format"),o=t.getAttribute("template");t=t.getAttribute("resourceType");var i={};return e&&(i.format=e),o&&(i.template=o),t&&(i.resourceType=t),i})},qh(Ao,{Title:Wh(bu),Abstract:Wh(bu),WGS84BoundingBox:Wh(function(t,e){if(2==(t=_h([],Ud,t,e)).length)return P(t)}),Identifier:Wh(bu)})),Nd=qh(qy,{LegendURL:Vh(function(t){var e={};return e.format=t.getAttribute("format"),e.href=zy(t),e})},qh(Ao,{Title:Wh(bu),Identifier:Wh(bu)})),Fd=qh(qy,{TileMatrixSet:Wh(bu),TileMatrixSetLimits:Wh(function(t,e){return _h([],kd,t,e)})}),kd=qh(qy,{TileMatrixLimits:Bh(function(t,e){return _h({},Dd,t,e)})}),Dd=qh(qy,{TileMatrix:Wh(bu),MinTileRow:Wh(du),MaxTileRow:Wh(du),MinTileCol:Wh(du),MaxTileCol:Wh(du)}),Od=qh(qy,{Default:Wh(bu),Value:Vh(bu)},qh(Ao,{Identifier:Wh(bu)})),Ud=qh(Ao,{LowerCorner:Bh(Cd),UpperCorner:Bh(Cd)}),Gd=qh(qy,{WellKnownScaleSet:Wh(bu),TileMatrix:Vh(function(t,e){return _h({},Bd,t,e)})},qh(Ao,{SupportedCRS:Wh(bu),Identifier:Wh(bu)})),Bd=qh(qy,{TopLeftCorner:Wh(Cd),ScaleDenominator:Wh(yu),TileWidth:Wh(du),TileHeight:Wh(du),MatrixWidth:Wh(du),MatrixHeight:Wh(du)},qh(Ao,{Identifier:Wh(bu)}));function Xd(t){je.call(this),t=t||{},this.a=null,this.f=Zt,this.c=void 0,de(this,Le("projection"),this.Am,this),de(this,Le("tracking"),this.Bm,this),void 0!==t.projection&&this.Wh(t.projection),void 0!==t.trackingOptions&&this.wj(t.trackingOptions),this.Ke(void 0!==t.tracking&&t.tracking)}function Vd(t,e,o){Wi.call(this),this.Ng(t,e||0,o)}function Wd(t){var e=t.A[t.a]-t.A[0];return e*e+(t=t.A[t.a+1]-t.A[1])*t}function Zd(t,e,o){for(var i,r,n,s,a,p=[],h=t(0),l=t(1),u=e(h),c=e(l),f=[l,h],y=[c,u],g=[1,0],d={},v=1e5;0<--v&&0<g.length;)n=g.pop(),h=f.pop(),u=y.pop(),(l=n.toString())in d||(p.push(u[0],u[1]),d[l]=!0),s=g.pop(),l=f.pop(),c=y.pop(),S((r=e(i=t(a=(n+s)/2)))[0],r[1],u[0],u[1],c[0],c[1])<o?(p.push(c[0],c[1]),d[l=s.toString()]=!0):(g.push(s,a,a,n),y.push(c,r,r,u),f.push(l,i,i,h));return p}function Kd(t){t=t||{},this.j=this.v=null,this.f=this.o=1/0,this.g=this.l=-1/0,this.ra=this.oa=1/0,this.R=this.I=-1/0,this.Jb=void 0!==t.targetSize?t.targetSize:100,this.fb=void 0!==t.maxLines?t.maxLines:100,this.i=[],this.c=[],this.pa=void 0!==t.strokeStyle?t.strokeStyle:zd,this.D=this.u=void 0,this.a=this.b=this.S=null,1==t.showLabels&&(this.na=t.lonLabelFormatter||Ci.bind(this,"EW"),this.Ua=t.latLabelFormatter||Ci.bind(this,"NS"),this.fa=null==t.lonLabelPosition?0:t.lonLabelPosition,this.T=null==t.latLabelPosition?1:t.latLabelPosition,this.B=void 0!==t.lonLabelStyle?t.lonLabelStyle:new Jc({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new Ah({color:"rgba(0,0,0,1)"}),stroke:new Ga({color:"rgba(255,255,255,1)",width:3})}),this.C=void 0!==t.latLabelStyle?t.latLabelStyle:new Jc({font:"12px Calibri,sans-serif",textAlign:"end",fill:new Ah({color:"rgba(0,0,0,1)"}),stroke:new Ga({color:"rgba(255,255,255,1)",width:3})}),this.b=[],this.a=[]),this.setMap(void 0!==t.map?t.map:null)}e(Xd,je),(Au=Xd.prototype).ka=function(){this.Ke(!1),je.prototype.ka.call(this)},Au.Am=function(){var t=this.Uh();t&&(this.f=Wt(Bt("EPSG:4326"),t),this.a&&this.set("position",this.f(this.a)))},Au.Bm=function(){var t;Fo&&((t=this.Vh())&&void 0===this.c?this.c=navigator.geolocation.watchPosition(this.np.bind(this),this.op.bind(this),this.Gh()):t||void 0===this.c||(navigator.geolocation.clearWatch(this.c),this.c=void 0))},Au.np=function(t){t=t.coords,this.set("accuracy",t.accuracy),this.set("altitude",null===t.altitude?void 0:t.altitude),this.set("altitudeAccuracy",null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set("heading",null===t.heading?void 0:M(t.heading)),this.a?(this.a[0]=t.longitude,this.a[1]=t.latitude):this.a=[t.longitude,t.latitude];var e=this.f(this.a);this.set("position",e),this.set("speed",null===t.speed?void 0:t.speed),(t=Sr(At,this.a,t.accuracy)).Dc(this.f),this.set("accuracyGeometry",t),this.s()},Au.op=function(t){t.type="error",this.Ke(!1),this.b(t)},Au.Dk=function(){return this.get("accuracy")},Au.Ek=function(){return this.get("accuracyGeometry")||null},Au.Gk=function(){return this.get("altitude")},Au.Hk=function(){return this.get("altitudeAccuracy")},Au.ym=function(){return this.get("heading")},Au.zm=function(){return this.get("position")},Au.Uh=function(){return this.get("projection")},Au.ll=function(){return this.get("speed")},Au.Vh=function(){return this.get("tracking")},Au.Gh=function(){return this.get("trackingOptions")},Au.Wh=function(t){this.set("projection",Bt(t))},Au.Ke=function(t){this.set("tracking",t)},Au.wj=function(t){this.set("trackingOptions",t)},e(Vd,Wi),(Au=Vd.prototype).clone=function(){var t=new Vd(null);return Ki(t,this.ja,this.A.slice()),t.s(),t},Au.Kb=function(t,e,o,i){var r=this.A;t-=r[0];var n=e-r[1];if((e=t*t+n*n)<i){if(e)for(i=this.pd()/Math.sqrt(e),o[0]=r[0]+i*t,o[1]=r[1]+i*n,i=2;i<this.a;++i)o[i]=r[i];else for(i=0;i<this.a;++i)o[i]=r[i];return o.length=this.a,e}return i},Au.Mc=function(t,e){var o=this.A;return(t-=o[0])*t+(e-=o[1])*e<=Wd(this)},Au.wa=function(){return this.A.slice(0,this.a)},Au.se=function(t){var e=this.A,o=e[this.a]-e[0];return F(e[0]-o,e[1]-o,e[0]+o,e[1]+o,t)},Au.pd=function(){return Math.sqrt(Wd(this))},Au.U=function(){return"Circle"},Au.Xa=function(t){var e=this.G();return!!nt(t,e)&&(e=this.wa(),t[0]<=e[0]&&t[2]>=e[0]||t[1]<=e[1]&&t[3]>=e[1]||H(t,this.sb,this))},Au.ob=function(t){var e,o=this.a,i=t.slice();for(i[o]=i[0]+(this.A[o]-this.A[0]),e=1;e<o;++e)i[o+e]=t[e];Ki(this,this.ja,i),this.s()},Au.Ng=function(t,e,o){if(t){var i;for(zi(this,o,t,0),this.A||(this.A=[]),t=tr(o=this.A,t),o[t++]=o[0]+e,e=1,i=this.a;e<i;++e)o[t++]=o[e];o.length=t}else Ki(this,"XY",null);this.s()},Au.X=function(){},Au.ma=function(){},Au.Uc=function(t){this.A[this.a]=this.A[0]+t,this.s()};var zd=new Ga({color:"rgba(0,0,0,0.2)"}),Yd=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function Hd(t,e,o,i,r,n,s){var a,p,h,l,u=s;return a=e,p=o,h=i,l=t.j,r=r,o=Zd(function(t){return[a,p+(h-p)*t]},Vt(Bt("EPSG:4326"),l),r),(u=void 0!==t.i[u]?t.i[u]:new ll(null)).ba("XY",o),nt(u.G(),n)&&(t.b&&(o=s,n=[(i=u.ga())[0],x(n[1]+Math.abs(n[1]-n[3])*t.fa,Math.max(n[1],i[1]),Math.min(n[3],i[i.length-1]))],(o=t.b[o]?t.b[o].Qd:new hr(null)).ma(n),t.b[s]={Qd:o,text:t.na(e)}),t.i[s++]=u),s}function qd(t,e,o,i,r){var n,s,a,p,h,l=r;return n=e,s=t.g,a=t.f,p=t.j,h=o,o=Zd(function(t){return[s+(a-s)*t,n]},Vt(Bt("EPSG:4326"),p),h),(l=void 0!==t.c[l]?t.c[l]:new ll(null)).ba("XY",o),nt(l.G(),i)&&(t.a&&(o=r,h=l.ga(),i=[x(i[0]+Math.abs(i[0]-i[2])*t.T,Math.max(i[0],h[0]),Math.min(i[2],h[h.length-2])),h[1]],(o=t.a[o]?t.a[o].Qd:new hr(null)).ma(i),t.a[r]={Qd:o,text:t.Ua(e)}),t.c[r++]=l),r}function Jd(t,e,o,i,r){Ae.call(this),this.f=r,this.extent=t,this.a=o,this.resolution=e,this.state=i}function _d(t,e,o,i,r,n,s){Jd.call(this,t,e,o,0,i),this.j=r,this.M=new Image,null!==n&&(this.M.crossOrigin=n),this.c={},this.i=null,this.state=0,this.g=s}function $d(t,e,o,i,r,n){this.c=n||null,Jd.call(this,t,e,o,n?0:2,i),this.i=r}function Qd(t,e){Ae.call(this),this.ta=t,this.state=e,this.i=null,this.key=""}function tv(t){if(!t.i)return t;var e=t.i;do{if(2==e.getState())return e}while(e=e.i);return t}function ev(t,e){t.state=e,t.s()}function ov(t,e,o,i,r){Qd.call(this,t,e),this.g=o,this.M=new Image,null!==i&&(this.M.crossOrigin=i),this.c=null,this.j=r}function iv(t){t.c.forEach(me),t.c=null}(Au=Kd.prototype).Cm=function(){return this.v},Au.al=function(){return this.i},Au.hl=function(){return this.c},Au.Kh=function(t){var e,o,i,r,n,s,a,p,h,l,u=t.vectorContext,c=t.frameState,f=c.extent,y=(t=c.viewState).center,g=t.projection,d=t.resolution;for(t=d*d/(4*(t=c.pixelRatio)*t),this.j&&Xt(this.j,g)||(e=Bt("EPSG:4326"),o=g.G(),l=Yt(i=g.g,e,g),r=i[2],n=i[1],s=i[0],a=l[3],p=l[2],h=l[1],l=l[0],this.o=i[3],this.f=r,this.l=n,this.g=s,this.oa=a,this.ra=p,this.I=h,this.R=l,this.u=Vt(e,g),this.D=Vt(g,e),this.S=this.D($(o)),this.j=g),g.i&&(e=rt(g=g.G()),(c=c.focus[0])<g[0]||c>g[2])&&(c=e*Math.ceil((g[0]-c)/e),f=[f[0]+c,f[1],f[2]+c,f[3]]),c=this.S[0],g=this.S[1],e=-1,i=Math.pow(this.Jb*d,2),r=[],n=[],d=0,o=Yd.length;d<o&&(s=Yd[d]/2,r[0]=c-s,r[1]=g-s,n[0]=c+s,n[1]=g+s,this.u(r,r),this.u(n,n),!((s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2))<=i));++d)e=Yd[d];if(-1==(d=e))this.i.length=this.c.length=0,this.b&&(this.b.length=0),this.a&&(this.a.length=0);else{for(y=(c=this.D(y))[0],c=c[1],g=this.fb,i=(e=Yt(e=[Math.max(f[0],this.R),Math.max(f[1],this.I),Math.min(f[2],this.ra),Math.min(f[3],this.oa)],this.j,"EPSG:4326"))[3],n=e[1],o=Hd(this,r=x(y=Math.floor(y/d)*d,this.g,this.f),n,i,t,f,0),e=0;r!=this.g&&e++<g;)o=Hd(this,r=Math.max(r-d,this.g),n,i,t,f,o);for(r=x(y,this.g,this.f),e=0;r!=this.f&&e++<g;)o=Hd(this,r=Math.min(r+d,this.f),n,i,t,f,o);for(this.i.length=o,this.b&&(this.b.length=o),o=qd(this,y=x(c=Math.floor(c/d)*d,this.l,this.o),t,f,0),e=0;y!=this.l&&e++<g;)o=qd(this,y=Math.max(y-d,this.l),t,f,o);for(y=x(c,this.l,this.o),e=0;y!=this.o&&e++<g;)o=qd(this,y=Math.min(y+d,this.o),t,f,o);this.c.length=o,this.a&&(this.a.length=o)}for(u.Ma(null,this.pa),t=0,y=this.i.length;t<y;++t)d=this.i[t],u.zb(d);for(t=0,y=this.c.length;t<y;++t)d=this.c[t],u.zb(d);if(this.b)for(t=0,y=this.b.length;t<y;++t)d=this.b[t],this.B.xd(d.text),u.Cb(this.B),u.zb(d.Qd);if(this.a)for(t=0,y=this.a.length;t<y;++t)d=this.a[t],this.C.xd(d.text),u.Cb(this.C),u.zb(d.Qd)},Au.setMap=function(t){this.v&&(this.v.K("postcompose",this.Kh,this),this.v.render()),t&&(t.J("postcompose",this.Kh,this),t.render()),this.v=t},e(Jd,Ae),Jd.prototype.s=function(){this.b("change")},Jd.prototype.G=function(){return this.extent},Jd.prototype.getState=function(){return this.state},e(_d,Jd),(Au=_d.prototype).Y=function(t){return void 0===t?this.M:(t=G(t))in this.c?this.c[t]:(e=ct(this.c)?this.M:this.M.cloneNode(!1),this.c[t]=e);var e},Au.Fm=function(){this.state=3,this.i.forEach(me),this.i=null,this.s()},Au.Gm=function(){void 0===this.resolution&&(this.resolution=tt(this.extent)/this.M.height),this.state=2,this.i.forEach(me),this.i=null,this.s()},Au.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.i=[ve(this.M,"error",this.Fm,this),ve(this.M,"load",this.Gm,this)],this.g(this,this.j))},Au.Og=function(t){this.M=t},e($d,Jd),$d.prototype.g=function(t){this.state=t?3:2,this.s()},$d.prototype.load=function(){0==this.state&&(this.state=1,this.s(),this.c(this.g.bind(this)))},$d.prototype.Y=function(){return this.i},e(Qd,Ae),Qd.prototype.s=function(){this.b("change")},Qd.prototype.bb=function(){return this.key+"/"+this.ta},Qd.prototype.f=function(){return this.ta},Qd.prototype.getState=function(){return this.state},e(ov,Qd),(Au=ov.prototype).ka=function(){1==this.state&&iv(this),this.i&&Se(this.i),this.state=5,this.s(),Qd.prototype.ka.call(this)},Au.Y=function(){return this.M},Au.bb=function(){return this.g},Au.Dm=function(){this.state=3,this.M=rv,iv(this),this.s()},Au.Em=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4,iv(this),this.s()},Au.load=function(){0!=this.state&&3!=this.state||(this.state=1,this.s(),this.c=[ve(this.M,"error",this.Dm,this),ve(this.M,"load",this.Em,this)],this.j(this,this.g))};var rv=new Image;function nv(t){t=t||{},Or.call(this,{handleEvent:Ui}),this.g=t.formatConstructors||[],this.o=t.projection?Bt(t.projection):null,this.a=null,this.target=t.target||null}function sv(t){for(var e=0,o=(t=t.dataTransfer.files).length;e<o;++e){var i=t.item(e),r=new FileReader;r.addEventListener("load",this.j.bind(this,i)),r.readAsText(i)}}function av(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"}function pv(t){var e=t.v;e&&(e=t.target||e.a,t.a=[de(e,"drop",sv,t),de(e,"dragenter",av,t),de(e,"dragover",av,t),de(e,"drop",av,t)])}function hv(t){t.a&&(t.a.forEach(me),t.a=null)}rv.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e(nv,Or),nv.prototype.j=function(t,e){e=e.target.result;for(var o=this.v,i=(i=this.o)||o.Z().v,r=[],n=0,s=(o=this.g).length;n<s;++n){var a=new o[n],p={featureProjection:i};try{r=a.Oa(e,p)}catch(t){r=null}if(r&&0<r.length)break}this.b(new uv(lv,t,r,i))},nv.prototype.Ha=function(t){Or.prototype.Ha.call(this,t),(t?pv:hv)(this)},nv.prototype.setMap=function(t){hv(this),Or.prototype.setMap.call(this,t),this.c()&&pv(this)};var lv="addfeatures";function uv(t,e,o,i){Me.call(this,t),this.features=o,this.file=e,this.projection=i}function cv(t){t=t||{},$r.call(this,{handleDownEvent:gv,handleDragEvent:fv,handleUpEvent:yv}),this.l=t.condition||Hr,this.a=this.g=void 0,this.j=0,this.u=void 0!==t.duration?t.duration:400}function fv(t){var e,o,i;Jr(t)&&(o=(e=t.map).Ob(),t=(i=t.pixel)[0]-o[0]/2,i=o[1]/2-i[1],o=Math.atan2(i,t),t=Math.sqrt(t*t+i*i),(e=e.Z()).g.rotation!==Mi&&void 0!==this.g&&(i=o-this.g,Ur(e,e.Qa()-i)),this.g=o,void 0!==this.a&&(o=this.a*(e.Pa()/t),Br(e,o)),void 0!==this.a&&(this.j=this.a/t),this.a=t)}function yv(t){if(!Jr(t))return!0;Fr(t=t.map.Z(),1,-1);var e=this.j-1,o=t.Qa(),o=t.constrainRotation(o,0);Ur(t,o,void 0,void 0);var o=t.Pa(),i=this.u,o=t.constrainResolution(o,0,e);return Br(t,o,void 0,i),this.j=0,!1}function gv(t){return!(!Jr(t)||!this.l(t))&&(Fr(t.map.Z(),1,1),!(this.a=this.g=void 0))}function dv(t,e,o,i){this.fb=t,this.Ua=e,this.overlaps=i,this.c=0,this.resolution=o,this.ra=this.oa=null,this.a=[],this.coordinates=[],this.T=qn(),this.b=[],this.B=null,this.fa=qn(),this.na=qn()}function vv(t,e,o,i,r,n,s){var a=t.coordinates.length,p=t.Sf();s&&(o+=r),s=[e[o],e[o+1]];for(var h=[NaN,NaN],l=!0,u=o+r;u<i;u+=r){h[0]=e[u],h[1]=e[u+1];var c=R(p,h),l=c!==f?(l&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1):1!==c||(t.coordinates[a++]=h[0],t.coordinates[a++]=h[1],!1);s[0]=h[0],s[1]=h[1];var f=c}return(n&&l||u===o+r)&&(t.coordinates[a++]=s[0],t.coordinates[a++]=s[1]),a}function bv(t,e){t.oa=[0,e,0],t.a.push(t.oa),t.ra=[0,e,0],t.b.push(t.ra)}function mv(t,e,o,i,r,n,s,a,p){var h;t.B&&U(i,t.T)?h=t.B:(t.B||(t.B=[]),h=Xi(t.coordinates,0,t.coordinates.length,2,i,t.B),Qn(t.T,i)),i=!ct(n);for(var l,u,c=0,f=s.length,y=0,g=t.fa,d=t.na,v=0,b=0,m=t.a!=s||t.overlaps?0:200;c<f;)switch((F=s[c])[0]){case 0:y=F[1],i&&n[G(y).toString()]||!y.V()?c=F[2]:void 0===p||nt(p,y.V().G())?++c:c=F[2]+1;break;case 1:m<v&&(t.Va(e,r),v=0),m<b&&(e.stroke(),b=0),v||b||(e.beginPath(),l=u=NaN),++c;break;case 2:w=h[y=F[1]],F=h[y+1],C=h[y+2]-w,y=h[y+3]-F,y=Math.sqrt(C*C+y*y),e.moveTo(w+y,F),e.arc(w,F,y,0,2*Math.PI,!0),++c;break;case 3:e.closePath(),++c;break;case 4:y=F[1];var w=F[2],x=F[3],S=F[4]*o,M=F[5]*o,P=F[6],A=F[7],E=F[8],T=F[9],j=F[10],C=F[11],L=F[12],R=F[13],I=F[14];for(j&&(C+=r);y<w;y+=2){var N,F=h[y]-S,j=h[y+1]-M;R&&(F=Math.round(F),j=Math.round(j)),1==L&&!C||(rs(g,N=F+S,k=j+M,L,L,C,-N,-k),e.setTransform.apply(e,g)),N=e.globalAlpha,1!=A&&(e.globalAlpha=N*A);var k=I+E>x.width?x.width-E:I,D=P+T>x.height?x.height-T:P;e.drawImage(x,E,T,k,D,F,j,k*o,D*o),1!=A&&(e.globalAlpha=N),1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 5:for(y=F[1],w=F[2],M=F[3],P=F[4]*o,A=F[5]*o,C=F[6],L=F[7]*o,x=F[8],S=F[9],(j=F[10])&&(C+=r);y<w;y+=2){for(F=h[y]+P,j=h[y+1]+A,1==L&&!C||(rs(g,F,j,L,L,C,-F,-j),e.setTransform.apply(e,g)),1<(T=(E=M.split("\n")).length)?j-=(T-1)/2*(R=Math.round(1.5*e.measureText("M").width)):R=0,I=0;I<T;I++)N=E[I],S&&e.strokeText(N,F,j),x&&e.fillText(N,F,j),j+=R;1==L&&!C||e.setTransform.apply(e,d)}++c;break;case 6:if(a&&(y=a(y=F[1])))return y;++c;break;case 7:m?v++:t.Va(e,r),++c;break;case 8:for(y=F[1],w=F[2],F=h[y],L=(j=h[y+1])+.5|0,(C=F+.5|0)===l&&L===u||(e.moveTo(F,j),l=C,u=L),y+=2;y<w;y+=2)C=(F=h[y])+.5|0,L=(j=h[y+1])+.5|0,y!=w-2&&C===l&&L===u||(e.lineTo(F,j),l=C,u=L);++c;break;case 9:t.R=F[2],v&&(t.Va(e,r),v=0,b&&(e.stroke(),b=0)),e.fillStyle=F[1],++c;break;case 10:var y=void 0===F[8]||F[8],O=F[9];w=F[2],b&&(e.stroke(),b=0),e.strokeStyle=F[1],e.lineWidth=y?w*o:w,e.lineCap=F[3],e.lineJoin=F[4],e.miterLimit=F[5],Ro&&(w=F[6],C=F[7],y&&o!==O&&(w=w.map(function(t){return t*o/O}),C*=o/O,F[6]=w,F[7]=C,F[9]=o),e.lineDashOffset=C,e.setLineDash(w)),++c;break;case 11:e.font=F[1],e.textAlign=F[2],e.textBaseline=F[3],++c;break;case 12:m?b++:e.stroke(),++c;break;default:++c}v&&t.Va(e,r),b&&e.stroke()}function wv(t){var e=t.b;e.reverse();for(var o=e.length,i=-1,r=0;r<o;++r){var n=e[r],s=n[0];if(6==s)i=r;else if(0==s){for(n[2]=r,n=t.b,s=r;i<s;){var a=n[i];n[i]=n[s],n[s]=a,++i,--s}i=-1}}}function xv(t,e){t.oa[2]=t.a.length,t.oa=null,t.ra[2]=t.b.length,t.ra=null,e=[6,e],t.a.push(e),t.b.push(e)}function Sv(t,e,o,i){dv.call(this,t,e,o,i),this.M=this.I=null,this.C=this.D=this.S=this.u=this.v=this.l=this.o=this.j=this.g=this.f=this.i=void 0}function Mv(t,e,o,i){dv.call(this,t,e,o,i),this.f=null,this.i={Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,eg:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Pv(t,e,o,i,r){var n=[8,n=t.coordinates.length,e=vv(t,e,o,i,r,!1,!1)];return t.a.push(n),t.b.push(n),i}function Av(t){var e=t.i,o=e.strokeStyle,i=e.lineCap,r=e.lineDash,n=e.lineDashOffset,s=e.lineJoin,a=e.lineWidth,p=e.miterLimit;e.Md==o&&e.Gd==i&&U(e.Hd,r)&&e.Id==n&&e.Jd==s&&e.Kd==a&&e.Ld==p||(e.eg!=t.coordinates.length&&(t.a.push([12]),e.eg=t.coordinates.length),t.a.push([10,o,a,i,s,p,r,n,!0,1],[1]),e.Md=o,e.Gd=i,e.Hd=r,e.Id=n,e.Jd=s,e.Kd=a,e.Ld=p)}function Ev(t,e,o,i){dv.call(this,t,e,o,i),this.f=null,this.i={oh:void 0,Md:void 0,Gd:void 0,Hd:null,Id:void 0,Jd:void 0,Kd:void 0,Ld:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}function Tv(t,e,o,i,r){var n=void 0!==(s=t.i).fillStyle,s=null!=s.strokeStyle,a=i.length,p=[1];for(t.a.push(p),t.b.push(p),p=0;p<a;++p){var h=i[p];o=[8,t.coordinates.length,o=vv(t,e,o,h,r,!0,!s)],t.a.push(o),t.b.push(o),s&&(o=[3],t.a.push(o),t.b.push(o)),o=h}return e=[7],t.b.push(e),n&&t.a.push(e),s&&(n=[12],t.a.push(n),t.b.push(n)),o}function jv(t,e){var o,i=t.i,r=i.fillStyle,n=i.strokeStyle,s=i.lineCap,a=i.lineDash,p=i.lineDashOffset,h=i.lineJoin,l=i.lineWidth,u=i.miterLimit;void 0===r||"string"==typeof r&&i.oh==r||(o=[9,r],"string"!=typeof r&&(e=e.G(),o.push([e[0],e[3]])),t.a.push(o),i.oh=i.fillStyle),void 0===n||i.Md==n&&i.Gd==s&&U(i.Hd,a)&&i.Id==p&&i.Jd==h&&i.Kd==l&&i.Ld==u||(t.a.push([10,n,l,s,h,u,a,p,!0,1]),i.Md=n,i.Gd=s,i.Hd=a,i.Id=p,i.Jd=h,i.Kd=l,i.Ld=u)}function Cv(t,e,o,i){dv.call(this,t,e,o,i),this.C=this.D=this.S=null,this.Ia="",this.o=this.j=0,this.l=void 0,this.u=this.v=0,this.g=this.f=this.i=null}function Lv(t,e,o,i,r){this.v=t,this.c=e,this.o=i,this.l=o,this.f=r,this.a={},this.g=Ye(1,1),this.j=qn()}e(uv,Me),e(cv,$r),e(dv,vs),dv.prototype.Va=function(t,e){var o;this.R&&(o=ts(this.T,this.R.slice()),t.translate(o[0],o[1]),t.rotate(e)),t.fill(),this.R&&t.setTransform.apply(t,this.na)},dv.prototype.La=function(t,e,o,i,r){mv(this,t,e,o,i,r,this.a,void 0,void 0)},dv.prototype.Te=w,dv.prototype.Sf=function(){return this.Ua},e(Sv,dv),Sv.prototype.qc=function(t,e){var o,i;this.M&&(bv(this,e),o=t.ga(),i=this.coordinates.length,t=vv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),xv(this,e))},Sv.prototype.oc=function(t,e){var o,i;this.M&&(bv(this,e),o=t.ga(),i=this.coordinates.length,t=vv(this,o,0,o.length,t.qa(),!1,!1),this.a.push([4,i,t,this.M,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),this.b.push([4,i,t,this.I,this.i,this.f,this.g,this.j,this.o,this.l,this.v,this.u,this.S,this.D,this.C]),xv(this,e))},Sv.prototype.Te=function(){wv(this),this.f=this.i=void 0,this.M=this.I=null,this.C=this.D=this.u=this.v=this.l=this.o=this.j=this.S=this.g=void 0},Sv.prototype.Ub=function(t){var e=t.Hc(),o=t.ic(),i=t.qg(1),r=t.Y(1),n=t.Oc();this.i=e[0],this.f=e[1],this.I=i,this.M=r,this.g=o[1],this.j=t.f,this.o=n[0],this.l=n[1],this.v=t.l,this.u=t.g,this.S=t.a,this.D=t.v,this.C=o[0]},e(Mv,dv),(Au=Mv.prototype).Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Au.mc=function(t,e){var o=this.i,i=o.lineWidth;void 0!==o.strokeStyle&&void 0!==i&&(Av(this),bv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),Pv(this,o=t.ga(),0,o.length,t.qa()),this.b.push([12]),xv(this,e))},Au.nc=function(t,e){var o=this.i,i=o.lineWidth;if(void 0!==o.strokeStyle&&void 0!==i){Av(this),bv(this,e),this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1],[1]),o=t.Bb(),i=t.ga(),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Pv(this,i,r,o[n],t);this.b.push([12]),xv(this,e)}},Au.Te=function(){this.i.eg!=this.coordinates.length&&this.a.push([12]),wv(this),this.i=null},Au.Ma=function(t,e){t=e.a,this.i.strokeStyle=ze(t||gs),t=e.f,this.i.lineCap=void 0!==t?t:"round",t=e.i,this.i.lineDash=t||ys,t=e.g,this.i.lineDashOffset=t||0,t=e.j,this.i.lineJoin=void 0!==t?t:"round",t=e.c,this.i.lineWidth=void 0!==t?t:1,e=e.o,this.i.miterLimit=void 0!==e?e:10,this.i.lineWidth>this.c&&(this.c=this.i.lineWidth,this.f=null)},e(Ev,dv),(Au=Ev.prototype).Zb=function(t,e){var o,i=this.i,r=i.strokeStyle;void 0===i.fillStyle&&void 0===r||(jv(this,t),bv(this,e),this.b.push([9,Xe(fs)]),void 0!==i.strokeStyle&&this.b.push([10,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset,!0,1]),o=t.ga(),r=this.coordinates.length,vv(this,o,0,o.length,t.qa(),!1,!1),t=[1],r=[2,r],this.a.push(t,r),this.b.push(t,r),t=[7],this.b.push(t),void 0!==i.fillStyle&&this.a.push(t),void 0!==i.strokeStyle&&(i=[12],this.a.push(i),this.b.push(i)),xv(this,e))},Au.rc=function(t,e){var o=this.i;jv(this,t),bv(this,e),this.b.push([9,Xe(fs)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]);o=t.Bb();Tv(this,t.ec(),0,o,t.qa()),xv(this,e)},Au.pc=function(t,e){var o=this.i,i=o.strokeStyle;if(void 0!==o.fillStyle||void 0!==i){jv(this,t),bv(this,e),this.b.push([9,Xe(fs)]),void 0!==o.strokeStyle&&this.b.push([10,o.strokeStyle,o.lineWidth,o.lineCap,o.lineJoin,o.miterLimit,o.lineDash,o.lineDashOffset,!0,1]),o=t.c,i=bl(t),t=t.qa();for(var r=0,n=0,s=o.length;n<s;++n)r=Tv(this,i,r,o[n],t);xv(this,e)}},Au.Te=function(){wv(this),this.i=null;var t=this.fb;if(t)for(var e=this.coordinates,o=0,i=e.length;o<i;++o)e[o]=t*Math.round(e[o]/t)},Au.Sf=function(){return this.f||(this.f=g(this.Ua),0<this.c&&A(this.f,this.resolution*(this.c+1)/2,this.f)),this.f},Au.Ma=function(t,e){var o=this.i;t?(t=t.b,o.fillStyle=ze(t||fs)):o.fillStyle=void 0,e?(t=e.a,o.strokeStyle=ze(t||gs),t=e.f,o.lineCap=void 0!==t?t:"round",t=e.i,o.lineDash=t?t.slice():ys,t=e.g,o.lineDashOffset=t||0,t=e.j,o.lineJoin=void 0!==t?t:"round",t=e.c,o.lineWidth=void 0!==t?t:1,e=e.o,o.miterLimit=void 0!==e?e:10,o.lineWidth>this.c&&(this.c=o.lineWidth,this.f=null)):(o.strokeStyle=void 0,o.lineCap=void 0,o.lineDash=null,o.lineDashOffset=void 0,o.lineJoin=void 0,o.lineWidth=void 0,o.miterLimit=void 0)},e(Cv,dv),Cv.prototype.yc=function(t,e,o,i,r,n){var s,a;""!==this.Ia&&this.g&&(this.i||this.f)&&(this.i&&(r=this.i,(s=this.S)&&s.fillStyle==r.fillStyle||(a=[9,r.fillStyle],this.a.push(a),this.b.push(a),s?s.fillStyle=r.fillStyle:this.S={fillStyle:r.fillStyle})),this.f&&(r=this.f,(s=this.D)&&s.lineCap==r.lineCap&&s.lineDash==r.lineDash&&s.lineDashOffset==r.lineDashOffset&&s.lineJoin==r.lineJoin&&s.lineWidth==r.lineWidth&&s.miterLimit==r.miterLimit&&s.strokeStyle==r.strokeStyle||(a=[10,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset,!1,1],this.a.push(a),this.b.push(a),s?(s.lineCap=r.lineCap,s.lineDash=r.lineDash,s.lineDashOffset=r.lineDashOffset,s.lineJoin=r.lineJoin,s.lineWidth=r.lineWidth,s.miterLimit=r.miterLimit,s.strokeStyle=r.strokeStyle):this.D={lineCap:r.lineCap,lineDash:r.lineDash,lineDashOffset:r.lineDashOffset,lineJoin:r.lineJoin,lineWidth:r.lineWidth,miterLimit:r.miterLimit,strokeStyle:r.strokeStyle})),r=this.g,(s=this.C)&&s.font==r.font&&s.textAlign==r.textAlign&&s.textBaseline==r.textBaseline||(a=[11,r.font,r.textAlign,r.textBaseline],this.a.push(a),this.b.push(a),s?(s.font=r.font,s.textAlign=r.textAlign,s.textBaseline=r.textBaseline):this.C={font:r.font,textAlign:r.textAlign,textBaseline:r.textBaseline}),bv(this,n),t=[5,r=this.coordinates.length,t=vv(this,t,e,o,i,!1,!1),this.Ia,this.j,this.o,this.v,this.u,!!this.i,!!this.f,this.l],this.a.push(t),this.b.push(t),xv(this,n))},Cv.prototype.Cb=function(t){var e,o,i,r,n,s,a,p,h;t?((o=t.Fa())?(o=ze((o=o.b)||fs),this.i?this.i.fillStyle=o:this.i={fillStyle:o}):this.i=null,(s=t.Ga())?(o=s.a,i=s.f,r=s.i,a=s.g,p=s.j,n=s.c,s=s.o,i=void 0!==i?i:"round",r=r?r.slice():ys,a=void 0!==a?a:0,p=void 0!==p?p:"round",n=void 0!==n?n:1,s=void 0!==s?s:10,o=ze(o||gs),this.f?((h=this.f).lineCap=i,h.lineDash=r,h.lineDashOffset=a,h.lineJoin=p,h.lineWidth=n,h.miterLimit=s,h.strokeStyle=o):this.f={lineCap:i,lineDash:r,lineDashOffset:a,lineJoin:p,lineWidth:n,miterLimit:s,strokeStyle:o}):this.f=null,e=t.a,o=t.i,i=t.c,r=t.o,n=t.f,s=t.b,a=t.Na(),p=t.g,h=t.j,t=void 0!==e?e:"10px sans-serif",p=void 0!==p?p:"center",h=void 0!==h?h:"middle",this.g?((e=this.g).font=t,e.textAlign=p,e.textBaseline=h):this.g={font:t,textAlign:p,textBaseline:h},this.Ia=void 0!==a?a:"",this.j=void 0!==o?o:0,this.o=void 0!==i?i:0,this.l=void 0!==r&&r,this.v=void 0!==n?n:0,this.u=void 0!==s?s:1):this.Ia=""},e(Lv,js);var Rv={0:[[!0]]};function Iv(t,e,o){var i,r=Math.floor(t.length/2);if(r<=e)for(i=r;i<e;i++)t[i][o]=!0;else if(e<r)for(i=e+1;i<r;i++)t[i][o]=!0}function Nv(t){for(var e in t.a){var o,i=t.a[e];for(o in i)i[o].Te()}}function Fv(t,e){var o=t.c;t=o[0];var i=o[1],r=o[2];return Xi(t=[t,i,t,o=o[3],r,o,r,i],0,8,2,e,t),t}Lv.prototype.Ea=function(t,e,o,i,r,n){var s,a=2*(i=Math.round(i))+1,p=rs(this.j,i+.5,i+.5,1/e,-1/e,-o,-t[0],-t[1]),h=this.g;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):h.clearRect(0,0,a,a),void 0!==this.f&&(z(s=V(),t),A(s,e*(this.f+i),s));var l=function(t){if(void 0!==Rv[t])return Rv[t];for(var e=2*t+1,o=Array(e),i=0;i<e;i++)o[i]=Array(e);for(var e=t,r=i=0;i<=e;)Iv(o,t+e,t+i),Iv(o,t+i,t+e),Iv(o,t-i,t+e),Iv(o,t-e,t+i),Iv(o,t-e,t-i),Iv(o,t-i,t-e),Iv(o,t+i,t-e),Iv(o,t+e,t-i),0<2*((r+=1+2*++i)-e)+1&&(r+=1-2*--e);return Rv[t]=o}(i);return function(t,e,o,i,r,n,s){var a,p,h=Object.keys(t.a).map(Number);h.sort(function(t,e){return e-t});var l=0;for(a=h.length;l<a;++l){var u=t.a[h[l].toString()];for(p=Ts.length-1;0<=p;--p){var c=u[Ts[p]];if(void 0!==c&&(c=mv(c,e,1,o,i,r,c.b,n,s)))return c}}}(this,h,p,o,r,function(t){for(var e=h.getImageData(0,0,a,a).data,o=0;o<a;o++)for(var i=0;i<a;i++)if(l[o][i]&&0<e[4*(i*a+o)+3])return(t=n(t))?t:void h.clearRect(0,0,a,a)},s)},Lv.prototype.b=function(t,e){var o=void 0!==t?t.toString():"0";return void 0===(t=this.a[o])&&(t={},this.a[o]=t),void 0===(o=t[e])&&(o=new kv[e](this.v,this.c,this.l,this.o),t[e]=o),o},Lv.prototype.i=function(){return ct(this.a)},Lv.prototype.La=function(t,e,o,i,r,n){var s=Object.keys(this.a).map(Number);s.sort(D);var a=Fv(this,o);t.save(),t.beginPath(),t.moveTo(a[0],a[1]),t.lineTo(a[2],a[3]),t.lineTo(a[4],a[5]),t.lineTo(a[6],a[7]),t.clip(),n=n||Ts;for(var a=0,p=s.length;a<p;++a)for(var h=this.a[s[a].toString()],l=0,u=n.length;l<u;++l){var c=h[n[l]];void 0!==c&&c.La(t,e,o,i,r)}t.restore()};var kv={Circle:Ev,Image:Sv,LineString:Mv,Polygon:Ev,Text:Cv};function Dv(t){Te.call(this),this.a=t}function Ov(t,e){var o=e.getState();return 2!=o&&3!=o&&de(e,"change",t.na,t),0==o&&(e.load(),o=e.getState()),2==o}function Uv(t){var e=t.a;e.Mb()&&"ready"==e.$f()&&t.s()}function Gv(t,e){e.Ki()&&t.postRenderFunctions.push(function(t,e,o){e=G(t).toString(),t.fd(o.viewState.projection,o.usedTiles[e])}.bind(null,e))}function Bv(t,e){if(e)for(var o=0,i=e.length;o<i;++o){var r=e[o];t[G(r).toString()]=r}}function Xv(t,e){void 0!==(e=e.D)&&("string"==typeof e?t.logos[e]="":e&&(O("string"==typeof e.href,44),O("string"==typeof e.src,45),t.logos[e.src]=e.href))}function Vv(t,e,o,i){e=G(e).toString(),o=o.toString(),e in t?o in t[e]?(t=t[e][o],i.ca<t.ca&&(t.ca=i.ca),i.$>t.$&&(t.$=i.$),i.da<t.da&&(t.da=i.da),i.ia>t.ia&&(t.ia=i.ia)):t[e][o]=i:(t[e]={},t[e][o]=i)}function Wv(t,e,o,i,r,n,s,a,p,h){var l=G(e).toString();l in t.wantedTiles||(t.wantedTiles[l]={});var u=t.wantedTiles[l];t=t.tileQueue;for(var c,f=o.minZoom,y=s;f<=y;--y)for(var g,d=ee(o,n,y,d),v=o.Da(y),b=d.ca;b<=d.$;++b)for(c=d.da;c<=d.ia;++c)s-y<=a?(0==(g=e.Nc(y,b,c,i,r)).getState()&&(u[g.bb()]=!0,g.bb()in t.a||t.f([g,l,oe(o,g.ta),v])),p&&p.call(h,g)):e.Ug(y,b,c,r)}function Zv(t){Dv.call(this,t),this.fa=qn()}function Kv(t,e,o){var i=e.pixelRatio,r=e.size[0]*i,n=e.size[1]*i,s=e.viewState.rotation,a=ot(o),p=it(o),h=_(o);o=J(o),ts(e.coordinateToPixelTransform,a),ts(e.coordinateToPixelTransform,p),ts(e.coordinateToPixelTransform,h),ts(e.coordinateToPixelTransform,o),t.save(),ds(t,-s,r/2,n/2),t.beginPath(),t.moveTo(a[0]*i,a[1]*i),t.lineTo(p[0]*i,p[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(o[0]*i,o[1]*i),t.clip(),ds(t,s,r/2,n/2)}function zv(t,e,o,i,r){var n,s,a,p=t.a;Ee(p,e)&&(n=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,ds(o,-(a=i.viewState.rotation),n/2,s/2),t=r||Yv(t,i,0),p.b(new cs(e,new bs(o,i.pixelRatio,i.extent,t,i.viewState.rotation),i,o,null)),ds(o,a,n/2,s/2))}function Yv(t,e,o){var i=e.viewState,r=e.pixelRatio,n=r/i.resolution;return rs(t.fa,r*e.size[0]/2,r*e.size[1]/2,n,-n,-i.rotation,-i.center[0]+o,-i.center[1])}function Hv(t,e){return G(t)-G(e)}function qv(t,e){return(t=.5*t/e)*t}function Jv(t,e,o,i,r,n){var s,a,p=!1;return(s=o.Y())&&(2==(a=s.Ye())||3==a?s.Bj(r,n):(0==a&&s.load(),s.Nh(r,n),p=!0)),(r=(0,o.Za)(e))&&(i=r.Vd(i),(0,_v[i.U()])(t,i,o,e)),p}e(Dv,Te),Dv.prototype.Ea=w,Dv.prototype.Ue=Gi,Dv.prototype.Nf=function(o,i,r){return function(e,t){return fw(o,i,e,t,function(t){r[e]||(r[e]={}),r[e][t.ta.toString()]=t})}},Dv.prototype.na=function(t){2===t.target.getState()&&Uv(this)},e(Zv,Dv),Zv.prototype.u=function(t,e,o,i){if(this.Ea(t,e,0,Ui,this))return o.call(i,this.a,null)},Zv.prototype.ef=function(t,e,o,i){zv(this,"postcompose",t,e,i)};var _v={Point:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.qc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),t.yc(e.ga(),0,2,2,e,i))},LineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.mc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(ul(e),0,2,2,e,i))},Polygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.rc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(xr(e),0,2,2,e,i))},MultiPoint:function(t,e,o,i){var r=o.Y();if(r){if(2!=r.Ye())return;var n=t.b(o.Ba(),"Image");n.Ub(r),n.oc(e,i)}(r=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(r),o=e.ga(),t.yc(o,0,o.length,e.qa(),e,i))},MultiLineString:function(t,e,o,i){var r,n=o.Ga();n&&((r=t.b(o.Ba(),"LineString")).Ma(null,n),r.nc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=fl(e),t.yc(o,0,o.length,2,e,i))},MultiPolygon:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(s||n)&&((r=t.b(o.Ba(),"Polygon")).Ma(n,s),r.pc(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),o=vl(e),t.yc(o,0,o.length,2,e,i))},GeometryCollection:function(t,e,o,i){for(var r=0,n=(e=e.a).length;r<n;++r)(0,_v[e[r].U()])(t,e[r],o,i)},Circle:function(t,e,o,i){var r,n=o.Fa(),s=o.Ga();(n||s)&&((r=t.b(o.Ba(),"Circle")).Ma(n,s),r.Zb(e,i)),(n=o.Na())&&((t=t.b(o.Ba(),"Text")).Cb(n),t.yc(e.wa(),0,2,2,e,i))}};function $v(t){Zv.call(this,t),this.c=!1,this.v=-1,this.l=NaN,this.j=V(),this.f=this.o=null,this.g=Ye()}function Qv(){this.b="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}e($v,Zv),$v.prototype.S=function(t,e,o){var i=t.extent,r=t.pixelRatio,n=e.Je?t.skippedFeatureUids:{},s=(a=t.viewState).projection,a=a.rotation,p=s.G(),h=this.a.ha(),l=Yv(this,t,0);zv(this,"precompose",o,t,l);var u=e.extent,c=void 0!==u;if(c&&Kv(o,t,u),(u=this.f)&&!u.i()){var f,y=0,g=0,d=(f=Ee(this.a,"render")?(f=o.canvas.width,d=o.canvas.height,a&&(y=((v=Math.round(Math.sqrt(f*f+d*d)))-f)/2,g=(v-d)/2,f=d=v),this.g.canvas.width=f,this.g.canvas.height=d,this.g):o).globalAlpha;f.globalAlpha=e.opacity,f!=o&&f.translate(y,g);var v=t.size[0]*r,b=t.size[1]*r;if(ds(f,-a,v/2,b/2),u.La(f,r,l,a,n),h.u&&s.i&&!N(p,i)){for(var s=i[0],h=rt(p),m=0;s<p[0];)l=Yv(this,t,l=h*--m),u.La(f,r,l,a,n),s+=h;for(m=0,s=i[2];s>p[2];)l=Yv(this,t,l=h*++m),u.La(f,r,l,a,n),s-=h;l=Yv(this,t,0)}ds(f,a,v/2,b/2),f!=o&&(zv(this,"render",f,t,l),o.drawImage(f.canvas,-y,-g),f.translate(-y,-g)),f.globalAlpha=d}c&&o.restore(),this.ef(o,t,e,l)},$v.prototype.Ea=function(t,e,o,i,r){if(this.f){var n=this.a,s={};return this.f.Ea(t,e.viewState.resolution,e.viewState.rotation,o,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},$v.prototype.D=function(){Uv(this)},$v.prototype.sd=function(t){function e(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=n.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=0,r=e.length;i<r;++i)o=Jv(f,t,e[i],qv(h,l),this.D,this)||o;else o=Jv(f,t,e,qv(h,l),this.D,this)||o;t=o}else t=!1;this.c=this.c||t}}var n=this.a,o=n.ha();Bv(t.attributions,o.j),Xv(t,o);var i=t.viewHints[0],r=t.viewHints[1],s=n.T,a=n.na;if(!this.c&&!s&&i||!a&&r)return!0;var p=t.extent,i=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,r=n.i,u=n.c;if(void 0===(s=n.get(pb))&&(s=Hv),p=A(p,u*h),u=a.projection.G(),o.u&&a.projection.i&&!N(u,t.extent)&&(t=Math.max(rt(p)/2,rt(u)),p[0]=u[0]-t,p[2]=u[2]+t),!this.c&&this.l==h&&this.v==r&&this.o==s&&N(this.j,p))return!0;this.f=null,this.c=!1;var c,f=new Lv(.5*h/l,p,h,o.T,n.c);return o.Yd(p,h,i),s?(c=[],o.$b(p,function(t){c.push(t)},this),c.sort(s),c.forEach(e,this)):o.$b(p,e,this),Nv(f),this.l=h,this.v=r,this.o=s,this.j=p,this.f=f,!0},e(Qv,Ls);var tb=new Qv;function eb(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}e(eb,Rs);var ob=new eb;function ib(t,e){this.i=t.getUniformLocation(e,"f"),this.c=t.getUniformLocation(e,"e"),this.g=t.getUniformLocation(e,"d"),this.f=t.getUniformLocation(e,"g"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function rb(t,e){Dv.call(this,e),this.c=t,this.T=new zs([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.g=this.Ib=null,this.j=void 0,this.v=qn(),this.S=qn(),this.C=Os(),this.u=null}function nb(t,e,o,i){var r;Ee(t=t.a,e)&&(r=i.viewState,t.b(new cs(e,new Dp(o,r.center,r.resolution,r.rotation,i.size,i.extent,i.pixelRatio),i,null,o)))}function sb(t,e){rb.call(this,t,e),this.l=!1,this.R=-1,this.I=NaN,this.D=V(),this.o=this.f=this.B=null}function ab(t){var e=ht({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,Zn.call(this,e),this.c=void 0!==t.renderBuffer?t.renderBuffer:100,this.u=null,this.f=void 0,this.g(t.style),this.T=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.na=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}e(rb,Dv),rb.prototype.Gi=function(t,e,o){nb(this,"precompose",o,t),oa(o,34962,this.T);var i,r=o.b,n=sa(o,tb,ob);this.u?i=this.u:this.u=i=new ib(r,n),o.Qc(n)&&(r.enableVertexAttribArray(i.b),r.vertexAttribPointer(i.b,2,5126,!1,16,0),r.enableVertexAttribArray(i.a),r.vertexAttribPointer(i.a,2,5126,!1,16,8),r.uniform1i(i.f,0)),r.uniformMatrix4fv(i.g,!1,Us(this.C,this.v)),r.uniformMatrix4fv(i.c,!1,Us(this.C,this.S)),r.uniform1f(i.i,e.opacity),r.bindTexture(3553,this.Ib),r.drawArrays(5,0,4),nb(this,"postcompose",o,t)},rb.prototype.mg=function(){this.g=this.Ib=null,this.j=void 0},e(sb,rb),(Au=sb.prototype).Gi=function(t,e,o){this.o=e;var i=t.viewState,r=this.f,n=t.size,s=t.pixelRatio,a=this.c.i;r&&!r.i()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,n[0]*s,n[1]*s),r.La(o,i.center,i.resolution,i.rotation,n,s,e.opacity,e.Je?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},Au.ka=function(){var t=this.f;t&&(Ip(t,this.c.f)(),this.f=null),rb.prototype.ka.call(this)},Au.Ea=function(t,e,o,i,r){if(this.f&&this.o){o=e.viewState;var n=this.a,s={};return this.f.Ea(t,this.c.f,o.center,o.resolution,o.rotation,e.size,e.pixelRatio,this.o.opacity,{},function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,i.call(r,t,n)})}},Au.Ue=function(t,e){if(this.f&&this.o){var o=e.viewState;return i=this.f,r=t,n=this.c.f,s=o.resolution,a=o.rotation,t=e.pixelRatio,o=this.o.opacity,e=e.skippedFeatureUids,(p=n.b).bindFramebuffer(p.FRAMEBUFFER,ra(n)),void 0!==Np(i,n,r,s,a,t,o,e,function(){var t=new Uint8Array(4);return p.readPixels(0,0,1,1,p.RGBA,p.UNSIGNED_BYTE,t),0<t[3]},!1)}var i,r,n,s,a,p;return!1},Au.lg=function(t,e,o,i){if(t=ts(e.pixelToCoordinateTransform,t.slice()),this.Ue(t,e))return o.call(i,this.a,null)},Au.Hi=function(){Uv(this)},Au.ng=function(t,e,o){function i(t){var e,o=t.Lc();if(o?e=o.call(t,h):(o=r.f)&&(e=o(t,h)),e){if(e){if(o=!1,Array.isArray(e))for(var i=e.length-1;0<=i;--i)o=Jv(f,t,e[i],qv(h,l),this.Hi,this)||o;else o=Jv(f,t,e,qv(h,l),this.Hi,this)||o;t=o}else t=!1;this.l=this.l||t}}var r=this.a;e=r.ha(),Bv(t.attributions,e.j),Xv(t,e);var n=t.viewHints[0],s=t.viewHints[1],a=r.T,p=r.na;if(!this.l&&!a&&n||!p&&s)return!0;var s=t.extent,n=(a=t.viewState).projection,h=a.resolution,l=t.pixelRatio,a=r.i,u=r.c;if(void 0===(p=r.get(pb))&&(p=Hv),s=A(s,u*h),!this.l&&this.I==h&&this.R==a&&this.B==p&&N(this.D,s))return!0;this.f&&t.postRenderFunctions.push(Ip(this.f,o)),this.l=!1;var c,f=new Rp(.5*h/l,s,r.c);return e.Yd(s,h,n),p?(c=[],e.$b(s,function(t){c.push(t)},this),c.sort(p),c.forEach(i,this)):e.$b(s,i,this),function(t,e){for(var o in t.a){var i,r=t.a[o];for(i in r)r[i].Db(e)}}(f,o),this.I=h,this.R=a,this.B=p,this.D=s,this.f=f,!0},e(ab,Zn),ab.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new $v(this):"webgl"===o&&(e=new sb(t,this)),e},ab.prototype.D=function(){return this.u},ab.prototype.C=function(){return this.f},ab.prototype.g=function(t){this.u=void 0!==t?t:Ch,this.f=null===t?void 0:Th(this.u),this.s()};var pb="renderOrder";function hb(){return[[-1/0,-1/0,1/0,1/0]]}function lb(t){je.call(this),this.c=Bt(t.projection),this.j=ub(t.attributions),this.D=t.logo,this.na=void 0!==t.state?t.state:"ready",this.u=void 0!==t.wrapX&&t.wrapX}function ub(t){if("string"==typeof t)return[new he({html:t})];if(t instanceof he)return[t];if(Array.isArray(t)){for(var e=t.length,o=Array(e),i=0;i<e;i++){var r=t[i];o[i]="string"==typeof r?new he({html:r}):r}return o}return null}function cb(t,e){t.na=e,t.s()}function fb(t){lb.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.B=w,this.C=t.format,this.T=null==t.overlaps||t.overlaps,this.I=t.url,t.loader?this.B=t.loader:void 0!==this.I&&(O(this.C,7),this.B=el(this.I,this.C)),this.fa=t.strategy||hb;var e,o,i,r,n=void 0===t.useSpatialIndex||t.useSpatialIndex;this.a=n?new lp:null,this.R=new lp,this.g={},this.o={},this.l={},this.v={},this.f=null,t.features instanceof Ne?e=(o=t.features).a:Array.isArray(t.features)&&(e=t.features),n||o||(o=new Ne(e)),e&&db(this,e),o&&(i=o,r=!1,de(o=this,"addfeature",function(t){r||(r=!0,i.push(t.feature),r=!1)}),de(o,"removefeature",function(t){r||(r=!0,i.remove(t.feature),r=!1)}),de(i,"add",function(t){r||(r=!0,this.yb(t.element),r=!1)},o),de(i,"remove",function(t){r||(r=!0,this.Gb(t.element),r=!1)},o),o.f=i)}function yb(t,e,o){t.v[e]=[de(o,"change",t.Oi,t),de(o,"propertychange",t.Oi,t)]}function gb(t,e,o){var i=!0,r=o.a;return void 0!==r?r.toString()in t.o?i=!1:t.o[r.toString()]=o:(O(!(e in t.l),30),t.l[e]=o),i}function db(t,e){for(var o=[],i=[],r=[],n=0,s=e.length;n<s;n++){var a=e[n],p=G(a).toString();gb(t,p,a)&&i.push(a)}for(n=0,s=i.length;n<s;n++)yb(t,p=G(a=i[n]).toString(),a),(e=a.V())?(p=e.G(),o.push(p),r.push(a)):t.g[p]=a;for(t.a&&t.a.load(o,r),n=0,s=i.length;n<s;n++)t.b(new bb("addfeature",i[n]))}function vb(t,e){for(var o in t.o)if(t.o[o]===e){delete t.o[o];break}}function bb(t,e){Me.call(this,t),this.feature=e}function mb(t){var e;$r.call(this,{handleDownEvent:xb,handleEvent:wb,handleUpEvent:Sb}),this.T=!1,this.fa=null,this.u=!1,this.Yb=t.source||null,this.$a=t.features||null,this.wk=t.snapTolerance||12,this.R=t.type,this.g=("Point"===(e=this.R)||"MultiPoint"===e?n=Cb:"LineString"===e||"MultiLineString"===e?n=Lb:"Polygon"===e||"MultiPolygon"===e?n=Rb:"Circle"===e&&(n=Ib),n),this.Sa=t.minPoints||(this.g===Rb?3:2),this.va=t.maxPoints||1/0,this.Cf=t.finishCondition||Ui;var o,i,r,n=(n=t.geometryFunction)||("Circle"===this.R?function(t,e){return(e=e||new Vd([NaN,NaN])).Ng(t[0],Math.sqrt(Fi(t[0],t[1]))),e}:((i=this.g)===Cb?o=hr:i===Lb?o=ll:i===Rb&&(o=wr),function(t,e){return e?i===Rb?e.ma([t[0].concat([t[0][0]])]):e.ma(t):e=new o(t),e}));this.Za=n,this.I=this.C=this.a=this.B=this.j=this.l=null,this.ad=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,this.pa=new ab({source:new fb({useSpatialIndex:!1,wrapX:t.wrapX||!1}),style:t.style||(r=Lh(),function(t){return r[t.V().U()]})}),this.xb=t.geometryName,this.vk=t.condition||Yr,this.Df=t.freehand?Ui:t.freehandCondition||Hr,de(this,Le("active"),this.ri,this)}function wb(t){this.u=this.g!==Cb&&this.Df(t);var e=!this.u;return this.u&&"pointerdrag"===t.type&&null!==this.j?(Eb(this,t),e=!1):"pointermove"===t.type?e=Mb(this,t):"dblclick"===t.type&&(e=!1),tn.call(this,t)&&e}function xb(t){return this.T=!this.u,this.u?(this.fa=t.pixel,this.l||Ab(this,t),!0):!!this.vk(t)&&(this.fa=t.pixel,!0)}function Sb(t){var e=!0;Mb(this,t);var o=this.g===Ib;return this.T?(this.l?this.u||o?this.Pd():Pb(this,t)?this.Cf(t)&&this.Pd():Eb(this,t):(Ab(this,t),this.g===Cb&&this.Pd()),e=!1):this.u&&(this.l=null,Tb(this)),e}function Mb(t,e){var o,i,r;return t.fa&&(!t.u&&t.T||t.u&&!t.T)&&(i=t.fa,o=e.pixel,r=(r=i[0]-o[0])*r+(i=i[1]-o[1])*i,t.T=t.u?r>t.ad:r<=t.ad),t.l?(r=e.coordinate,i=t.j.V(),t.g===Cb?o=t.a:t.g===Rb?(o=(o=t.a[0])[o.length-1],Pb(t,e)&&(r=t.l.slice())):o=(o=t.a)[o.length-1],o[0]=r[0],o[1]=r[1],t.Za(t.a,i),t.B&&t.B.V().ma(r),i instanceof wr&&t.g!==Rb?(t.C||(t.C=new Ih(new ll(null))),r=i.Ch(0),(e=t.C.V()).ba(r.ja,r.ga())):t.I&&(e=t.C.V()).ma(t.I),jb(t)):(e=e.coordinate.slice(),t.B?t.B.V().ma(e):(t.B=new Ih(new hr(e)),jb(t))),!0}function Pb(t,e){var o=!1;if(t.j){var i=!1,r=[t.l];if(t.g===Lb?i=t.a.length>t.Sa:t.g===Rb&&(i=t.a[0].length>t.Sa,r=[t.a[0][0],t.a[0][t.a[0].length-2]]),i)for(var i=e.map,n=0,s=r.length;n<s;n++){var a=r[n],p=i.Ja(a),h=e.pixel,o=h[0]-p[0],p=h[1]-p[1];if(o=Math.sqrt(o*o+p*p)<=(t.u?1:t.wk)){t.l=a;break}}}return o}function Ab(t,e){e=e.coordinate,t.l=e,t.g===Cb?t.a=e.slice():t.g===Rb?(t.a=[[e.slice(),e.slice()]],t.I=t.a[0]):(t.a=[e.slice(),e.slice()],t.g===Ib&&(t.I=t.a)),t.I&&(t.C=new Ih(new ll(t.I))),e=t.Za(t.a),t.j=new Ih,t.xb&&t.j.Tc(t.xb),t.j.Ra(e),jb(t),t.b(new Nb("drawstart",t.j))}function Eb(t,e){e=e.coordinate;var o,i,r=t.j.V();t.g===Lb?(t.l=e.slice(),(i=t.a).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),t.Za(i,r)):t.g===Rb&&((i=t.a[0]).length>=t.va&&(t.u?i.pop():o=!0),i.push(e.slice()),o&&(t.l=i[0]),t.Za(t.a,r)),jb(t),o&&t.Pd()}function Tb(t){t.l=null;var e=t.j;return e&&(t.j=null,t.B=null,t.C=null,t.pa.ha().clear(!0)),e}function jb(t){var e=[];t.j&&e.push(t.j),t.C&&e.push(t.C),t.B&&e.push(t.B),(t=t.pa.ha()).clear(!0),t.cd(e)}e(lb,je),(Au=lb.prototype).Ea=w,Au.ya=function(){return this.j},Au.xa=function(){return this.D},Au.za=function(){return this.c},Au.getState=function(){return this.na},Au.sa=function(){this.s()},Au.ua=function(t){this.j=ub(t),this.s()},e(fb,lb),(Au=fb.prototype).yb=function(t){var e,o=G(t).toString();gb(this,o,t)&&(yb(this,o,t),(e=t.V())?(o=e.G(),this.a&&this.a.Ca(o,t)):this.g[o]=t,this.b(new bb("addfeature",t))),this.s()},Au.cd=function(t){db(this,t),this.s()},Au.clear=function(t){if(t){for(var e in this.v)this.v[e].forEach(me);this.f||(this.v={},this.o={},this.l={})}else if(this.a)for(var o in this.a.forEach(this.Ig,this),this.g)this.Ig(this.g[o]);this.f&&this.f.clear(),this.a&&this.a.clear(),this.R.clear(),this.g={},this.b(new bb("clear")),this.s()},Au.sh=function(t,e){return this.a?this.a.forEach(t,e):this.f?this.f.forEach(t,e):void 0},Au.$b=function(t,e,o){return this.a?yp(this.a,t,e,o):this.f?this.f.forEach(e,o):void 0},Au.th=function(e,o,i){return this.$b(e,function(t){if(t.V().Xa(e)&&(t=o.call(i,t)))return t})},Au.Ah=function(){return this.f},Au.Xe=function(){var t;return this.f?t=this.f.a:this.a&&(t=cp(this.a),ct(this.g)||c(t,ut(this.g))),t},Au.zh=function(t){var e,o,i=[];return e=t,o=function(t){i.push(t)},this.$b([e[0],e[1],e[0],e[1]],function(t){if(t.V().sb(e))return o.call(void 0,t)}),i},Au.Uf=function(t){return fp(this.a,t)},Au.vh=function(t,e){var i=t[0],r=t[1],n=null,s=[NaN,NaN],a=1/0,p=[-1/0,-1/0,1/0,1/0],h=e||Ui;return yp(this.a,p,function(t){var e,o;h(t)&&(e=t.V(),o=a,(a=e.Kb(i,r,s,a))<o&&(n=t,t=Math.sqrt(a),p[0]=i-t,p[1]=r-t,p[2]=i+t,p[3]=r+t))}),n},Au.G=function(t){return this.a.G(t)},Au.yh=function(t){return void 0!==(t=this.o[t.toString()])?t:null},Au.Mi=function(){return this.C},Au.Ni=function(){return this.I},Au.Oi=function(t){var e=G(t=t.target).toString(),o=t.V();o?(o=o.G(),e in this.g?(delete this.g[e],this.a&&this.a.Ca(o,t)):this.a&&up(this.a,o,t)):e in this.g||(this.a&&this.a.remove(t),this.g[e]=t),void 0!==(o=t.a)?(o=o.toString(),e in this.l?(delete this.l[e],this.o[o]=t):this.o[o]!==t&&(vb(this,t),this.o[o]=t)):e in this.l||(vb(this,t),this.l[e]=t),this.s(),this.b(new bb("changefeature",t))},Au.Yd=function(t,e,o){for(var i=this.R,r=0,n=(t=this.fa(t,e)).length;r<n;++r){var s=t[r];yp(i,s,function(t){return N(t.extent,s)})||(this.B.call(this,s,e,o),i.Ca(s,{extent:s.slice()}))}},Au.Gb=function(t){var e=G(t).toString();e in this.g?delete this.g[e]:this.a&&this.a.remove(t),this.Ig(t),this.s()},Au.Ig=function(t){var e=G(t).toString();this.v[e].forEach(me),delete this.v[e];var o=t.a;void 0!==o?delete this.o[o.toString()]:delete this.l[e],this.b(new bb("removefeature",t))},e(bb,Me),e(mb,$r),(Au=mb.prototype).setMap=function(t){$r.prototype.setMap.call(this,t),this.ri()},Au.Op=function(){var t,e;this.j&&(t=this.j.V(),this.g===Lb?((e=this.a).splice(-2,1),this.Za(e,t),2<=e.length&&(this.l=e[e.length-2].slice())):this.g===Rb&&((e=this.a[0]).splice(-2,1),this.C.V().ma(e),this.Za(this.a,t)),0===e.length&&(this.l=null),jb(this))},Au.Pd=function(){var t=Tb(this),e=this.a,o=t.V();this.g===Lb?(e.pop(),this.Za(e,o)):this.g===Rb&&(e[0].pop(),this.Za(e,o),e=o.X()),"MultiPoint"===this.R?t.Ra(new gl([e])):"MultiLineString"===this.R?t.Ra(new cl([e])):"MultiPolygon"===this.R&&t.Ra(new dl([e])),this.b(new Nb("drawend",t)),this.$a&&this.$a.push(t),this.Yb&&this.Yb.yb(t)},Au.vn=function(t){var e=t.V();this.j=t,this.a=e.X(),t=this.a[this.a.length-1],this.l=t.slice(),this.a.push(t.slice()),jb(this),this.b(new Nb("drawstart",this.j))},Au.Xc=Gi,Au.ri=function(){var t=this.v,e=this.c();t&&e||Tb(this),this.pa.setMap(e?t:null)};var Cb="Point",Lb="LineString",Rb="Polygon",Ib="Circle";function Nb(t,e){Me.call(this,t),this.feature=e}function Fb(t){var e,o;this.a=this.j=null,this.C=!1,this.B=this.l=null,(t=t||{}).extent&&this.g(t.extent),$r.call(this,{handleDownEvent:Db,handleDragEvent:Ob,handleEvent:kb,handleUpEvent:Ub}),this.u=new ab({source:new fb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.boxStyle||(e=Lh(),function(){return e.Polygon}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.I=new ab({source:new fb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.pointerStyle||(o=Lh(),function(){return o.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0})}function kb(t){return!(t instanceof Ko)||("pointermove"!=t.type||this.D||Vb(this,Xb(this,e=t.pixel,o=t.map)||o.Wa(e)),tn.call(this,t),!1);var e,o}function Db(t){function e(t){var e=null,o=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?o=r[3]:t[1]==r[3]&&(o=r[1]),null!==e&&null!==o?[e,o]:null}var o=t.pixel,i=t.map,r=this.G();return(t=Xb(this,o,i))&&r?(o=t[0]==r[0]||t[0]==r[2]?t[0]:null,i=t[1]==r[1]||t[1]==r[3]?t[1]:null,null!==o&&null!==i?this.a=Gb(e(t)):null!==o?this.a=Bb(e([o,r[1]]),e([o,r[3]])):null!==i&&(this.a=Bb(e([r[0],i]),e([r[2],i])))):(t=i.Wa(o),this.g([t[0],t[1],t[0],t[1]]),this.a=Gb(t)),!0}function Ob(t){return this.a&&(t=t.coordinate,this.g(this.a(t)),Vb(this,t)),!0}function Ub(){this.a=null;var t=this.G();return t&&q(t)||this.g(null),!1}function Gb(e){return function(t){return P([e,t])}}function Bb(e,o){return e[0]==o[0]?function(t){return P([e,[t[0],o[1]]])}:e[1]==o[1]?function(t){return P([e,[o[0],t[1]]])}:null}function Xb(t,e,o){var i=o.Wa(e);if(r=t.G()){(r=[[[r[0],r[1]],[r[0],r[3]]],[[r[0],r[3]],[r[2],r[3]]],[[r[2],r[3]],[r[2],r[1]]],[[r[2],r[1]],[r[0],r[1]]]]).sort(function(t,e){return Di(i,t)-Di(i,e)});var r=r[0],n=ji(i,r),s=o.Ja(n);if(ki(e,s)<=10)return e=o.Ja(r[0]),o=o.Ja(r[1]),e=Fi(s,e),o=Fi(s,o),t.C=Math.sqrt(Math.min(e,o))<=10,n=t.C?o<e?r[1]:r[0]:n}return null}function Vb(t,e){var o=t.B;o?o.V().ma(e):(o=new Ih(new hr(e)),t.B=o,t.I.ha().yb(o))}function Wb(t){Me.call(this,Zb),this.b=t}e(Nb,Me),e(Fb,$r),Fb.prototype.setMap=function(t){this.u.setMap(t),this.I.setMap(t),$r.prototype.setMap.call(this,t)},Fb.prototype.G=function(){return this.j},Fb.prototype.g=function(t){this.j=t||null;var e=this.l;e?t?e.Ra(Mr(t)):e.Ra(void 0):(this.l=e=new Ih(t?Mr(t):{}),this.u.ha().yb(e)),this.b(new Wb(this.j))},e(Wb,Me);var Zb="extentchanged";function Kb(t){var e;$r.call(this,{handleDownEvent:Jb,handleDragEvent:_b,handleEvent:Qb,handleUpEvent:$b}),this.ad=t.condition||_r,this.$a=function(t){return Yr(t)&&zr(t)},this.xb=t.deleteCondition||this.$a,this.Yb=t.insertVertexCondition||Ui,this.Sa=this.g=null,this.va=[0,0],this.C=this.I=!1,this.a=new lp,this.fa=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.l=this.pa=!1,this.j=[],this.B=new ab({source:new fb({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style||(e=Lh(),function(){return e.Point}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.T={Point:this.Dn,LineString:this.ti,LinearRing:this.ti,Polygon:this.En,MultiPoint:this.Bn,MultiLineString:this.An,MultiPolygon:this.Cn,Circle:this.yn,GeometryCollection:this.zn},this.u=t.features,this.u.forEach(this.kg,this),de(this.u,"add",this.wn,this),de(this.u,"remove",this.xn,this),this.R=null}function zb(t,e){t.C||(t.C=!0,t.b(new rm("modifystart",t.u,e)))}function Yb(t,e){!function(t,e){t=t.a;var o=[];t.forEach(function(t){e===t.feature&&o.push(t)});for(var i=o.length-1;0<=i;--i)t.remove(o[i])}(t,e),t.g&&!t.u.dc()&&(t.B.ha().Gb(t.g),t.g=null),be(e,"change",t.si,t)}function Hb(t,e){var o=t.g;o?o.V().ma(e):(o=new Ih(new hr(e)),t.g=o,t.B.ha().yb(o))}function qb(t,e){return t.index-e.index}function Jb(t){if(!this.ad(t))return!1;tm(this,t.pixel,t.map);var e=t.map.Wa(t.pixel);if(this.j.length=0,this.C=!1,o=this.g){var o,i=[],r=P([o=o.V().X()]),n={};(r=fp(this.a,r)).sort(qb);for(var s=0,a=r.length;s<a;++s){var p=r[s],h=p.la,l=G(p.feature),u=p.depth;u&&(l+="-"+u.join("-")),n[l]||(n[l]=Array(2)),"Circle"===p.geometry.U()&&1===p.index?Ri(h=om(e,p),o)&&!n[l][0]&&(this.j.push([p,0]),n[l][0]=p):Ri(h[0],o)&&!n[l][0]?(this.j.push([p,0]),n[l][0]=p):Ri(h[1],o)&&!n[l][1]?("LineString"===p.geometry.U()||"MultiLineString"===p.geometry.U())&&n[l][0]&&0===n[l][0].index||(this.j.push([p,1]),n[l][1]=p):this.Yb(t)&&G(h)in this.Sa&&!n[l][0]&&!n[l][1]&&i.push([p,o])}for(i.length&&zb(this,t),t=i.length-1;0<=t;--t)this.bm.apply(this,i[t])}return!!this.g}function _b(t){this.I=!1,zb(this,t),t=t.coordinate;for(var e=0,o=this.j.length;e<o;++e){for(var i,r=(p=this.j[e])[0],n=r.depth,s=r.geometry,a=r.la,p=p[1];t.length<s.qa();)t.push(a[p][t.length]);switch(s.U()){case"Point":i=t,a[0]=a[1]=t;break;case"MultiPoint":(i=s.X())[r.index]=t,a[0]=a[1]=t;break;case"LineString":(i=s.X())[r.index+p]=t,a[p]=t;break;case"MultiLineString":case"Polygon":(i=s.X())[n[0]][r.index+p]=t,a[p]=t;break;case"MultiPolygon":(i=s.X())[n[1]][n[0]][r.index+p]=t,a[p]=t;break;case"Circle":a[0]=a[1]=t,0===r.index?(this.l=!0,s.ob(t)):(this.l=!0,s.Uc(ki(s.wa(),t))),this.l=!1}i&&(r=s,n=i,this.l=!0,r.ma(n),this.l=!1)}Hb(this,t)}function $b(t){for(var e,o,i,r,n=this.j.length-1;0<=n;--n)"Circle"===(e=(r=this.j[n][0]).geometry).U()?(o=e.wa(),i=r.Pf[0],r=r.Pf[1],i.la[0]=i.la[1]=o,r.la[0]=r.la[1]=o,up(this.a,k(o),i),up(this.a,e.G(),r)):up(this.a,P(r.la),r);return this.C&&(this.b(new rm("modifyend",this.u,t)),this.C=!1),!1}function Qb(t){return!(t instanceof Ko)||(Ir((this.R=t).map.Z())[1]||"pointermove"!=t.type||this.D||(this.va=t.pixel,tm(this,t.pixel,t.map)),this.g&&this.xb(t)&&(e=!("singleclick"!=t.type||!this.I)||this.hj()),"singleclick"==t.type&&(this.I=!1),tn.call(this,t)&&!e);var e}function tm(t,e,o){var i=o.Wa(e),r=A(k(i),o.Z().Pa()*t.fa);if(0<(r=fp(t.a,r)).length){r.sort(function(t,e){return em(i,t)-em(i,e)});var n=r[0],s=n.la,a=om(i,n),p=o.Ja(a),h=ki(e,p);if(h<=t.fa){if(e={},"Circle"===n.geometry.U()&&1===n.index)t.pa=!0,Hb(t,a);else for(h=o.Ja(s[0]),n=o.Ja(s[1]),o=Fi(p,h),p=Fi(p,n),h=Math.sqrt(Math.min(o,p)),t.pa=h<=t.fa,Hb(t,a=t.pa?p<o?s[1]:s[0]:a),p=1,o=r.length;p<o&&(a=r[p].la,Ri(s[0],a[0])&&Ri(s[1],a[1])||Ri(s[0],a[1])&&Ri(s[1],a[0]));++p)e[G(a)]=!0;return e[G(s)]=!0,void(t.Sa=e)}}t.g&&(t.B.ha().Gb(t.g),t.g=null)}function em(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?(t=Fi(o.wa(),t),(o=Math.sqrt(t)-o.pd())*o):Di(t,e.la)}function om(t,e){var o=e.geometry;return"Circle"===o.U()&&1===e.index?o.Ab(t):ji(t,e.la)}function im(t,e,o,i,r){yp(t.a,e.G(),function(t){t.geometry===e&&(void 0===i||void 0===t.depth||U(t.depth,i))&&t.index>o&&(t.index+=r)})}function rm(t,e,o){Me.call(this,t),this.features=e,this.mapBrowserEvent=o}function nm(t){var e,o;Or.call(this,{handleEvent:sm}),t=t||{},this.C=t.condition||zr,this.D=t.addCondition||Gi,this.B=t.removeCondition||Gi,this.I=t.toggleCondition||Hr,this.l=t.multi||!1,this.o=t.filter||Ui,this.j=t.hitTolerance||0,this.g=new ab({source:new fb({useSpatialIndex:!1,features:t.features,wrapX:t.wrapX}),style:t.style||(c((e=Lh()).Polygon,e.LineString),c(e.GeometryCollection,e.LineString),function(t){return t.V()?e[t.V().U()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0}),t=t.layers?"function"==typeof t.layers?t.layers:(o=t.layers,function(t){return d(o,t)}):Ui,this.u=t,this.a={},de(t=this.g.ha().f,"add",this.Fn,this),de(t,"remove",this.Jn,this)}function sm(t){if(!this.C(t))return!0;var o=this.D(t),i=this.B(t),r=this.I(t),e=!o&&!i&&!r,n=t.map,s=this.g.ha().f,a=[],p=[];if(e){for(lt(this.a),n.we(t.pixel,function(t,e){if(this.o(t,e))return p.push(t),t=G(t),this.a[t]=e,!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=s.dc()-1;0<=e;--e){var n=s.item(e),h=p.indexOf(n);-1<h?p.splice(h,1):(s.remove(n),a.push(n))}p.length&&s.fg(p)}else{for(n.we(t.pixel,function(t,e){if(this.o(t,e))return!o&&!r||d(s.a,t)?(i||r)&&d(s.a,t)&&(a.push(t),e=G(t),delete this.a[e]):(p.push(t),t=G(t),this.a[t]=e),!this.l}.bind(this),{layerFilter:this.u,hitTolerance:this.j}),e=a.length-1;0<=e;--e)s.remove(a[e]);s.fg(p)}return(0<p.length||0<a.length)&&this.b(new am(pm,p,a,t)),Kr(t)}function am(t,e,o,i){Me.call(this,t),this.selected=e,this.deselected=o,this.mapBrowserEvent=i}e(Kb,$r),(Au=Kb.prototype).kg=function(t){var e=t.V();e&&e.U()in this.T&&this.T[e.U()].call(this,t,e),(e=this.v)&&e.c&&this.c()&&tm(this,this.va,e),de(t,"change",this.si,this)},Au.Ha=function(t){this.g&&!t&&(this.B.ha().Gb(this.g),this.g=null),$r.prototype.Ha.call(this,t)},Au.setMap=function(t){this.B.setMap(t),$r.prototype.setMap.call(this,t)},Au.wn=function(t){this.kg(t.element)},Au.si=function(t){this.l||(Yb(this,t=t.target),this.kg(t))},Au.xn=function(t){Yb(this,t.element)},Au.Dn=function(t,e){var o=e.X();t={feature:t,geometry:e,la:[o,o]},this.a.Ca(e.G(),t)},Au.Bn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,geometry:e,depth:[i],index:i,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Au.ti=function(t,e){for(var o=e.X(),i=0,r=o.length-1;i<r;++i){var n=o.slice(i,i+2),s={feature:t,geometry:e,index:i,la:n};this.a.Ca(P(n),s)}},Au.An=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Au.En=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length-1;s<a;++s){var p=n.slice(s,s+2),h={feature:t,geometry:e,depth:[i],index:s,la:p};this.a.Ca(P(p),h)}},Au.Cn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i)for(var n=o[i],s=0,a=n.length;s<a;++s)for(var p=n[s],h=0,l=p.length-1;h<l;++h){var u=p.slice(h,h+2),c={feature:t,geometry:e,depth:[s,i],index:h,la:u};this.a.Ca(P(u),c)}},Au.yn=function(t,e){var o=e.wa(),i={feature:t,geometry:e,index:0,la:[o,o]};t={feature:t,geometry:e,index:1,la:[o,o]},i.Pf=t.Pf=[i,t],this.a.Ca(k(o),i),this.a.Ca(e.G(),t)},Au.zn=function(t,e){var o=e.a;for(e=0;e<o.length;++e)this.T[o[e].U()].call(this,t,o[e])},Au.bm=function(t,e){for(var o,i=t.la,r=t.feature,n=t.geometry,s=t.depth,a=t.index;e.length<n.qa();)e.push(0);switch(n.U()){case"MultiLineString":case"Polygon":(o=n.X())[s[0]].splice(a+1,0,e);break;case"MultiPolygon":(o=n.X())[s[1]][s[0]].splice(a+1,0,e);break;case"LineString":(o=n.X()).splice(a+1,0,e);break;default:return}this.l=!0,n.ma(o),this.l=!1,(o=this.a).remove(t),im(this,n,a,s,1),t={la:[i[0],e],feature:r,geometry:n,depth:s,index:a},o.Ca(P(t.la),t),this.j.push([t,1]),e={la:[e,i[1]],feature:r,geometry:n,depth:s,index:a+1},o.Ca(P(e.la),e),this.j.push([e,0]),this.I=!0},Au.hj=function(){if(this.R&&"pointerdrag"!=this.R.type){var t=this.R;zb(this,t);var e,o=this.j,i={};for(a=o.length-1;0<=a;--a){var r=o[a],n=r[0],s=G(n.feature);n.depth&&(s+="-"+n.depth.join("-")),s in i||(i[s]={}),0===r[1]?(i[s].right=n,i[s].index=n.index):1==r[1]&&(i[s].left=n,i[s].index=n.index+1)}for(s in i){var a,p=i[s].right,h=i[s].left,l=(a=i[s].index)-1;l<0&&(l=0);var u=e=(r=(n=void 0!==h?h:p).geometry).X(),c=!1;switch(r.U()){case"MultiLineString":2<e[n.depth[0]].length&&(e[n.depth[0]].splice(a,1),c=!0);break;case"LineString":2<e.length&&(e.splice(a,1),c=!0);break;case"MultiPolygon":u=u[n.depth[1]];case"Polygon":4<(u=u[n.depth[0]]).length&&(a==u.length-1&&(a=0),u.splice(a,1),c=!0,0===a&&(u.pop(),u.push(u[0]),l=u.length-1))}c&&(c=r,this.l=!0,c.ma(e),this.l=!1,e=[],void 0!==h&&(this.a.remove(h),e.push(h.la[0])),void 0!==p&&(this.a.remove(p),e.push(p.la[1])),void 0!==h&&void 0!==p&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:l,la:e},this.a.Ca(P(h.la),h)),im(this,r,a,n.depth,-1),this.g&&(this.B.ha().Gb(this.g),this.g=null),o.length=0)}return this.b(new rm("modifyend",this.u,t)),!(this.C=!1)}return!1},e(rm,Me),e(nm,Or),(Au=nm.prototype).Gn=function(){return this.g.ha().f},Au.Hn=function(){return this.j},Au.In=function(t){return t=G(t),this.a[t]},Au.Kn=function(t){this.j=t},Au.setMap=function(t){var e=this.v,o=this.g.ha().f;e&&o.forEach(e.Cj,e),Or.prototype.setMap.call(this,t),this.g.setMap(t),t&&o.forEach(t.xj,t)},Au.Fn=function(t){var e=this.v;e&&e.xj(t.element)},Au.Jn=function(t){var e=this.v;e&&e.Cj(t.element)},e(am,Me);var pm="select";function hm(t){$r.call(this,{handleEvent:um,handleDownEvent:Ui,handleUpEvent:cm}),t=t||{},this.l=t.source||null,this.R=void 0===t.vertex||t.vertex,this.C=void 0===t.edge||t.edge,this.j=t.features||null,this.pa=[],this.B={},this.T={},this.u={},this.I=null,this.g=void 0!==t.pixelTolerance?t.pixelTolerance:10,this.va=function(t,e){return Di(this.I,t.la)-Di(this.I,e.la)}.bind(this),this.a=new lp,this.fa={Point:this.Rn,LineString:this.wi,LinearRing:this.wi,Polygon:this.Sn,MultiPoint:this.Pn,MultiLineString:this.On,MultiPolygon:this.Qn,GeometryCollection:this.Nn,Circle:this.Mn}}function lm(t,e,o,i){var r,n=i.Wa([e[0]-t.g,e[1]+t.g]),s=i.Wa([e[0]+t.g,e[1]-t.g]),n=P([n,s]),a=fp(t.a,n),p=!1,n=!1,h=s=null;return 0<(a=t.R&&!t.C?a.filter(function(t){return"Circle"!==t.feature.V().U()}):a).length&&(t.I=o,a.sort(t.va),r=a[0].la,p="Circle"===a[0].feature.V().U(),t.R&&!t.C?(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Fi(e,o),e=Fi(e,p),(p=(p=Math.sqrt(Math.min(o,e)))<=t.g)&&(n=!0,s=e<o?r[1]:r[0],h=i.Ja(s))):t.C&&(s=p?function(t,e){var o=e.pd();e=(i=e.wa())[0];var i=i[1],r=t[0]-e;t=t[1]-i,r||t||(r=1);var n=Math.sqrt(r*r+t*t);return[e+o*r/n,i+o*t/n]}(o,a[0].feature.V()):ji(o,r),ki(e,h=i.Ja(s))<=t.g&&(n=!0,t.R&&!p&&(o=i.Ja(r[0]),p=i.Ja(r[1]),o=Fi(h,o),e=Fi(h,p),p=(p=Math.sqrt(Math.min(o,e)))<=t.g)))&&(s=e<o?r[1]:r[0],h=i.Ja(s)),n&&(h=[Math.round(h[0]),Math.round(h[1])])),{nq:n,vertex:s,wq:h}}function um(t){var e=lm(this,t.pixel,t.coordinate,t.map);return e.nq&&(t.coordinate=e.vertex.slice(0,2),t.pixel=e.wq),tn.call(this,t)}function cm(){var t=ut(this.u);return t.length&&(t.forEach(this.Dj,this),this.u={}),!1}function fm(t){var e,o;$r.call(this,{handleDownEvent:ym,handleDragEvent:dm,handleMoveEvent:vm,handleUpEvent:gm}),t=t||{},this.a=null,this.j=void 0!==t.features?t.features:null,o=t.layers?"function"==typeof t.layers?t.layers:(e=t.layers,function(t){return d(e,t)}):Ui,this.C=o,this.l=t.hitTolerance||0,this.g=null,de(this,Le("active"),this.u,this)}function ym(t){if(this.g=bm(this,t.pixel,t.map),this.a||!this.g)return!1;this.a=t.coordinate,vm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new wm("translatestart",e,t.coordinate)),!0}function gm(t){if(this.a){this.a=null,vm.call(this,t);var e=this.j||new Ne([this.g]);return this.b(new wm("translateend",e,t.coordinate)),!0}return!1}function dm(t){var o,i,e;this.a&&(o=(t=t.coordinate)[0]-this.a[0],i=t[1]-this.a[1],(e=this.j||new Ne([this.g])).forEach(function(t){var e=t.V();e.translate(o,i),t.Ra(e)}),this.a=t,this.b(new wm("translating",e,t)))}function vm(t){var e=t.map.a;bm(this,t.pixel,t.map)?(e.classList.remove(this.a?"ol-grab":"ol-grabbing"),e.classList.add(this.a?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")}function bm(t,e,o){return o.we(e,function(t){if(!this.j||d(this.j.a,t))return t}.bind(t),{layerFilter:t.C,hitTolerance:t.l})}function mm(t,e){var o=t.v;t=t.c(),o&&t||(o=o||e).a.classList.remove("ol-grab","ol-grabbing")}function wm(t,e,o){Me.call(this,t),this.features=e,this.coordinate=o}function xm(t){var e=ht({},t=t||{});delete e.gradient,delete e.radius,delete e.blur,delete e.shadow,delete e.weight,ab.call(this,e),this.j=null,this.R=void 0!==t.shadow?t.shadow:250,this.I=void 0,this.B=null,de(this,Le(Pm),this.Bl,this),this.pj(t.gradient||Sm),this.jj(void 0!==t.blur?t.blur:15),this.Uc(void 0!==t.radius?t.radius:8),de(this,Le(Mm),this.cg,this),de(this,Le(Am),this.cg,this),this.cg();var o=t.weight||"weight",i="string"==typeof o?function(t){return t.get(o)}:o;this.g(function(t){var e=255*(t=void 0!==(t=i(t))?x(t,0,1):1)|0,o=this.B[e];return o||(o=[new Eh({image:new qc({opacity:t,src:this.I})})],this.B[e]=o),o}.bind(this)),this.set(pb,null),de(this,"render",this.Sl,this)}e(hm,$r),(Au=hm.prototype).yb=function(t,e){e=void 0===e||e;var o,i=G(t),r=t.V();!r||(o=this.fa[r.U()])&&(this.T[i]=r.G(V()),o.call(this,t,r)),e&&(this.B[i]=de(t,"change",this.Ln,this))},Au.Ak=function(t){this.yb(t)},Au.Bk=function(t){this.Gb(t)},Au.ui=function(t){var e;t instanceof bb?e=t.feature:t instanceof Oe&&(e=t.element),this.yb(e)},Au.vi=function(t){var e;t instanceof bb?e=t.feature:t instanceof Oe&&(e=t.element),this.Gb(e)},Au.Ln=function(t){var e;t=t.target,this.D?(e=G(t))in this.u||(this.u[e]=t):this.Dj(t)},Au.Gb=function(e,t){t=void 0===t||t;var o=G(e),i=this.T[o];if(i){var r=this.a,n=[];for(yp(r,i,function(t){e===t.feature&&n.push(t)}),i=n.length-1;0<=i;--i)r.remove(n[i])}t&&(me(this.B[o]),delete this.B[o])},Au.setMap=function(t){var e,o=this.v,i=this.pa;this.j?e=this.j:this.l&&(e=this.l.Xe()),o&&(i.forEach(me),i.length=0,e.forEach(this.Bk,this)),$r.prototype.setMap.call(this,t),t&&(this.j?i.push(de(this.j,"add",this.ui,this),de(this.j,"remove",this.vi,this)):this.l&&i.push(de(this.l,"addfeature",this.ui,this),de(this.l,"removefeature",this.vi,this)),e.forEach(this.Ak,this))},Au.Xc=Gi,Au.Dj=function(t){this.Gb(t,!1),this.yb(t,!1)},Au.Mn=function(t,e){for(var o=0,i=(e=Pr(e).X()[0]).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Au.Nn=function(t,e){var o=e.a;for(e=0;e<o.length;++e){var i=this.fa[o[e].U()];i&&i.call(this,t,o[e])}},Au.wi=function(t,e){for(var o=0,i=(e=e.X()).length-1;o<i;++o){var r=e.slice(o,o+2),n={feature:t,la:r};this.a.Ca(P(r),n)}},Au.On=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},Au.Pn=function(t,e){for(var o=e.X(),i=0,r=o.length;i<r;++i){var n={feature:t,la:[n=o[i],n]};this.a.Ca(e.G(),n)}},Au.Qn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length;n<s;++n)for(var a=r[n],p=0,h=a.length-1;p<h;++p){var l=a.slice(p,p+2),u={feature:t,la:l};this.a.Ca(P(l),u)}},Au.Rn=function(t,e){var o=e.X();t={feature:t,la:[o,o]},this.a.Ca(e.G(),t)},Au.Sn=function(t,e){for(var o=0,i=(e=e.X()).length;o<i;++o)for(var r=e[o],n=0,s=r.length-1;n<s;++n){var a=r.slice(n,n+2),p={feature:t,la:a};this.a.Ca(P(a),p)}},e(fm,$r),fm.prototype.B=function(){return this.l},fm.prototype.I=function(t){this.l=t},fm.prototype.setMap=function(t){var e=this.v;$r.prototype.setMap.call(this,t),mm(this,e)},fm.prototype.u=function(){mm(this,null)},e(wm,Me),e(xm,ab);var Sm=["#00f","#0ff","#0f0","#ff0","#f00"];(Au=xm.prototype).uh=function(){return this.get(Mm)},Au.Bh=function(){return this.get(Pm)},Au.yi=function(){return this.get(Am)},Au.Bl=function(){for(var t=this.Bh(),e=Ye(1,256),o=e.createLinearGradient(0,0,1,256),i=1/(t.length-1),r=0,n=t.length;r<n;++r)o.addColorStop(r*i,t[r]);e.fillStyle=o,e.fillRect(0,0,1,256),this.j=e.getImageData(0,0,1,256).data},Au.cg=function(){var t=this.yi(),e=this.uh(),o=t+e+1,i=2*o;(i=Ye(i,i)).shadowOffsetX=i.shadowOffsetY=this.R,i.shadowBlur=e,i.shadowColor="#000",i.beginPath(),e=o-this.R,i.arc(e,e,t,0,2*Math.PI,!0),i.fill(),this.I=i.canvas.toDataURL(),this.B=Array(256),this.s()},Au.Sl=function(t){for(var e,o=(t=t.context).canvas,i=(o=t.getImageData(0,0,o.width,o.height)).data,r=0,n=i.length;r<n;r+=4)(e=4*i[r+3])&&(i[r]=this.j[e],i[r+1]=this.j[1+e],i[r+2]=this.j[2+e]);t.putImageData(o,0,0)},Au.jj=function(t){this.set(Mm,t)},Au.pj=function(t){this.set(Pm,t)},Au.Uc=function(t){this.set(Am,t)};var Mm="blur",Pm="gradient",Am="radius";function Em(t){Zv.call(this,t),this.v=qn(),this.j=null}function Tm(t){Em.call(this,t),this.M=null,this.c=qn()}function jm(t,e,o,i){var r=zt(o,e,t);return o=Ft(e,i,o),void 0!==(e=e.sc())&&(o*=e),void 0!==(e=t.sc())&&(o/=e),t=Ft(t,o,r)/o,isFinite(t)&&0<t&&(o/=t),o}function Cm(t,e,o,i){t=o-t,e=i-e;var r=Math.sqrt(t*t+e*e);return[Math.round(o+t/r),Math.round(i+e/r)]}function Lm(t,e,g,d,o,v,i,r,n,s,a){var b=Ye(Math.round(g*t),Math.round(g*e));if(!n.length)return b.canvas;b.scale(g,g);var m=V();n.forEach(function(t){K(m,t.extent)});var w=Ye(Math.round(g*rt(m)/d),Math.round(g*tt(m)/d)),p=g/d;n.forEach(function(t){w.drawImage(t.image,s,s,t.image.width-2*s,t.image.height-2*s,(t.extent[0]-m[0])*p,-(t.extent[3]-m[3])*p,rt(t.extent)*p,tt(t.extent)*p)});var x=ot(i);return r.c.forEach(function(t){var e=t.source,o=t.target,i=e[1][0],r=e[1][1],n=e[2][0],s=e[2][1];t=(o[0][0]-x[0])/v;var a=-(o[0][1]-x[1])/v,p=(o[1][0]-x[0])/v,h=-(o[1][1]-x[1])/v,l=(o[2][0]-x[0])/v,u=-(o[2][1]-x[1])/v;t:{for(r=(i=[[i=i-(o=e[0][0]),r=r-(e=e[0][1]),0,0,p-t],[n=n-o,s=s-e,0,0,l-t],[0,0,i,r,h-a],[0,0,n,s,u-a]]).length,n=0;n<r;n++){for(var s=n,c=Math.abs(i[n][n]),f=n+1;f<r;f++){var y=Math.abs(i[f][n]);c<y&&(c=y,s=f)}if(!c){i=null;break t}for(c=i[s],i[s]=i[n],i[n]=c,s=n+1;s<r;s++)for(c=-i[s][n]/i[n][n],f=n;f<r+1;f++)i[s][f]=n==f?0:i[s][f]+c*i[n][f]}for(n=Array(r),s=r-1;0<=s;s--)for(n[s]=i[s][r]/i[s][s],c=s-1;0<=c;c--)i[c][r]-=i[c][s]*n[s];i=n}i&&(b.save(),b.beginPath(),r=Cm(n=(t+p+l)/3,s=(a+h+u)/3,t,a),p=Cm(n,s,p,h),l=Cm(n,s,l,u),b.moveTo(p[0],p[1]),b.lineTo(r[0],r[1]),b.lineTo(l[0],l[1]),b.clip(),b.transform(i[0],i[2],i[1],i[3],t,a),b.translate(m[0]-o,m[3]-e),b.scale(d/g,-d/g),b.drawImage(w.canvas,0,0),b.restore())}),a&&(b.save(),b.strokeStyle="black",b.lineWidth=1,r.c.forEach(function(t){t=((n=t.target)[0][0]-x[0])/v;var e=-(n[0][1]-x[1])/v,o=(n[1][0]-x[0])/v,i=-(n[1][1]-x[1])/v,r=(n[2][0]-x[0])/v,n=-(n[2][1]-x[1])/v;b.beginPath(),b.moveTo(o,i),b.lineTo(t,e),b.lineTo(r,n),b.closePath(),b.stroke()}),b.restore()),b.canvas}function Rm(t,e,o,i,r){this.i=t,this.f=e;var n={},s=Vt(this.f,this.i);this.a=function(t){var e=t[0]+"/"+t[1];return n[e]||(n[e]=s(t)),n[e]},this.g=i,this.v=r*r,this.c=[],this.o=!1,this.l=this.i.i&&!!i&&!!this.i.G()&&rt(i)==rt(this.i.G()),this.b=this.i.G()?rt(this.i.G()):null,this.j=this.f.G()?rt(this.f.G()):null,t=ot(o),e=it(o),i=_(o),o=J(o),r=this.a(t);var a,p=this.a(e),h=this.a(i),l=this.a(o);!function t(e,o,i,r,n,s,a,p,h,l){var u=P([s,a,p,h]),c=e.b?rt(u)/e.b:null,f=e.b,y=e.i.i&&.5<c&&c<1,g=!1;{var d;0<l&&(e.f.c&&e.j&&(d=P([o,i,r,n]),g|=.25<rt(d)/e.j),!y&&e.i.c&&c&&(g|=.25<c))}if(g||!e.g||nt(u,e.g)){if(!(g||isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(p[0])&&isFinite(p[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(0<l))return;g=!0}if(0<l&&(g||(u=e.a([(o[0]+r[0])/2,(o[1]+r[1])/2]),f=y?(L(s[0],f)+L(p[0],f))/2-L(u[0],f):(s[0]+p[0])/2-u[0],u=(s[1]+p[1])/2-u[1],g=f*f+u*u>e.v),g))Math.abs(o[0]-r[0])<=Math.abs(o[1]-r[1])?(y=[(i[0]+r[0])/2,(i[1]+r[1])/2],f=e.a(y),u=[(n[0]+o[0])/2,(n[1]+o[1])/2],c=e.a(u),t(e,o,i,y,u,s,a,f,c,l-1),t(e,u,y,r,n,c,f,p,h,l-1)):(y=[(o[0]+i[0])/2,(o[1]+i[1])/2],f=e.a(y),u=[(r[0]+n[0])/2,(r[1]+n[1])/2],c=e.a(u),t(e,o,y,u,n,s,f,c,h,l-1),t(e,y,i,r,u,f,a,p,c,l-1));else{if(y){if(!e.l)return;e.o=!0}e.c.push({source:[s,p,h],target:[o,r,n]}),e.c.push({source:[s,a,p],target:[o,i,r]})}}}(this,t,e,i,o,r,p,h,l,10),this.o&&(a=1/0,this.c.forEach(function(t){a=Math.min(a,t.source[0][0],t.source[1][0],t.source[2][0])}),this.c.forEach(function(t){var e;Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-a>this.b/2&&((e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]])[0][0]-a>this.b/2&&(e[0][0]-=this.b),e[1][0]-a>this.b/2&&(e[1][0]-=this.b),e[2][0]-a>this.b/2&&(e[2][0]-=this.b),Math.max(e[0][0],e[1][0],e[2][0])-Math.min(e[0][0],e[1][0],e[2][0])<this.b/2&&(t.source=e))},this)),n={}}function Im(t){var e=V();return t.c.forEach(function(t){t=t.source,z(e,t[0]),z(e,t[1]),z(e,t[2])}),e}function Nm(t,e,o,i,r,n){this.v=e,this.l=t.G();var s=(a=e.G())?et(o,a):o,a=jm(t,e,$(s),i);this.j=new Rm(t,e,s,this.l,.5*a),this.c=i,this.i=o,t=Im(this.j),this.o=(this.Hb=n(t,a,r))?this.Hb.a:1,this.ee=this.g=null,r=2,n=[],this.Hb&&(r=0,n=this.Hb.f),Jd.call(this,o,i,this.o,r,n)}function Fm(t){lb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state}),this.C=void 0!==t.resolutions?t.resolutions:null,this.a=null,this.fa=0}function km(t,e){return e=t.C?t.C[v(t.C,e,0)]:e}function Dm(t,e){t.Y().src=e}function Om(t,e){Me.call(this,t),this.image=e}e(Em,Zv),Em.prototype.S=function(t,e,o){zv(this,"precompose",o,t,void 0);var i,r,n,s=this.Y();s&&((i=void 0!==(r=e.extent)&&!N(r,t.extent)&&nt(r,t.extent))&&Kv(o,t,r),r=this.C(),n=o.globalAlpha,o.globalAlpha=e.opacity,o.drawImage(s,0,0,+s.width,+s.height,Math.round(r[4]),Math.round(r[5]),Math.round(s.width*r[0]),Math.round(s.height*r[3])),o.globalAlpha=n,i&&o.restore()),this.ef(o,t,e)},Em.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Em.prototype.u=function(t,e,o,i){if(this.Y()){if(this.a.ha().Ea!==w)return Zv.prototype.u.apply(this,arguments);var r=ts(this.v,t.slice());return Ni(r,e.viewState.resolution/this.f),this.j||(this.j=Ye(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.Y(),r[0],r[1],1,1,0,0,1,1),0<(r=this.j.getImageData(0,0,1,1).data)[3]?o.call(i,this.a,r):void 0}},e(Tm,Em),Tm.prototype.Y=function(){return this.M?this.M.Y():null},Tm.prototype.C=function(){return this.c},Tm.prototype.sd=function(t,e){var o,i=t.pixelRatio,r=t.size,n=t.viewState,s=n.center,a=n.resolution,p=this.a.ha(),h=t.viewHints,l=t.extent;return void 0!==e.extent&&(l=et(l,e.extent)),h[0]||h[1]||st(l)||(e=p.Y(l,a,i,n.projection))&&Ov(this,e)&&(this.M=e),this.M&&(h=(e=this.M).G(),o=i*(l=e.resolution)/(a*(n=e.a)),h=rs(this.c,i*r[0]/2,i*r[1]/2,o,o,0,n*(h[0]-s[0])/l,n*(s[1]-h[3])/l),rs(this.v,i*r[0]/2-h[4],i*r[1]/2-h[5],i/a,-i/a,0,-s[0],-s[1]),Bv(t.attributions,e.f),Xv(t,p),this.f=a*i/n),!!this.M},e(Nm,Jd),Nm.prototype.ka=function(){1==this.state&&(me(this.ee),this.ee=null),Jd.prototype.ka.call(this)},Nm.prototype.Y=function(){return this.g},Nm.prototype.de=function(){var t=this.Hb.getState();2==t&&(this.g=Lm(rt(this.i)/this.c,tt(this.i)/this.c,this.o,this.Hb.resolution,0,this.c,this.i,this.j,[{extent:this.Hb.G(),image:this.Hb.Y()}],0)),this.state=t,this.s()},Nm.prototype.load=function(){var t;0==this.state&&(this.state=1,this.s(),2==(t=this.Hb.getState())||3==t?this.de():(this.ee=de(this.Hb,"change",function(){var t=this.Hb.getState();2!=t&&3!=t||(me(this.ee),this.ee=null,this.de())},this),this.Hb.load()))},e(Fm,lb),Fm.prototype.Y=function(t,e,o,i){var r=this.c;if(r&&i&&!Xt(r,i)){if(this.a){if(this.fa==this.i&&Xt(this.a.v,i)&&this.a.resolution==e&&this.a.a==o&&Z(this.a.G(),t))return this.a;Se(this.a),this.a=null}return this.a=new Nm(r,i,t,e,o,function(t,e,o){return this.Jc(t,e,o,r)}.bind(this)),this.fa=this.i,this.a}return r&&(i=r),this.Jc(t,e,o,i)},Fm.prototype.o=function(t){switch((t=t.target).getState()){case 1:this.b(new Om(Um,t));break;case 2:this.b(new Om(Gm,t));break;case 3:this.b(new Om(Bm,t))}},e(Om,Me);var Um="imageloadstart",Gm="imageloadend",Bm="imageloaderror";function Xm(t){Fm.call(this,{attributions:t.attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions,state:t.state}),this.pa=t.canvasFunction,this.R=null,this.T=0,this.va=void 0!==t.ratio?t.ratio:1.5}function Vm(t){this.f=t.source,this.$a=qn(),this.g=Ye(),this.l=[0,0],this.Sa=null==t.renderBuffer?100:t.renderBuffer,this.B=null,Xm.call(this,{attributions:t.attributions,canvasFunction:this.tk.bind(this),logo:t.logo,projection:t.projection,ratio:t.ratio,resolutions:t.resolutions,state:this.f.getState()}),this.I=null,this.v=void 0,this.Ii(t.style),de(this.f,"change",this.ro,this)}function Wm(t,e){rb.call(this,t,e),this.o=this.f=this.M=null}function Zm(t){Zn.call(this,t||{})}function Km(t){Em.call(this,t),this.c=null===this.c?null:Ye(),this.o=null,this.g=[],this.l=V(),this.va=new B(0,0,0,0),this.B=qn(),this.T=0}function zm(t,e){return e=e.getState(),t=t.a.kd(),2==e||4==e||3==e&&!t}function Ym(){this.b="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}e(Xm,Fm),Xm.prototype.Jc=function(t,e,o,i){e=km(this,e);var r=this.R;return r&&this.T==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t)||(at(t=t.slice(),this.va),(i=this.pa(t,e,o,[rt(t)/e*o,tt(t)/e*o],i))&&(r=new $d(t,e,o,this.j,i)),this.R=r,this.T=this.i),r},e(Vm,Xm),(Au=Vm.prototype).tk=function(t,n,s,e,o){var a=new Lv(.5*n/s,t,n,this.f.T,this.Sa);this.f.Yd(t,n,o);var i,r,p=!1;return this.f.$b(t,function(t){var e;if(!(i=p))if((i=t.Lc())?e=i.call(t,n):this.v&&(e=this.v(t,n)),e){for(var o=!1,i=0,r=(e=!Array.isArray(e)?[e]:e).length;i<r;++i)o=Jv(a,t,e[i],qv(n,s),this.qo,this)||o;i=o}else i=!1;p=i},this),Nv(a),p?null:(this.l[0]!=e[0]||this.l[1]!=e[1]?(this.g.canvas.width=e[0],this.g.canvas.height=e[1],this.l[0]=e[0],this.l[1]=e[1]):this.g.clearRect(0,0,e[0],e[1]),i=this,r=$(t),o=e,e=s/(e=n),t=rs(i.$a,o[0]/2,o[1]/2,e,-e,0,-r[0],-r[1]),a.La(this.g,s,t,0,{}),this.B=a,this.g.canvas)},Au.Ea=function(t,e,o,i,r,n){if(this.B){var s={};return this.B.Ea(t,e,0,i,r,function(t){var e=G(t).toString();if(!(e in s))return s[e]=!0,n(t)})}},Au.no=function(){return this.f},Au.oo=function(){return this.I},Au.po=function(){return this.v},Au.qo=function(){this.s()},Au.ro=function(){cb(this,this.f.getState())},Au.Ii=function(t){this.I=void 0!==t?t:Ch,this.v=t?Th(this.I):void 0,this.s()},e(Wm,rb),Wm.prototype.Ea=function(t,e,o,i,r){var n=this.a;return n.ha().Ea(t,e.viewState.resolution,e.viewState.rotation,o,e.skippedFeatureUids,function(t){return i.call(r,t,n)})},Wm.prototype.ng=function(t,e){var o,i,r=this.c.i,n=t.pixelRatio,s=t.viewState,a=s.center,p=s.resolution,h=s.rotation,l=this.M,u=this.Ib,c=this.a.ha(),f=t.viewHints,y=t.extent;return void 0!==e.extent&&(y=et(y,e.extent)),f[0]||f[1]||st(y)||(e=c.Y(y,p,n,s.projection))&&Ov(this,e)&&(o=this,i=(i=l=e).Y(),u=ha(o.c.i,i),this.Ib&&t.postRenderFunctions.push(function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,r,this.Ib))),l&&(r=this.c.f.j,s=this,e=r.width,o=r.height,i=n,r=a,a=p,p=h,h=l.G(),e*=a,o*=a,Jn(s=s.S),os(s,2*i/e,2*i/o),es(s,-p),is(s,h[0]-r[0],h[1]-r[1]),os(s,(h[2]-h[0])/2,(h[3]-h[1])/2),is(s,1,1),this.o=null,Jn(n=this.v),os(n,1,-1),is(n,0,-1),this.M=l,this.Ib=u,Bv(t.attributions,l.f),Xv(t,c)),!!l},Wm.prototype.Ue=function(t,e){return void 0!==this.Ea(t,e,0,Ui,this)},Wm.prototype.lg=function(t,e,o,i){if(this.M&&this.M.Y())if(this.a.ha()instanceof Vm){var r=ts(e.pixelToCoordinateTransform,t.slice());if(this.Ea(r,e,0,Ui,this))return o.call(i,this.a,null)}else{var n,s,r=[this.M.Y().width,this.M.Y().height];if(this.o||(n=e.size,is(e=qn(),-1,-1),os(e,2/n[0],2/n[1]),is(e,0,n[1]),os(e,1,-1),n=ns(this.S.slice()),is(s=qn(),0,r[1]),os(s,1,-1),os(s,r[0]/2,r[1]/2),is(s,1,1),_n(s,n),_n(s,e),this.o=s),!((t=ts(this.o,t.slice()))[0]<0||t[0]>r[0]||t[1]<0||t[1]>r[1])&&(this.f||(this.f=Ye(1,1)),this.f.clearRect(0,0,1,1),this.f.drawImage(this.M.Y(),t[0],t[1],1,1,0,0,1,1),0<(r=this.f.getImageData(0,0,1,1).data)[3]))return o.call(i,this.a,r)}},e(Zm,Zn),Zm.prototype.Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Tm(this):"webgl"===o&&(e=new Wm(t,this)),e},e(Km,Em),Km.prototype.sd=function(t,e){var o=t.pixelRatio,i=t.size,r=(s=t.viewState).projection,n=s.resolution,s=s.center,a=this.a,p=a.ha(),h=p.i,l=p.Ta(r),u=l.tc(n,this.T),c=l.Da(u),f=Math.round(n/c)||1,y=t.extent;if(st(y=void 0!==e.extent?et(y,e.extent):y))return!1;var g=te(l,y,c),d=l.Pc(u),v=l.Da(u),b=X(l.gb(u),l.j),d=F(d[0]+g.ca*b[0]*v,d[1]+g.da*b[1]*v,d[0]+(g.$+1)*b[0]*v,d[1]+(g.ia+1)*b[1]*v,void 0),v=p.nb(o);(b={})[u]={};var m=this.Nf(p,r,b),w=this.l,x=this.va,S=!1;for(C=g.ca;C<=g.$;++C)for(L=g.da;L<=g.ia;++L){var M=p.Nc(u,C,L,o,r);3!=M.getState()||this.a.kd()||ev(M,2),zm(this,M)||(M=tv(M)),zm(this,M)?2==M.getState()&&(b[u][M.ta.toString()]=M,S||-1!=this.g.indexOf(M)||(S=!0)):$t(l,M.ta,m,x,w)||(M=Qt(l,M.ta,x,w))&&m(u+1,M)}if(C=(C=t.viewHints)[0]||C[1],!(this.f&&16<Date.now()-t.time&&C||!S&&this.o&&N(this.o,y)&&this.mf==h&&f==this.R&&(C||c*o/v*f==this.f))){(C=this.c)&&(L=p.Xd(u,o,r),M=Math.round((g.$-g.ca+1)*L[0]/f),L=Math.round((g.ia-g.da+1)*L[1]/f),(S=C.canvas).width!=M||S.height!=L?(this.R=f,S.width=M,S.height=L):(C.clearRect(0,0,M,L),f=this.R)),this.g.length=0,(S=Object.keys(b).map(Number)).sort(D);for(var x=0,P=S.length;x<P;++x){C=S[x];var A,m=p.Xd(C,o,r),E=(M=l.Da(C))/c,T=v*p.Wf(r),j=b[C];for(A in j){var M=j[A],C=((L=l.Aa(M.ta,w))[0]-d[0])/c*v/f,L=(d[3]-L[3])/c*v/f,R=m[0]*E/f,I=m[1]*E/f;this.Of(M,t,e,C,L,R,I,T),this.g.push(M)}}this.mf=h,this.f=c*o/v*f,this.o=d}return e=this.f/n,e=rs(this.B,o*i[0]/2,o*i[1]/2,e,e,0,(this.o[0]-s[0])/this.f*o,(s[1]-this.o[3])/this.f*o),rs(this.v,o*i[0]/2-e[4],o*i[1]/2-e[5],o/n,-o/n,0,-s[0],-s[1]),Vv(t.usedTiles,p,u,g),Wv(t,p,l,o,r,y,u,a.Ud()),Gv(t,p),Xv(t,p),0<this.g.length},Km.prototype.Of=function(t,e,o,i,r,n,s,a){this.a.ha().Zf(e.viewState.projection)||this.c.clearRect(i,r,n,s),(t=t.Y())&&this.c.drawImage(t,a,a,t.width-2*a,t.height-2*a,i,r,n,s)},Km.prototype.Y=function(){var t=this.c;return t?t.canvas:null},Km.prototype.C=function(){return this.B},e(Ym,Ls);var Hm=new Ym;function qm(){this.b="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}e(qm,Rs);var Jm=new qm;function _m(t,e){this.i=t.getUniformLocation(e,"e"),this.c=t.getUniformLocation(e,"d"),this.b=t.getAttribLocation(e,"b"),this.a=t.getAttribLocation(e,"c")}function $m(t,e){rb.call(this,t,e),this.I=Hm,this.fa=Jm,this.f=null,this.B=new zs([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.D=this.o=null,this.l=-1,this.R=[0,0]}function Qm(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,Zn.call(this,e),this.zi(void 0!==t.preload?t.preload:0),this.Ai(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}function tw(t){this.c=null,Km.call(this,t),this.I=!1,this.D=qn(),this.T="vector"==t.j?1:0}e($m,rb),(Au=$m.prototype).ka=function(){ia(this.c.f,this.B),rb.prototype.ka.call(this)},Au.Nf=function(e,i,r){var n=this.c;return function(o,t){return fw(e,i,o,t,function(t){var e=n.a.b.hasOwnProperty(t.bb());return e&&(r[o]||(r[o]={}),r[o][t.ta.toString()]=t),e})}},Au.mg=function(){rb.prototype.mg.call(this),this.f=null},Au.ng=function(t,e,o){var i,r,n,s,a,p=this.c,h=o.b,l=t.viewState,u=l.projection,c=this.a,f=c.ha(),y=f.Ta(u),g=y.tc(l.resolution),d=y.Da(g),v=f.Xd(g,t.pixelRatio,u),b=v[0]/X(y.gb(g),this.R)[0],m=d/b,w=f.nb(b)*f.Wf(u),x=l.center,S=t.extent,M=te(y,S,d);if(this.o&&(s=this.o,a=M,s.ca==a.ca&&s.da==a.da&&s.$==a.$&&s.ia==a.ia)&&this.l==f.i)m=this.D;else{var P=[M.$-M.ca+1,M.ia-M.da+1],P=m*(C=(O(0<(n=Math.max(P[0]*v[0],P[1]*v[1])),29),Math.pow(2,Math.ceil(Math.log(n)/Math.LN2)))),A=y.Pc(g),m=[L=A[0]+M.ca*v[0]*m,m=A[1]+M.da*v[1]*m,L+P,m+P];i=t,r=C,a=(s=this).c.i,void 0===s.j||s.j!=r?(i.postRenderFunctions.push(function(t,e,o){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(o))}.bind(null,a,s.g,s.Ib)),i=pa(a,r,r),n=a.createFramebuffer(),a.bindFramebuffer(36160,n),a.framebufferTexture2D(36160,36064,3553,i,0),s.Ib=i,s.g=n,s.j=r):a.bindFramebuffer(36160,s.g),h.viewport(0,0,C,C),h.clearColor(0,0,0,0),h.clear(16384),h.disable(3042),C=sa(o,this.I,this.fa),o.Qc(C),this.f||(this.f=new _m(h,C)),oa(o,34962,this.B),h.enableVertexAttribArray(this.f.b),h.vertexAttribPointer(this.f.b,2,5126,!1,16,0),h.enableVertexAttribArray(this.f.a),h.vertexAttribPointer(this.f.a,2,5126,!1,16,8),h.uniform1i(this.f.i,0),(o={})[g]={};for(var E,T=this.Nf(f,u,o),j=c.kd(),C=!0,L=V(),R=new B(0,0,0,0),I=M.ca;I<=M.$;++I)for(E=M.da;E<=M.ia;++E){if(A=f.Nc(g,I,E,b,u),void 0!==e.extent){var N=y.Aa(A.ta,L);if(!nt(N,e.extent))continue}if(2==(N=(A=!(N=2==(N=A.getState())||4==N||3==N&&!j)?tv(A):A).getState())){if(p.a.b.hasOwnProperty(A.bb())){o[g][A.ta.toString()]=A;continue}}else if(4==N||3==N&&!j)continue;C=!1,(N=$t(y,A.ta,T,R,L))||(A=Qt(y,A.ta,R,L))&&T(g+1,A)}(e=Object.keys(o).map(Number)).sort(D);for(var F,T=new Float32Array(4),j=0,R=e.length;j<R;++j)for(F in I=o[e[j]])A=I[F],N=y.Aa(A.ta,L),T[0]=2*(N[2]-N[0])/P,T[1]=2*(N[3]-N[1])/P,T[2]=2*(N[0]-m[0])/P-1,T[3]=2*(N[1]-m[1])/P-1,h.uniform4fv(this.f.c,T),Gp(p,A,v,w*b),h.drawArrays(5,0,4);C?(this.o=M,this.D=m,this.l=f.i):(this.D=this.o=null,this.l=-1,t.animate=!0)}Vv(t.usedTiles,f,g,M);var k=p.j;return Wv(t,f,y,b,u,S,g,c.Ud(),function(t){2!=t.getState()||p.a.b.hasOwnProperty(t.bb())||t.bb()in k.a||k.f([t,oe(y,t.ta),y.Da(t.ta[0]),v,w*b])},this),Gv(t,f),Xv(t,f),Jn(h=this.v),is(h,(Math.round(x[0]/d)*d-m[0])/(m[2]-m[0]),(Math.round(x[1]/d)*d-m[1])/(m[3]-m[1])),l.rotation&&es(h,l.rotation),os(h,t.size[0]*l.resolution/(m[2]-m[0]),t.size[1]*l.resolution/(m[3]-m[1])),is(h,-.5,-.5),!0},Au.lg=function(t,e,o,i){if(this.g){t=[(t=ts(this.v,[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]].slice()))[0]*this.j,t[1]*this.j],(e=this.c.f.b).bindFramebuffer(e.FRAMEBUFFER,this.g);var r=new Uint8Array(4);if(e.readPixels(t[0],t[1],1,1,e.RGBA,e.UNSIGNED_BYTE,r),0<r[3])return o.call(i,this.a,r)}},e(Qm,Zn),(Au=Qm.prototype).Fd=function(t){var e=null,o=t.U();return"canvas"===o?e=new Km(this):"webgl"===o&&(e=new $m(t,this)),e},Au.Ud=function(){return this.get("preload")},Au.zi=function(t){this.set("preload",t)},Au.kd=function(){return this.get("useInterimTilesOnError")},Au.Ai=function(t){this.set("useInterimTilesOnError",t)},e(tw,Km);var ew={image:Ts,hybrid:["Polygon","LineString"]},ow={hybrid:["Image","Text"],vector:Ts};function iw(t){var e=ht({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,ab.call(this,e),this.Bi(t.preload||0),this.Ci(t.useInterimTilesOnError||!0),O(null==t.renderMode||"image"==t.renderMode||"hybrid"==t.renderMode||"vector"==t.renderMode,28),this.j=t.renderMode||"hybrid"}function rw(t,e,o,i){function r(){delete window[s],n.parentNode.removeChild(n)}var n=document.createElement("script"),s="olc_"+G(e);n.async=!0,n.src=t+(-1==t.indexOf("?")?"?":"&")+(i||"callback")+"="+s;var a=setTimeout(function(){r(),o&&o()},1e4);window[s]=function(t){clearTimeout(a),r(),e(t)},document.getElementsByTagName("head")[0].appendChild(n)}function nw(t,e,o,i,r,n,s,a,p,h,l){if(Qd.call(this,r,0),this.D=void 0!==l&&l,this.S=s,this.u=a,this.v=null,this.c=e,this.j=i,this.o=n||r,this.a=[],this.yd=null,this.g=0,n=i.Aa(this.o),a=this.j.G(),r=this.c.G(),q(n=a?et(n,a):n))if((a=t.G())&&(r=r?et(r,a):a),i=jm(t,o,$(n),i.Da(this.o[0])),!isFinite(i)||i<=0)this.state=4;else if(this.l=new Rm(t,o,n,r,i*(void 0!==h?h:.5)),this.l.c.length)if(this.g=e.tc(i),o=Im(this.l),r&&(t.i?(o[1]=x(o[1],r[1],r[3]),o[3]=x(o[3],r[1],r[3])):o=et(o,r)),q(o)){for(e=(t=ee(e,o,this.g)).ca;e<=t.$;e++)for(o=t.da;o<=t.ia;o++)(h=p(this.g,e,o,s))&&this.a.push(h);this.a.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}function sw(t,e){for(var o=t.length,i=Array(o),r=0;r<o;++r)i[r]=function(t,o){var i=/\{z\}/g,r=/\{x\}/g,n=/\{y\}/g,s=/\{-y\}/g;return function(e){if(e)return t.replace(i,e[0].toString()).replace(r,e[1].toString()).replace(n,function(){return(-e[2]-1).toString()}).replace(s,function(){var t=o.a?o.a[e[0]]:null;return O(t,55),(t.ia-t.da+1+e[2]).toString()})}}(t[r],e);return aw(i)}function aw(i){return 1===i.length?i[0]:function(t,e,o){if(t)return i[L((t[1]<<t[0])+t[2],i.length)](t,e,o)}}function pw(){}function hw(t){var e=[],o=/\{([a-z])-([a-z])\}/.exec(t);if(o){for(var i=o[2].charCodeAt(0),r=o[1].charCodeAt(0);r<=i;++r)e.push(t.replace(o[0],String.fromCharCode(r)));return e}if(o=/\{(\d+)-(\d+)\}/.exec(t)){for(i=parseInt(o[2],10),r=parseInt(o[1],10);r<=i;r++)e.push(t.replace(o[0],r.toString()));return e}return e.push(t),e}function lw(t){Op.call(this),this.highWaterMark=void 0!==t?t:2048}function uw(t){return t.c>t.highWaterMark}function cw(t){lb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,state:t.state,wrapX:t.wrapX}),this.va=void 0!==t.opaque&&t.opaque,this.$a=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.a=new lw(t.cacheSize),this.o=[0,0],this.uc=""}function fw(t,e,o,i,r){if(!(e=t.Wd(e)))return!1;for(var n,s,a=!0,p=i.ca;p<=i.$;++p)for(var h=i.da;h<=i.ia;++h)n=t.Sb(o,p,h),s=!1,e.b.hasOwnProperty(n)&&((s=2===(n=e.get(n)).getState())&&(s=!1!==r(n))),s||(a=!1);return a}function yw(t,e){t.uc!==e&&(t.uc=e,t.s())}function gw(t,e,o){var i,r,n=void 0!==o?o:t.c;return o=t.Ta(n),t.u&&n.c&&(e=(i=e)[0],t=oe(o,i),e=T(n=pe(n),t)?i:(i=rt(n),t[0]+=i*Math.ceil((n[0]-t[0])/i),o.bg(t,e))),i=e[0],n=e[1],t=e[2],(o=!(o.minZoom>i||i>o.maxZoom)&&(!(o=(r=o.G())?ee(o,r,i):o.a?o.a[i]:null)||p(o,n,t)))?e:null}function dw(t,e){Me.call(this,t),this.tile=e}function vw(t){cw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX}),this.tileLoadFunction=t.tileLoadFunction,this.tileUrlFunction=this.Fc?this.Fc.bind(this):pw,this.urls=null,t.urls?this.eb(t.urls):t.url&&this.jb(t.url),t.tileUrlFunction&&this.cb(t.tileUrlFunction)}function bw(t){vw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,extent:t.extent,logo:t.logo,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||xw,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=t.tileClass||ov,this.g={},this.v={},this.Sa=t.reprojectionErrorThreshold,this.I=!1}function mw(t,e,o,i,r,n,s){return r=(o=gw(t,e=[e,o,i],n))?t.tileUrlFunction(o,r,n):void 0,(r=new t.tileClass(e,void 0!==r?0:4,void 0!==r?r:"",t.crossOrigin,t.tileLoadFunction)).key=s,de(r,"change",t.Li,t),r}function ww(t,e,o,i,r,n){var s=t.Sb(e,o,i),a=t.uc;if(t.a.b.hasOwnProperty(s)){if((h=t.a.get(s)).key!=a){var p=h,h=mw(t,e,o,i,r,n,a);if(0==p.getState()?h.i=p.i:h.i=p,h.i){e=h.i,o=h;do{if(2==e.getState()){e.i=null;break}}while(1!=e.getState()&&0==e.getState()?o.i=e.i:o=e,e=o.i)}t.a.replace(s,h)}}else h=mw(t,e,o,i,r,n,a),t.a.set(s,h);return h}function xw(t,e){t.Y().src=e}function Sw(t){this.B=void 0!==t.hidpi&&t.hidpi,bw.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,tilePixelRatio:this.B?2:1,wrapX:void 0===t.wrapX||t.wrapX}),this.R=void 0!==t.culture?t.culture:"en-us",this.C=void 0!==t.maxZoom?t.maxZoom:-1,this.f=t.key,this.l=t.imagerySet,rw("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.l+"?uriScheme=https&include=ImageryProviders&key="+this.f,this.pa.bind(this),void 0,"jsonp")}(Au=tw.prototype).sd=function(t,e){var o=this.a,i=o.i;return this.pa!=i&&(this.g.length=0,o=o.j,this.c||"vector"==o||(this.c=Ye()),this.c&&"vector"==o&&(this.c=null)),this.pa=i,Km.prototype.sd.apply(this,arguments)},Au.Of=function(t,e,o,i,r,n,s,a){var p=t,h=this.a,l=e.pixelRatio,u=e.viewState.projection,c=h.i,f=h.get(pb)||null,y=p.o;if(y.Nd||y.mf!=c||y.Kg!=f){for(var g=0,d=p.a.length;g<d;++g){var v=p.c[p.a[g]];v.S=null,y.Nd=!1;var b,m,w=h.ha(),x=w.tileGrid,S=v.ta,M=v.a,P=(E=w.Ta(u)).Da(p.ta[0]),A=x.Da(v.ta[0]),E=et(E=E.Aa(p.v),S=x.Aa(S));for("tile-pixels"==M.a?(b=x=w.nb(),A=ts(A=rs(this.D,0,0,1/A*b,-1/A*b,0,-S[0],-S[3]),[E[0],E[3]]).concat(ts(A,[E[2],E[1]]))):(x=P,A=E,Xt(u,M)||(m=!0,v.ig(u))),y.Nd=!1,w=new Lv(0,A,x,w.l,h.c),A=qv(x,l),x=v.g,f&&f!==y.Kg&&x.sort(f),S=0,E=x.length;S<E;++S){b=x[S],m&&b.V().tb(M,u);var T=void 0;if((j=b.Lc())?T=j.call(b,P):(j=h.f)&&(T=j(b,P)),T){var j=A,C=w;if(T=!Array.isArray(T)?[T]:T){var L=!1;if(Array.isArray(T))for(var R=0,I=T.length;R<I;++R)L=Jv(C,b,T[R],j,this.Fi,this)||L;else L=Jv(C,b,T,j,this.Fi,this)||L;b=L}else b=!1;this.I=this.I||b,y.Nd=y.Nd||b}}Nv(w),v.c[p.ta.toString()]=w}y.mf=c,y.Kg=f}if(this.c){if(g=e,u=this.a,l=p.o,c=u.i,(h=ew[u.j])&&l.Lg!==c)for(l.Lg=c,v=(d=p.v)[0],l=g.pixelRatio,u=(P=u.ha()).tileGrid,c=(M=P.Ta(g.viewState.projection)).Da(v),f=P.nb(),p.j||(p.j=Ye()),y=p.j,g=P.Xd(v,l,g.viewState.projection),y.canvas.width=g[0],y.canvas.height=g[1],g=M.Aa(d),d=0,v=p.a.length;d<v;++d)w=(M=p.c[p.a[d]]).ta,m=l/c,P=Jn(this.D),"tile-pixels"==M.a.a?(m=u.Aa(w,this.l),os(P,A=l/f*(w=u.Da(w[0]))/c,A),is(P,Math.round((m[0]-g[0])/w*f),Math.round((g[3]-m[3])/w*f))):(os(P,m,-m),is(P,-g[0],-g[3])),M.c[p.ta.toString()].La(y,l,P,0,{},h);Km.prototype.Of.apply(this,arguments)}},Au.Ea=function(t,e,o,i,r){var n=e.viewState.resolution,s=e.viewState.rotation;o=null==o?0:o;var a=this.a,p={},h=this.g,l=a.ha();e=l.Ta(e.viewState.projection);for(var u=l.tileGrid,c=0,f=h.length;c<f;++c){var y=h[c],g=y.ta,d=A(g=e.Aa(g,this.l),o*n,d);if(T(d,t))for(var g=0,v=y.a.length;g<v;++g)var b,m="tile-pixels"===(w=y.c[y.a[g]]).a.a?(b=w.ta,m=ot(n=u.Aa(b,this.l)),n=l.nb(),b=u.Da(b[0])/n,[(t[0]-m[0])/b,(m[1]-t[1])/b]):t,w=w.c[y.ta],x=x||w.Ea(m,n,s,o,{},function(t){var e=G(t).toString();if(!(e in p))return p[e]=!0,i.call(r,t,a)})}return x},Au.Fi=function(){Uv(this)},Au.ef=function(t,e,o){var i=(l=this.a).ha(),r=ow[l.j];if(r)for(var n=e.pixelRatio,s=e.viewState.rotation,a=e.size,p=Math.round(n*a[0]/2),a=Math.round(n*a[1]/2),h=this.g,l=l.ha().nb(),u=i.tileGrid,i=i.Ta(e.viewState.projection),c=[],f=[],y=h.length-1;0<=y;--y){var g=h[y];if(5!=g.getState())for(var d=g.ta,v=i.Aa(d)[0]-i.Aa(g.v)[0],b=0,m=g.a.length;b<m;++b){var w,x,S,M,P,A=g.c[g.a[b]],E=A.ta[0],T=u.Da(E),j=A,C=e;for(is(C="tile-pixels"==j.a.a?(M=(w=this.a.ha()).tileGrid,P=j.ta,w=M.Da(P[0])/w.nb(),j=C.viewState,x=C.pixelRatio,S=j.resolution/x,P=M.Aa(P,this.l),M=j.center,P=ot(P),C=C.size,rs(this.D,Math.round(x*C[0]/2),Math.round(x*C[1]/2),w/S,w/S,j.rotation,(P[0]-M[0])/w,(M[1]-P[1])/w)):Yv(this,C,0),v*l/T,0),T=Fv(A=A.c[d.toString()],C),t.save(),t.globalAlpha=o.opacity,ds(t,-s,p,a),w=0,j=c.length;w<j;++w)x=c[w],E<f[w]&&(t.beginPath(),t.moveTo(T[0],T[1]),t.lineTo(T[2],T[3]),t.lineTo(T[4],T[5]),t.lineTo(T[6],T[7]),t.moveTo(x[6],x[7]),t.lineTo(x[4],x[5]),t.lineTo(x[2],x[3]),t.lineTo(x[0],x[1]),t.clip());A.La(t,n,C,s,{},r),t.restore(),c.push(T),f.push(E)}}Km.prototype.ef.apply(this,arguments)},e(iw,ab),(Au=iw.prototype).Fd=function(t){var e=null;return e="canvas"===t.U()?new tw(this):e},Au.Ud=function(){return this.get("preload")},Au.kd=function(){return this.get("useInterimTilesOnError")},Au.Bi=function(t){this.set("preload",t)},Au.Ci=function(t){this.set("useInterimTilesOnError",t)},e(nw,Qd),nw.prototype.ka=function(){1==this.state&&(this.yd.forEach(me),this.yd=null),Qd.prototype.ka.call(this)},nw.prototype.Y=function(){return this.v},nw.prototype.de=function(){var t,e,o,i,r,n=[];this.a.forEach(function(t){t&&2==t.getState()&&n.push({extent:this.c.Aa(t.ta),image:t.Y()})},this),this.a.length=0,n.length?(o=this.o[0],t="number"==typeof(e=this.j.gb(o))?e:e[0],e="number"==typeof e?e:e[1],o=this.j.Da(o),i=this.c.Da(this.g),r=this.j.Aa(this.o),this.v=Lm(t,e,this.S,i,this.c.G(),o,r,this.l,n,this.u,this.D),this.state=2):this.state=3,this.s()},nw.prototype.load=function(){var i;0==this.state&&(this.state=1,this.s(),i=0,this.yd=[],this.a.forEach(function(e){var o,t=e.getState();0!=t&&1!=t||(i++,o=de(e,"change",function(){var t=e.getState();2!=t&&3!=t&&4!=t||(me(o),--i||(this.yd.forEach(me),this.yd=null,this.de()))},this),this.yd.push(o))},this),this.a.forEach(function(t){0==t.getState()&&t.load()}),i||setTimeout(this.de.bind(this),0))},e(lw,Op),lw.prototype.fd=function(t){for(var e,o,i;uw(this);){if((e=(i=(o=this.a.Yc).ta[0].toString())in t)&&(o=o.ta,e=p(t[i],o[1],o[2])),e)break;Se(this.pop())}},e(cw,lb),(Au=cw.prototype).Ki=function(){return uw(this.a)},Au.fd=function(t,e){(t=this.Wd(t))&&t.fd(e)},Au.Wf=function(){return 0},Au.Sb=function(t,e,o){return t+"/"+e+"/"+o},Au.Zf=function(){return this.va},Au.ab=function(){return this.tileGrid},Au.Ta=function(t){return this.tileGrid||re(t)},Au.Wd=function(t){var e=this.c;return e&&!Xt(e,t)?null:this.a},Au.nb=function(){return this.$a},Au.Xd=function(t,e,o){return o=this.Ta(o),e=this.nb(e),t=X(o.gb(t),this.o),1==e?t:u(t,e,this.o)},Au.sa=function(){this.a.clear(),this.s()},Au.Ug=w,e(dw,Me),e(vw,cw),(Au=vw.prototype).pb=function(){return this.tileLoadFunction},Au.qb=function(){return this.tileUrlFunction},Au.rb=function(){return this.urls},Au.Li=function(t){switch((t=t.target).getState()){case 1:this.b(new dw("tileloadstart",t));break;case 2:this.b(new dw("tileloadend",t));break;case 3:this.b(new dw("tileloaderror",t))}},Au.vb=function(t){this.a.clear(),this.tileLoadFunction=t,this.s()},Au.cb=function(t,e){this.tileUrlFunction=t,void 0!==e?yw(this,e):this.s()},Au.jb=function(t){var e=this.urls=hw(t);this.cb(this.Fc?this.Fc.bind(this):sw(e,this.tileGrid),t)},Au.eb=function(t){var e=(this.urls=t).join("\n");this.cb(this.Fc?this.Fc.bind(this):sw(t,this.tileGrid),e)},Au.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(bw,vw),(Au=bw.prototype).Ki=function(){if(uw(this.a))return!0;for(var t in this.g)if(uw(this.g[t]))return!0;return!1},Au.fd=function(t,e){for(var o in t=this.Wd(t),this.a.fd(this.a==t?e:{}),this.g){o=this.g[o];o.fd(o==t?e:{})}},Au.Wf=function(t){return this.c&&t&&!Xt(this.c,t)?0:this.Xf()},Au.Xf=function(){return 0},Au.Zf=function(t){return!(this.c&&t&&!Xt(this.c,t))&&vw.prototype.Zf.call(this,t)},Au.Ta=function(t){var e=this.c;return!this.tileGrid||e&&!Xt(e,t)?((e=G(t).toString())in this.v||(this.v[e]=re(t)),this.v[e]):this.tileGrid},Au.Wd=function(t){var e=this.c;return!e||Xt(e,t)?this.a:((t=G(t).toString())in this.g||(this.g[t]=new lw(this.a.highWaterMark)),this.g[t])},Au.Nc=function(t,e,o,i,r){if(this.c&&r&&!Xt(this.c,r)){var n,s=this.Wd(r);if(o=[t,e,o],t=this.Sb.apply(this,o),s.b.hasOwnProperty(t)&&(n=s.get(t)),e=this.uc,n&&n.key==e)return n;var a=this.c,p=this.Ta(a),h=this.Ta(r),l=gw(this,o,r);return(i=new nw(a,p,r,h,o,l,this.nb(i),this.Xf(),function(t,e,o,i){return ww(this,t,e,o,i,a)}.bind(this),this.Sa,this.I)).key=e,n?(i.i=n,s.replace(t,i)):s.set(t,i),i}return ww(this,t,e,o,i,r)},Au.Pb=function(t){if(this.I!=t){for(var e in this.I=t,this.g)this.g[e].clear();this.s()}},Au.Qb=function(t,e){(t=Bt(t))&&((t=G(t).toString())in this.v||(this.v[t]=e))},e(Sw,bw);var Mw=new he({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});function Pw(t){var e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",o=void 0!==t.tileGrid?t.tileGrid:ne({extent:pe(e),maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX})}function Aw(t){this.C=t.account,this.B=t.map||"",this.f=t.config||{},this.l={},Pw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,maxZoom:void 0!==t.maxZoom?t.maxZoom:18,minZoom:t.minZoom,projection:t.projection,state:"loading",wrapX:t.wrapX}),Ew(this)}function Ew(t){var e,o,i=JSON.stringify(t.f);t.l[i]?Tw(t,t.l[i]):(e="https://"+t.C+".cartodb.com/api/v1/map",t.B&&(e+="/named/"+t.B),(o=new XMLHttpRequest).addEventListener("load",t.Dl.bind(t,i)),o.addEventListener("error",t.Cl.bind(t)),o.open("POST",e),o.setRequestHeader("Content-type","application/json"),o.send(JSON.stringify(t.f)))}function Tw(t,e){t.jb("https://"+e.cdn_url.https+"/"+t.C+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png")}function jw(t){fb.call(this,{attributions:t.attributions,extent:t.extent,logo:t.logo,projection:t.projection,wrapX:t.wrapX}),this.resolution=void 0,this.distance=void 0!==t.distance?t.distance:20,this.features=[],this.geometryFunction=t.geometryFunction||function(t){return O((t=t.V())instanceof hr,10),t},this.source=t.source,this.source.J("change",jw.prototype.sa,this)}function Cw(t){if(void 0!==t.resolution){t.features.length=0;for(var e=V(),o=t.distance*t.resolution,i=t.source.Xe(),r={},n=0,s=i.length;n<s;n++){var a=i[n];G(a).toString()in r||!(a=t.geometryFunction(a))||(k(a=a.X(),e),A(e,o,e),a=(a=t.source.Uf(e)).filter(function(t){return!((t=G(t).toString())in r)&&(r[t]=!0)}),t.features.push(function(t,e){for(var o=[0,0],i=e.length-1;0<=i;--i){var r=t.geometryFunction(e[i]);r?Ti(o,r.X()):e.splice(i,1)}return Ni(o,1/e.length),(t=new Ih(new hr(o))).set("features",e),t}(t,a)))}}}function Lw(t,e){var o=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&o.push(t+"="+encodeURIComponent(e[t]))});var i=o.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+i}function Rw(t){Fm.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.T=void 0===t.hidpi||t.hidpi,this.f=t.url,this.g=t.imageLoadFunction||Dm,this.v=t.params||{},this.M=null,this.l=[0,0],this.I=0,this.B=void 0!==t.ratio?t.ratio:1.5}function Iw(t){Fm.call(this,{projection:t.projection,resolutions:t.resolutions}),this.R=void 0!==t.crossOrigin?t.crossOrigin:null,this.l=void 0!==t.displayDpi?t.displayDpi:96,this.g=t.params||{},this.I=t.url,this.f=t.imageLoadFunction||Dm,this.T=void 0===t.hidpi||t.hidpi,this.pa=void 0!==t.metersPerUnit?t.metersPerUnit:1,this.v=void 0!==t.ratio?t.ratio:1,this.va=void 0!==t.useOverlay&&t.useOverlay,this.M=null,this.B=0}function Nw(t){var e=t.imageExtent,o=void 0!==t.crossOrigin?t.crossOrigin:null,i=t.imageLoadFunction||Dm;Fm.call(this,{attributions:t.attributions,logo:t.logo,projection:Bt(t.projection)}),this.M=new _d(e,void 0,1,this.j,t.url,o,i),this.f=t.imageSize||null,de(this.M,"change",this.o,this)}function Fw(t){Fm.call(this,{attributions:(t=t||{}).attributions,logo:t.logo,projection:t.projection,resolutions:t.resolutions}),this.pa=void 0!==t.crossOrigin?t.crossOrigin:null,this.g=t.url,this.v=t.imageLoadFunction||Dm,this.f=t.params||{},this.l=!0,Ow(this),this.T=t.serverType,this.va=void 0===t.hidpi||t.hidpi,this.M=null,this.B=[0,0],this.R=0,this.I=void 0!==t.ratio?t.ratio:1.5}Sw.prototype.T=function(){return this.f},Sw.prototype.fa=function(){return this.l},Sw.prototype.pa=function(t){var e,i,s,a,r,n,p;200!=t.statusCode||"OK"!=t.statusDescription||"ValidCredentials"!=t.authenticationResultCode||1!=t.resourceSets.length||1!=t.resourceSets[0].resources.length?cb(this,"error"):(-1==(e=t.brandLogoUri).indexOf("https")&&(e=e.replace("http","https")),i=t.resourceSets[0].resources[0],s=-1==this.C?i.zoomMax:this.C,a=ne({extent:t=pe(this.c),minZoom:i.zoomMin,maxZoom:s,tileSize:(i.imageWidth==i.imageHeight?i.imageWidth:[i.imageWidth,i.imageHeight])/this.nb()}),this.tileGrid=a,r=this.R,n=this.B,this.tileUrlFunction=aw(i.imageUrlSubdomains.map(function(t){var e=[0,0,0],o=i.imageUrl.replace("{subdomain}",t).replace("{culture}",r);return function(t){if(t)return qt(t[0],t[1],-t[2]-1,e),t=o,n&&(t+="&dpi=d1&device=mobile"),t.replace("{quadkey}",function(t){for(var e=t[0],o=Array(e),i=1<<e-1,r=0;r<e;++r){var n=48;t[1]&i&&(n+=1),t[2]&i&&(n+=2),o[r]=String.fromCharCode(n),i>>=1}return o.join("")}(e))}})),i.imageryProviders&&(p=Wt(Bt("EPSG:4326"),this.c),(t=i.imageryProviders.map(function(t){var e=t.attribution,n={};return t.coverageAreas.forEach(function(t){var e,o=t.zoomMin,i=Math.min(t.zoomMax,s);for(t=pt([(t=t.bbox)[1],t[0],t[3],t[2]],p),e=o;e<=i;++e){var r=e.toString(),o=ee(a,t,e);r in n?n[r].push(o):n[r]=[o]}}),new he({html:e,tileRanges:n})})).push(Mw),this.ua(t)),this.D=e,cb(this,"ready"))},e(Pw,bw),e(Aw,Pw),(Au=Aw.prototype).Kk=function(){return this.f},Au.tq=function(t){ht(this.f,t),Ew(this)},Au.Xp=function(t){this.f=t||{},Ew(this)},Au.Dl=function(t,e){if(!(e=e.target).status||200<=e.status&&e.status<300){try{var o=JSON.parse(e.responseText)}catch(t){return void cb(this,"error")}Tw(this,o),this.l[t]=o,cb(this,"ready")}else cb(this,"error")},Au.Cl=function(){cb(this,"error")},e(jw,fb),(Au=jw.prototype).$n=function(){return this.distance},Au.ao=function(){return this.source},Au.Yd=function(t,e,o){this.source.Yd(t,e,o),e!==this.resolution&&(this.clear(),this.resolution=e,Cw(this),this.cd(this.features))},Au.Yp=function(t){this.distance=t,this.sa()},Au.sa=function(){this.clear(),Cw(this),this.cd(this.features),fb.prototype.sa.call(this)},e(Rw,Fm),(Au=Rw.prototype).co=function(){return this.v},Au.Jc=function(t,e,o,i){if(void 0===this.f)return null;e=km(this,e),o=this.T?o:1;var r=this.M;if(r&&this.I==this.i&&r.resolution==e&&r.a==o&&N(r.G(),t))return r;ht(r={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.v);var n=((t=t.slice())[0]+t[2])/2,s=(t[1]+t[3])/2;1!=this.B&&(a=this.B*rt(t)/2,p=this.B*tt(t)/2,t[0]=n-a,t[1]=s-p,t[2]=n+a,t[3]=s+p);var a=e/o,p=Math.ceil(rt(t)/a),h=Math.ceil(tt(t)/a);return t[0]=n-a*p/2,t[2]=n+a*p/2,t[1]=s-a*h/2,t[3]=s+a*h/2,this.l[0]=p,this.l[1]=h,n=t,s=this.l,a=o,i=i.mb.split(":").pop(),r.SIZE=s[0]+","+s[1],r.BBOX=n.join(","),r.BBOXSR=i,r.IMAGESR=i,r.DPI=Math.round(90*a),(n=(i=this.f).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"))==i&&O(!1,50),r=Lw(n,r),this.M=new _d(t,e,o,this.j,r,this.R,this.g),this.I=this.i,de(this.M,"change",this.o,this),this.M},Au.bo=function(){return this.g},Au.eo=function(){return this.f},Au.fo=function(t){this.M=null,this.g=t,this.s()},Au.ho=function(t){t!=this.f&&(this.f=t,this.M=null,this.s())},Au.io=function(t){ht(this.v,t),this.M=null,this.s()},e(Iw,Fm),(Au=Iw.prototype).ko=function(){return this.g},Au.Jc=function(t,e,o){e=km(this,e),o=this.T?o:1;var i=this.M;if(i&&this.B==this.i&&i.resolution==e&&i.a==o&&N(i.G(),t))return i;1!=this.v&&at(t=t.slice(),this.v);var r,n,s,a,p,h,l,u=[rt(t)/e*o,tt(t)/e*o];return void 0!==this.I?(i=this.I,r=$(t),n=this.pa,s=rt(t),a=tt(t),p=u[0],h=u[1],l=.0254/this.l,u={OPERATION:this.va?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.l,SETDISPLAYWIDTH:Math.round(u[0]),SETDISPLAYHEIGHT:Math.round(u[1]),SETVIEWSCALE:p*a<h*s?s*n/(p*l):a*n/(h*l),SETVIEWCENTERX:r[0],SETVIEWCENTERY:r[1]},ht(u,this.g),i=Lw(i,u),de(i=new _d(t,e,o,this.j,i,this.R,this.f),"change",this.o,this)):i=null,this.M=i,this.B=this.i,i},Au.jo=function(){return this.f},Au.mo=function(t){ht(this.g,t),this.s()},Au.lo=function(t){this.M=null,this.f=t,this.s()},e(Nw,Fm),Nw.prototype.Jc=function(t){return nt(t,this.M.G())?this.M:null},Nw.prototype.o=function(t){var e,o,i,r,n;2==this.M.getState()&&(i=this.M.G(),e=this.M.Y(),n=this.f?(o=this.f[0],this.f[1]):(o=e.width,e.height),(i=Math.ceil(rt(i)/(tt(i)/n)))!=o&&(r=(i=Ye(i,n)).canvas,i.drawImage(e,0,0,o,n,0,0,r.width,r.height),this.M.Og(r))),Fm.prototype.o.call(this,t)},e(Fw,Fm);var kw=[101,101];function Dw(t,e,o,i,r,n){if(O(void 0!==t.g,9),n[t.l?"CRS":"SRS"]=r.mb,"STYLES"in t.f||(n.STYLES=""),1!=i)switch(t.T){case"geoserver":i=90*i+.5|0,n.FORMAT_OPTIONS="FORMAT_OPTIONS"in n?n.FORMAT_OPTIONS+";dpi:"+i:"dpi:"+i;break;case"mapserver":n.MAP_RESOLUTION=90*i;break;case"carmentaserver":case"qgis":n.DPI=90*i;break;default:O(!1,8)}return n.WIDTH=o[0],n.HEIGHT=o[1],o=r.b,e=t.l&&"ne"==o.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,n.BBOX=e.join(","),Lw(t.g,n)}function Ow(t){t.l=0<=Ei(t.f.VERSION||"1.3.0")}function Uw(t){var e=void 0!==(t=t||{}).attributions?t.attributions:[Gw];Pw.call(this,{attributions:e,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",opaque:void 0===t.opaque||t.opaque,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX})}(Au=Fw.prototype).so=function(t,e,o,i){if(void 0!==this.g){var r=Q(t,e,0,kw),n={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS};return ht(n,this.f,i),i=Math.floor((r[3]-t[1])/e),n[this.l?"I":"X"]=Math.floor((t[0]-r[0])/e),n[this.l?"J":"Y"]=i,Dw(this,r,kw,1,Bt(o),n)}},Au.uo=function(){return this.f},Au.Jc=function(t,e,o,i){if(void 0===this.g)return null;var r=(e=km(this,e))/(o=!(1==o||this.va&&void 0!==this.T)?1:o),n=$(t),s=Q(n,r,0,[Math.ceil(rt(t)/r),Math.ceil(tt(t)/r)]);return t=Q(n,r,0,[Math.ceil(this.I*rt(t)/r),Math.ceil(this.I*tt(t)/r)]),(n=this.M)&&this.R==this.i&&n.resolution==e&&n.a==o&&N(n.G(),s)?n:(ht(s={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),this.B[0]=Math.round(rt(t)/r),this.B[1]=Math.round(tt(t)/r),i=Dw(this,t,this.B,o,i,s),this.M=new _d(t,e,o,this.j,i,this.pa,this.v),this.R=this.i,de(this.M,"change",this.o,this),this.M)},Au.to=function(){return this.v},Au.vo=function(){return this.g},Au.wo=function(t){this.M=null,this.v=t,this.s()},Au.xo=function(t){t!=this.g&&(this.g=t,this.M=null,this.s())},Au.yo=function(t){ht(this.f,t),Ow(this),this.M=null,this.s()},e(Uw,Pw);var Gw=new he({html:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function Bw(t){this.B=null,this.va=void 0!==t.operationType?t.operationType:"pixel",this.Sa=void 0!==t.threads?t.threads:1,this.g=function(t){for(var e=t.length,o=Array(e),i=0;i<e;++i){var r=i,n=t[i],s=null;n instanceof cw?(n=new Qm({source:n}),s=new Km(n)):n instanceof Fm&&(n=new Zm({source:n}),s=new Tm(n)),o[r]=s}return o}(t.sources);for(var e=0,o=this.g.length;e<o;++e)de(this.g[e],"change",this.s,this);this.T=new xi(function(){return 1},this.s.bind(this));for(var o={},i=0,r=(e=this.g.map(function(t){return Xn(t.a)})).length;i<r;++i)o[G(e[i].layer)]=e[i];this.f=null,this.I={animate:!1,attributions:{},coordinateToPixelTransform:qn(),extent:null,focus:null,index:0,layerStates:o,layerStatesArray:e,logos:{},pixelRatio:1,pixelToCoordinateTransform:qn(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.T,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}},Fm.call(this,{}),t.operation&&this.v(t.operation,t.lib)}qa.df={},qa.df.Af=function(){},function(t){function a(u){var c=!0;try{new ImageData(10,10)}catch(t){c=!1}return function(t){var e=t.buffers,o=t.meta,i=t.width,r=t.height,n=e.length,s=e[0].byteLength;if(t.imageOps){for(s=Array(n),t=0;t<n;++t){var a=t,p=new Uint8ClampedArray(e[t]),h=i,l=r,p=c?new ImageData(p,h,l):{data:p,width:h,height:l};s[a]=p}i=u(s,o).data}else{for(i=new Uint8ClampedArray(s),r=Array(n),a=Array(n),t=0;t<n;++t)r[t]=new Uint8ClampedArray(e[t]),a[t]=[0,0,0,0];for(e=0;e<s;e+=4){for(t=0;t<n;++t)p=r[t],a[t][0]=p[e],a[t][1]=p[e+1],a[t][2]=p[e+2],a[t][3]=p[e+3];t=u(a,o),i[e]=t[0],i[e+1]=t[1],i[e+2]=t[2],i[e+3]=t[3]}}return i.buffer}}function e(t){this.Ff=!!t.$l;var e,o,i,r,n=[];if(e=0===t.threads?0:!this.Ff&&t.threads||1)for(var s=0;s<e;++s)n[s]=function(e,t){var o=Object.keys(e.lib||{}).map(function(t){return"var "+t+" = "+e.lib[t].toString()+";"}).concat(["var __minion__ = ("+a.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),o=URL.createObjectURL(new Blob(o,{type:"text/javascript"}));return(o=new Worker(o)).addEventListener("message",t),o}(t,this.gh.bind(this,s));else n[0]=(o=t,i=this.gh.bind(this,0),r=a(o.operation),{postMessage:function(t){setTimeout(function(){i({data:{buffer:r(t),meta:t.meta}})},0)}});this.qe=n,this.Ed=[],this.fk=t.rp||1/0,this.oe=0,this.bd={},this.Gf=null}var h=!0;try{new ImageData(10,10)}catch(t){h=!1}var l=document.createElement("canvas").getContext("2d");e.prototype.pp=function(t,e,o){this.dk({inputs:t,Qh:e,callback:o}),this.dh()},e.prototype.dk=function(t){for(this.Ed.push(t);this.Ed.length>this.fk;)this.Ed.shift().callback(null,null)},e.prototype.dh=function(){if(0===this.oe&&0<this.Ed.length){var t=this.Gf=this.Ed.shift(),e=t.inputs[0].width,o=t.inputs[0].height,i=t.inputs.map(function(t){return t.data.buffer}),r=this.qe.length;if(1===(this.oe=r))this.qe[0].postMessage({buffers:i,meta:t.Qh,imageOps:this.Ff,width:e,height:o},i);else for(var n=4*Math.ceil(t.inputs[0].data.length/4/r),s=0;s<r;++s){for(var a=s*n,p=[],h=0,l=i.length;h<l;++h)p.push(i[s].slice(a,a+n));this.qe[s].postMessage({buffers:p,meta:t.Qh,imageOps:this.Ff,width:e,height:o},p)}}},e.prototype.gh=function(t,e){this.Jq||(this.bd[t]=e.data,--this.oe,0===this.oe&&this.gk())},e.prototype.gk=function(){var t,e,o=this.Gf,i=this.qe.length;if(1===i)var r=new Uint8ClampedArray(this.bd[0].buffer),n=this.bd[0].meta;else for(var s=o.inputs[0].data.length,r=new Uint8ClampedArray(s),n=Array(s),s=4*Math.ceil(s/4/i),a=0;a<i;++a){var p=a*s;r.set(new Uint8ClampedArray(this.bd[a].buffer),p),n[a]=this.bd[a].meta}this.Gf=null,this.bd={},o.callback(null,(t=r,e=o.inputs[0].width,o=o.inputs[0].height,h?new ImageData(t,e,o):((e=l.createImageData(e,o)).data.set(t),e)),n),this.dh()},t.default={Af:e},t.Af=e}(qa.df=qa.df||{}),e(Bw,Fm),Bw.prototype.v=function(t,e){this.B=new qa.df.Af({operation:t,$l:"image"===this.va,rp:1,lib:e,threads:this.Sa}),this.s()},Bw.prototype.Y=function(t,e,o,i){o=!0;for(var r=0,n=this.g.length;r<n;++r)if("ready"!==(h=this.g[r].a.ha()).getState()){o=!1;break}if(!o)return null;if((o=ht({},this.I)).viewState=ht({},o.viewState),h=$(t),o.extent=t.slice(),o.focus=h,o.size[0]=Math.round(rt(t)/e),o.size[1]=Math.round(tt(t)/e),(r=o.viewState).center=h,r.projection=i,r.resolution=e,Si((this.l=o).tileQueue,16,16),this.f&&(i=this.f.resolution,o=this.f.G(),e===i&&Z(t,o)||(this.f=null)),!this.f||this.i!==this.R)t:{for(t=this.l,i=this.g.length,e=Array(i),o=0;o<i;++o){var s,a,p,h=this.g[o],r=t,n=t.layerStatesArray[o];if(!(h=h.sd(r,n)?(s=r.size[0],a=r.size[1],!Xw||(p=Xw.canvas).width!==s||p.height!==a?Xw=Ye(s,a):Xw.clearRect(0,0,s,a),h.S(r,n,Xw),Xw.getImageData(0,0,s,a)):null))break t;e[o]=h}i={},this.b(new Vw(Ww,t,i)),this.B.pp(e,i,this.pa.bind(this,t))}return this.f},Bw.prototype.pa=function(t,e,o,i){var r,n;!e&&o&&(e=t.extent,(r=t.viewState.resolution)===this.l.viewState.resolution&&Z(e,this.l.extent)&&(this.f?n=this.f.Y().getContext("2d"):(n=Ye(Math.round(rt(e)/r),Math.round(tt(e)/r)),this.f=new $d(e,r,1,this.j,n.canvas)),n.putImageData(o,0,0),this.s(),this.R=this.i,this.b(new Vw(Zw,t,i))))};var Xw=null;function Vw(t,e,o){Me.call(this,t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=o}e(Vw,Me),Bw.prototype.Jc=function(){return null};var Ww="beforeoperations",Zw="afteroperations";function Kw(t){var e=t.layer.indexOf("-"),e=Hw[-1==e?t.layer:t.layer.slice(0,e)],o=Yw[t.layer];Pw.call(this,{attributions:zw,cacheSize:t.cacheSize,crossOrigin:"anonymous",maxZoom:(null!=t.maxZoom?t:e).maxZoom,minZoom:(null!=t.minZoom?t:e).minZoom,opaque:o.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,url:void 0!==t.url?t.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+t.layer+"/{z}/{x}/{y}."+o.Lb,wrapX:t.wrapX})}e(Kw,Pw);var zw=[new he({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),Gw],Yw={terrain:{Lb:"jpg",opaque:!0},"terrain-background":{Lb:"jpg",opaque:!0},"terrain-labels":{Lb:"png",opaque:!1},"terrain-lines":{Lb:"png",opaque:!1},"toner-background":{Lb:"png",opaque:!0},toner:{Lb:"png",opaque:!0},"toner-hybrid":{Lb:"png",opaque:!1},"toner-labels":{Lb:"png",opaque:!1},"toner-lines":{Lb:"png",opaque:!1},"toner-lite":{Lb:"png",opaque:!0},watercolor:{Lb:"jpg",opaque:!0}},Hw={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}};function qw(t){bw.call(this,{attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.f=t.params||{},this.l=V(),yw(this,Jw(this))}function Jw(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function _w(t){cw.call(this,{opaque:!1,projection:t.projection,tileGrid:t.tileGrid,wrapX:void 0===t.wrapX||t.wrapX})}function $w(t,e,o){Qd.call(this,t,2),this.c=e,this.Ia=o,this.a=null}function Qw(t){var e;this.f=null,bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,projection:Bt("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX}),t.url?t.jsonp?rw(t.url,this.og.bind(this),this.Ve.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Ao.bind(this)),e.addEventListener("error",this.zo.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.og(t.tileJSON):O(!1,51)}function tx(t){var e;cw.call(this,{projection:Bt("EPSG:3857"),state:"loading"}),this.v=void 0===t.preemptive||t.preemptive,this.l=pw,this.g=void 0,this.f=t.jsonp||!1,t.url?this.f?rw(t.url,this.pg.bind(this),this.We.bind(this)):((e=new XMLHttpRequest).addEventListener("load",this.Eo.bind(this)),e.addEventListener("error",this.Do.bind(this)),e.open("GET",t.url),e.send()):t.tileJSON?this.pg(t.tileJSON):O(!1,51)}function ex(t,e,o,i,r,n){Qd.call(this,t,e),this.o=o,this.a=i,this.v=r,this.c=this.j=this.g=null,this.l=n}function ox(t){var e;0==t.state&&(t.state=1,t.l?rw(t.o,t.Ji.bind(t),t.De.bind(t)):((e=new XMLHttpRequest).addEventListener("load",t.Co.bind(t)),e.addEventListener("error",t.Bo.bind(t)),e.open("GET",t.o),e.send()))}function ix(t){var e=(t=t||{}).params||{};bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,opaque:!(!("TRANSPARENT"in e)||e.TRANSPARENT),projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.C=void 0!==t.gutter?t.gutter:0,this.f=e,this.l=!0,this.B=t.serverType,this.T=void 0===t.hidpi||t.hidpi,this.R="",nx(this),this.fa=V(),ax(this),yw(this,sx(this))}function rx(t,e,o,i,r,n,s){var a=t.urls;if(a){if(s.WIDTH=o[0],s.HEIGHT=o[1],s[t.l?"CRS":"SRS"]=n.mb,"STYLES"in t.f||(s.STYLES=""),1!=r)switch(t.B){case"geoserver":o=90*r+.5|0,s.FORMAT_OPTIONS="FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+";dpi:"+o:"dpi:"+o;break;case"mapserver":s.MAP_RESOLUTION=90*r;break;case"carmentaserver":case"qgis":s.DPI=90*r;break;default:O(!1,52)}return n=n.b,t.l&&"ne"==n.substr(0,2)&&(t=i[0],i[0]=i[1],i[1]=t,t=i[2],i[2]=i[3],i[3]=t),s.BBOX=i.join(","),Lw(1==a.length?a[0]:a[L((e[1]<<e[0])+e[2],a.length)],s)}}function nx(t){var e=0,o=[];if(t.urls)for(var i=0,r=t.urls.length;i<r;++i)o[e++]=t.urls[i];t.R=o.join("#")}function sx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function ax(t){t.l=0<=Ei(t.f.VERSION||"1.3.0")}function px(t,e,o,i,r,n,s,a,p,h,l,u,c,f){var y,g;Qd.call(this,t,e),this.j=null,this.o={Nd:!1,Kg:null,mf:-1,Lg:-1},this.c=h,this.a=[],this.u=o,this.v=n,this.g=[],this.l=[],n&&(y=p.Aa(n),g=p.Da(t[0]),a.Rf(y,a.tc(g),function(t){var e,o=et(y,a.Aa(t));.5<=rt(o)/g&&.5<=tt(o)/g&&(o=t.toString(),(e=h[o])||(e=s(t,l,u),e=h[o]=new c(t,null==e?4:0,null==e?"":e,i,r),this.l.push(de(e,"change",f))),e.j++,this.a.push(o))}.bind(this)))}function hx(t,e){t.Pg(tl(e,t.o,t.$o.bind(t),t.Zo.bind(t)))}function lx(t,e,o,i,r){Qd.call(this,t,e),this.j=0,this.o=i,this.g=null,this.c={},this.u=r,this.l=o}function ux(t){vw.call(this,{attributions:t.attributions,cacheSize:void 0!==t.cacheSize?t.cacheSize:128,extent:t.extent,logo:t.logo,opaque:!1,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction||hx,tileUrlFunction:t.tileUrlFunction,tilePixelRatio:t.tilePixelRatio,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX}),this.g=t.format||null,this.v={},this.l=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass||lx,this.f={},this.tileGrid||(this.tileGrid=this.Ta(Bt(t.projection||"EPSG:3857")))}function cx(t){this.o=t.matrixIds,Jt.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})}function fx(t,e,o){var r=[],n=[],s=[],a=[],p=[],h=void 0!==o?o:[],l=(o=Bt(t.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))).sc(),u="ne"==o.b.substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){var t,o,i;(t=!(0<h.length)||b(h,function(t){return e.Identifier==t.TileMatrix}))&&(n.push(e.Identifier),t=28e-5*e.ScaleDenominator/l,o=e.TileWidth,i=e.TileHeight,u?s.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):s.push(e.TopLeftCorner),r.push(t),a.push(o==i?o:[o,i]),p.push([e.MatrixWidth,-e.MatrixHeight]))}),new cx({extent:e,origins:s,resolutions:r,matrixIds:n,tileSizes:a,sizes:p})}function yx(t){this.fa=void 0!==t.version?t.version:"1.0.0",this.C=void 0!==t.format?t.format:"image/jpeg",this.f=t.dimensions||{},this.B=t.layer,this.l=t.matrixSet,this.R=t.style;var e=t.urls;void 0===e&&void 0!==t.url&&(e=hw(t.url));var i=this.T=void 0!==t.requestEncoding?t.requestEncoding:"KVP",r=t.tileGrid,o={layer:this.B,style:this.R,tilematrixset:this.l};"KVP"==i&&ht(o,{Service:"WMTS",Request:"GetTile",Version:this.fa,Format:this.C});var n=this.f,s=e&&0<e.length?aw(e.map(function(e){return e="KVP"==i?Lw(e,o):e.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in o?o[e.toLowerCase()]:t}),function(t){if(t){var o={TileMatrix:r.o[t[0]],TileCol:t[1],TileRow:-t[2]-1};return ht(o,n),t=e,"KVP"==i?Lw(t,o):t.replace(/\{(\w+?)\}/g,function(t,e){return o[e]})}}})):pw;bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:r,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:s,urls:e,wrapX:void 0!==t.wrapX&&t.wrapX}),yw(this,gx(this))}function gx(t){var e,o=0,i=[];for(e in t.f)i[o++]=e+"-"+t.f[e];return i.join("/")}function dx(t){var e=(t=t||{}).size,o=e[0],i=e[1],n=[],r=256;switch(void 0!==t.tierSizeCalculation?t.tierSizeCalculation:bx){case bx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),r+=r;break;case mx:for(;r<o||r<i;)n.push([Math.ceil(o/r),Math.ceil(i/r)]),o>>=1,i>>=1;break;default:O(!1,53)}n.push([1,1]),n.reverse();for(var r=[1],s=[0],i=1,o=n.length;i<o;i++)r.push(1<<i),s.push(n[i-1][0]*n[i-1][1]+s[i-1]);r.reverse(),e=new Jt({extent:e=[0,-e[1],e[0],0],origin:ot(e),resolutions:r}),(r=t.url)&&-1==r.indexOf("{TileGroup}")&&(r+="{TileGroup}/{z}-{x}-{y}.jpg"),r=aw((r=hw(r)).map(function(r){return function(t){if(t){var e=t[0],o=t[1],i={z:e,x:o,y:t=-t[2]-1,TileGroup:"TileGroup"+((o+t*n[e][0]+s[e])/256|0)};return r.replace(/\{(\w+?)\}/g,function(t,e){return i[e]})}}})),bw.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,logo:t.logo,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:vx,tileGrid:e,tileUrlFunction:r})}function vx(t,e,o,i,r){ov.call(this,t,e,o,i,r),this.a=null}e(qw,bw),qw.prototype.C=function(){return this.f},qw.prototype.nb=function(t){return t},qw.prototype.Fc=function(t,e,o){var i=this.tileGrid;if(!((i=i||this.Ta(o)).b.length<=t[0])){var r=i.Aa(t,this.l),n=X(i.gb(t[0]),this.o);1!=e&&(n=u(n,e,this.o)),ht(i={F:"image",FORMAT:"PNG32",TRANSPARENT:!0},this.f);var s=this.urls;return t=s?(o=o.mb.split(":").pop(),i.SIZE=n[0]+","+n[1],i.BBOX=r.join(","),i.BBOXSR=o,i.IMAGESR=o,i.DPI=Math.round(i.DPI?i.DPI*e:90*e),Lw(t=(1==s.length?s[0]:s[L((t[1]<<t[0])+t[2],s.length)]).replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),i)):void 0}},qw.prototype.B=function(t){ht(this.f,t),yw(this,Jw(this))},e(_w,cw),_w.prototype.Nc=function(t,e,o){var i=this.Sb(t,e,o);if(this.a.b.hasOwnProperty(i))return this.a.get(i);var r=X(this.tileGrid.gb(t)),r=new $w(t=[t,e,o],r,e=(e=gw(this,t))?gw(this,e).toString():"");return this.a.set(i,r),r},e($w,Qd),$w.prototype.Y=function(){if(this.a)return this.a;var t=this.c,e=Ye(t[0],t[1]);return e.strokeStyle="black",e.strokeRect(.5,.5,t[0]+.5,t[1]+.5),e.fillStyle="black",e.textAlign="center",e.textBaseline="middle",e.font="24px sans-serif",e.fillText(this.Ia,t[0]/2,t[1]/2),this.a=e.canvas},$w.prototype.load=function(){},e(Qw,bw),(Au=Qw.prototype).Ao=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.Ve()}this.og(e)}else this.Ve()},Au.zo=function(){this.Ve()},Au.pl=function(){return this.f},Au.og=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;if(this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.tileUrlFunction=sw(t.tiles,i),void 0!==t.attribution&&!this.j){o=void 0!==e?e:o.G(),e={};for(;r<=n;++r)e[r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}this.f=t,cb(this,"ready")},Au.Ve=function(){cb(this,"error")},e(tx,cw),(Au=tx.prototype).Eo=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.We()}this.pg(e)}else this.We()},Au.Do=function(){this.We()},Au.ml=function(){return this.g},Au.zk=function(t,e,o,i,r){var n,s,a;this.tileGrid?(e=this.tileGrid.Be(t,e),e=this.Nc(e[0],e[1],e[2],1,this.c),n=t,s=o,a=i,t=r,0==e.state&&!0===t?(ve(e,"change",function(){s.call(a,this.getData(n))},e),ox(e)):!0===t?setTimeout(function(){s.call(a,this.getData(n))}.bind(e),0):s.call(a,e.getData(n))):!0===r?setTimeout(function(){o.call(i,null)},0):o.call(i,null)},Au.We=function(){cb(this,"error")},Au.pg=function(t){var e,o=Bt("EPSG:4326"),i=this.c;t.bounds&&(n=Wt(o,i),e=pt(t.bounds,n));var r=t.minzoom||0,n=t.maxzoom||22;this.tileGrid=i=ne({extent:pe(i),maxZoom:n,minZoom:r}),this.g=t.template;var s=t.grids;if(s){if(this.l=sw(s,i),void 0!==t.attribution){for(o=void 0!==e?e:o.G(),e={};r<=n;++r)e[s=r.toString()]=[ee(i,o,r)];this.ua([new he({html:t.attribution,tileRanges:e})])}cb(this,"ready")}else cb(this,"error")},Au.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(e=gw(this,t=[t,e,o],r),i=new ex(t,void 0!==(i=this.l(e,i,r))?0:4,void 0!==i?i:"",this.tileGrid.Aa(t),this.v,this.f),this.a.set(n,i),i)},Au.Ug=function(t,e,o){t=this.Sb(t,e,o),this.a.b.hasOwnProperty(t)&&this.a.get(t)},e(ex,Qd),(Au=ex.prototype).Y=function(){return null},Au.getData=function(t){if(!this.g||!this.j)return null;var e=this.g[Math.floor((1-(t[1]-this.a[1])/(this.a[3]-this.a[1]))*this.g.length)];return"string"!=typeof e?null:(93<=(e=e.charCodeAt(Math.floor((t[0]-this.a[0])/(this.a[2]-this.a[0])*e.length)))&&e--,35<=e&&e--,t=null,(e-=32)in this.j&&(e=this.j[e],t=this.c&&e in this.c?this.c[e]:e),t)},Au.bb=function(){return this.o},Au.De=function(){this.state=3,this.s()},Au.Ji=function(t){this.g=t.grid,this.j=t.keys,this.c=t.data,this.state=4,this.s()},Au.Co=function(t){if(!(t=t.target).status||200<=t.status&&t.status<300){try{var e=JSON.parse(t.responseText)}catch(t){return void this.De()}this.Ji(e)}else this.De()},Au.Bo=function(){this.De()},Au.load=function(){this.v&&ox(this)},e(ix,bw),(Au=ix.prototype).Fo=function(t,e,o,i){if(o=Bt(o),e=(s=(s=this.tileGrid)||this.Ta(o)).Be(t,e),!(s.b.length<=e[0])){var r=s.Da(e[0]),n=s.Aa(e,this.fa),s=X(s.gb(e[0]),this.o),a=this.C;return a&&(s=l(s,a,this.o),n=A(n,r*a,n)),a={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.f.LAYERS},ht(a,this.f,i),i=Math.floor((n[3]-t[1])/r),a[this.l?"I":"X"]=Math.floor((t[0]-n[0])/r),a[this.l?"J":"Y"]=i,rx(this,e,s,n,1,o,a)}},Au.Xf=function(){return this.C},Au.Sb=function(t,e,o){return this.R+bw.prototype.Sb.call(this,t,e,o)},Au.Go=function(){return this.f},Au.nb=function(t){return this.T&&void 0!==this.B?t:1},Au.Fc=function(t,e,o){if(!((n=(n=this.tileGrid)||this.Ta(o)).b.length<=t[0])){1==e||this.T&&void 0!==this.B||(e=1);var i=n.Da(t[0]),r=n.Aa(t,this.fa),n=X(n.gb(t[0]),this.o),s=this.C;return s&&(n=l(n,s,this.o),r=A(r,i*s,r)),1!=e&&(n=u(n,e,this.o)),ht(i={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},this.f),rx(this,t,n,r,e,o,i)}},Au.eb=function(t){bw.prototype.eb.call(this,t),nx(this)},Au.Ho=function(t){ht(this.f,t),nx(this),ax(this),yw(this,sx(this))},e(px,Qd),px.prototype.ka=function(){for(var t=0,e=this.a.length;t<e;++t){var o=this.a[t],i=this.c[o];i.j--,i.j||(delete this.c[o],Se(i))}this.a.length=0,this.c=null,1==this.state&&(this.g.forEach(me),this.g.length=0),this.i&&Se(this.i),this.state=5,this.s(),this.l.forEach(me),this.l.length=0,Qd.prototype.ka.call(this)},px.prototype.Y=function(){return-1==this.o.Lg?null:this.j.canvas},px.prototype.bb=function(){return this.a.join("/")+"/"+this.u},px.prototype.load=function(){var r=0,n=!1;0==this.state&&ev(this,1),1==this.state&&this.a.forEach(function(e){var o,i=this.c[e];0==i.state?(i.Pg(this.S),i.load()):3==i.state?n=!0:4==i.state&&s(this.a,e),1==i.state&&(o=de(i,"change",function(){var t=i.getState();2!=t&&3!=t||(--r,me(o),s(this.g,o),3==t&&(s(this.a,e),n=!0),r||ev(this,0<this.a.length?2:3))}.bind(this)),this.g.push(o),++r)}.bind(this)),r||setTimeout(function(){ev(this,0<this.a.length?2:n?3:4)}.bind(this),0)},e(lx,Qd),(Au=lx.prototype).ka=function(){this.g=null,this.c={},this.state=5,this.s(),Qd.prototype.ka.call(this)},Au.Lm=function(){return this.o},Au.Km=function(){return this.g},Au.bb=function(){return this.l},Au.Mm=function(){return this.a},Au.load=function(){0==this.state&&(ev(this,1),this.u(this,this.l),this.v(null,NaN,null))},Au.$o=function(t,e){this.ig(e),this.mj(t)},Au.Zo=function(){ev(this,3)},Au.mj=function(t){this.g=t,ev(this,2)},Au.ig=function(t){this.a=t},Au.Pg=function(t){this.v=t},e(ux,vw),ux.prototype.Nc=function(t,e,o,i,r){var n=this.Sb(t,e,o);return this.a.b.hasOwnProperty(n)?this.a.get(n):(i=new px(t=[t,e,o],void 0!==(o=(e=gw(this,t,r))?this.tileUrlFunction(e,i,r):void 0)?0:4,void 0!==o?o:"",this.g,this.tileLoadFunction,e,this.tileUrlFunction,this.tileGrid,this.Ta(r),this.v,i,r,this.tileClass,this.Li.bind(this)),this.a.set(n,i),i)},ux.prototype.Ta=function(t){var e=t.mb,o=this.f[e];return o||(o=this.tileGrid,o=this.f[e]=ae(t,void 0,o?o.gb(o.minZoom):void 0)),o},ux.prototype.nb=function(t){return null==t?vw.prototype.nb.call(this,t):t},ux.prototype.Xd=function(t,e,o){return t=X(this.Ta(o).gb(t)),[Math.round(t[0]*e),Math.round(t[1]*e)]},e(cx,Jt),cx.prototype.l=function(){return this.o},e(yx,bw),(Au=yx.prototype).Mk=function(){return this.f},Au.Io=function(){return this.C},Au.Jo=function(){return this.B},Au.$k=function(){return this.l},Au.kl=function(){return this.T},Au.Ko=function(){return this.R},Au.rl=function(){return this.fa},Au.uq=function(t){ht(this.f,t),yw(this,gx(this))},e(dx,bw),e(vx,ov),vx.prototype.Y=function(){if(this.a)return this.a;var t=ov.prototype.Y.call(this);if(2!=this.state)return t;if(256==t.width&&256==t.height)return this.a=t;var e=Ye(256,256);return e.drawImage(t,0,0),this.a=e.canvas};var bx="default",mx="truncated";function wx(t,e){this.b=e,this.a=[{x:0,y:0,width:t,height:t}],this.c={},this.i=Ye(t,t),this.f=this.i.canvas}function xx(t,e,o,i){e=[e,1],0<o.width&&0<o.height&&e.push(o),0<i.width&&0<i.height&&e.push(i),t.a.splice.apply(t.a,e)}function Sx(t){t=t||{},this.a=void 0!==t.initialSize?t.initialSize:256,this.i=void 0!==t.maxSize?t.maxSize:void 0!==Wo?Wo:2048,this.b=void 0!==t.space?t.space:1,this.f=[new wx(this.a,this.b)],this.c=this.a,this.g=[new wx(this.c,this.b)]}function Mx(t,e,o,i,r,n,s){for(var a=e?t.g:t.f,p=0,h=a.length;p<h;++p){var l=a[p];if(l=l.add(o,i,r,n,s))return l;l||p!==h-1||(e?(l=Math.min(2*t.c,t.i),t.c=l):(l=Math.min(2*t.a,t.i),t.a=l),l=new wx(l,t.b),a.push(l),++h)}return null}return wx.prototype.get=function(t){return this.c[t]||null},wx.prototype.add=function(t,e,o,i,r){for(var n=0,s=this.a.length;n<s;++n){var a=this.a[n];if(a.width>=e+this.b&&a.height>=o+this.b)return s={offsetX:a.x+this.b,offsetY:a.y+this.b,image:this.f},this.c[t]=s,i.call(r,this.i,a.x+this.b,a.y+this.b),t=n,e+=this.b,i=o+this.b,e=a.width-e>a.height-i?(o={x:a.x+e,y:a.y,width:a.width-e,height:a.height},{x:a.x,y:a.y+i,width:e,height:a.height-i}):(o={x:a.x+e,y:a.y,width:a.width-e,height:i},{x:a.x,y:a.y+i,width:a.width,height:a.height-i}),xx(this,t,o,e),s}return null},Sx.prototype.add=function(t,e,o,i,r,n){return!(e+this.b>this.i||o+this.b>this.i)&&(i=Mx(this,!1,t,e,o,i,n))?(t=Mx(this,!0,t,e,o,r||w,n),{offsetX:i.offsetX,offsetY:i.offsetY,image:i.image,Zl:t.image}):null},t("ol.Attribution",he),he.prototype.getHTML=he.prototype.i,t("ol.Collection",Ne),Ne.prototype.extend=Ne.prototype.fg,Ne.prototype.getArray=Ne.prototype.tm,Ne.prototype.getLength=Ne.prototype.dc,Ne.prototype.insertAt=Ne.prototype.He,Ne.prototype.removeAt=Ne.prototype.Hg,Ne.prototype.setAt=Ne.prototype.Wp,t("ol.color.asArray",Be),t("ol.color.asString",Xe),t("ol.colorlike.asColorLike",ze),t("ol.control.defaults",ao),t("ol.coordinate.add",Ti),t("ol.coordinate.createStringXY",function(e){return function(t){return Oi(t,e)}}),t("ol.coordinate.format",Li),t("ol.coordinate.rotate",Ii),t("ol.coordinate.toStringHDMS",function(t,e){return t?Ci("NS",t[1],e)+" "+Ci("EW",t[0],e):""}),t("ol.coordinate.toStringXY",Oi),t("ol.DeviceOrientation",gh),gh.prototype.getAlpha=gh.prototype.Fk,gh.prototype.getBeta=gh.prototype.Ik,gh.prototype.getGamma=gh.prototype.Ok,gh.prototype.getHeading=gh.prototype.um,gh.prototype.getTracking=gh.prototype.Th,gh.prototype.setTracking=gh.prototype.gg,t("ol.easing.easeIn",to),t("ol.easing.easeOut",eo),t("ol.easing.inAndOut",oo),t("ol.easing.linear",io),t("ol.easing.upAndDown",function(t){return t<.5?oo(2*t):1-oo(2*(t-.5))}),t("ol.extent.boundingExtent",P),t("ol.extent.buffer",A),t("ol.extent.containsCoordinate",T),t("ol.extent.containsExtent",N),t("ol.extent.containsXY",j),t("ol.extent.createEmpty",V),t("ol.extent.equals",Z),t("ol.extent.extend",K),t("ol.extent.getArea",q),t("ol.extent.getBottomLeft",J),t("ol.extent.getBottomRight",_),t("ol.extent.getCenter",$),t("ol.extent.getHeight",tt),t("ol.extent.getIntersection",et),t("ol.extent.getSize",function(t){return[t[2]-t[0],t[3]-t[1]]}),t("ol.extent.getTopLeft",ot),t("ol.extent.getTopRight",it),t("ol.extent.getWidth",rt),t("ol.extent.intersects",nt),t("ol.extent.isEmpty",st),t("ol.extent.applyTransform",pt),t("ol.Feature",Ih),Ih.prototype.getGeometry=Ih.prototype.V,Ih.prototype.getId=Ih.prototype.wm,Ih.prototype.getGeometryName=Ih.prototype.Qk,Ih.prototype.getStyle=Ih.prototype.xm,Ih.prototype.getStyleFunction=Ih.prototype.Lc,Ih.prototype.setGeometry=Ih.prototype.Ra,Ih.prototype.setStyle=Ih.prototype.hg,Ih.prototype.setId=Ih.prototype.jc,Ih.prototype.setGeometryName=Ih.prototype.Tc,t("ol.featureloader.xhr",el),t("ol.Geolocation",Xd),Xd.prototype.getAccuracy=Xd.prototype.Dk,Xd.prototype.getAccuracyGeometry=Xd.prototype.Ek,Xd.prototype.getAltitude=Xd.prototype.Gk,Xd.prototype.getAltitudeAccuracy=Xd.prototype.Hk,Xd.prototype.getHeading=Xd.prototype.ym,Xd.prototype.getPosition=Xd.prototype.zm,Xd.prototype.getProjection=Xd.prototype.Uh,Xd.prototype.getSpeed=Xd.prototype.ll,Xd.prototype.getTracking=Xd.prototype.Vh,Xd.prototype.getTrackingOptions=Xd.prototype.Gh,Xd.prototype.setProjection=Xd.prototype.Wh,Xd.prototype.setTracking=Xd.prototype.Ke,Xd.prototype.setTrackingOptions=Xd.prototype.wj,t("ol.Graticule",Kd),Kd.prototype.getMap=Kd.prototype.Cm,Kd.prototype.getMeridians=Kd.prototype.al,Kd.prototype.getParallels=Kd.prototype.hl,t("ol.has.DEVICE_PIXEL_RATIO",Lo),t("ol.has.CANVAS",Io),t("ol.has.DEVICE_ORIENTATION",No),t("ol.has.GEOLOCATION",Fo),t("ol.has.TOUCH",ko),t("ol.has.WEBGL",Xo),_d.prototype.getImage=_d.prototype.Y,ov.prototype.getImage=ov.prototype.Y,t("ol.inherits",e),t("ol.interaction.defaults",Gn),t("ol.Kinetic",kr),t("ol.loadingstrategy.all",hb),t("ol.loadingstrategy.bbox",function(t){return[t]}),t("ol.loadingstrategy.tile",function(i){return function(t,e){e=i.tc(e),t=ee(i,t,e);var o=[];for((e=[e,0,0])[1]=t.ca;e[1]<=t.$;++e[1])for(e[2]=t.da;e[2]<=t.ia;++e[2])o.push(i.Aa(e));return o}}),t("ol.Map",Wp),Wp.prototype.addControl=Wp.prototype.kk,Wp.prototype.addInteraction=Wp.prototype.lk,Wp.prototype.addLayer=Wp.prototype.ih,Wp.prototype.addOverlay=Wp.prototype.jh,Wp.prototype.forEachFeatureAtPixel=Wp.prototype.we,Wp.prototype.forEachLayerAtPixel=Wp.prototype.Im,Wp.prototype.hasFeatureAtPixel=Wp.prototype.Yl,Wp.prototype.getEventCoordinate=Wp.prototype.Tf,Wp.prototype.getEventPixel=Wp.prototype.xe,Wp.prototype.getTarget=Wp.prototype.ag,Wp.prototype.getTargetElement=Wp.prototype.jd,Wp.prototype.getCoordinateFromPixel=Wp.prototype.Wa,Wp.prototype.getControls=Wp.prototype.Lk,Wp.prototype.getOverlays=Wp.prototype.fl,Wp.prototype.getOverlayById=Wp.prototype.el,Wp.prototype.getInteractions=Wp.prototype.Sk,Wp.prototype.getLayerGroup=Wp.prototype.Kc,Wp.prototype.getLayers=Wp.prototype.Xh,Wp.prototype.getPixelFromCoordinate=Wp.prototype.Ja,Wp.prototype.getSize=Wp.prototype.Ob,Wp.prototype.getView=Wp.prototype.Z,Wp.prototype.getViewport=Wp.prototype.sl,Wp.prototype.renderSync=Wp.prototype.Tp,Wp.prototype.removeControl=Wp.prototype.Mp,Wp.prototype.removeInteraction=Wp.prototype.Np,Wp.prototype.removeLayer=Wp.prototype.Pp,Wp.prototype.removeOverlay=Wp.prototype.Qp,Wp.prototype.setLayerGroup=Wp.prototype.qj,Wp.prototype.setSize=Wp.prototype.Qg,Wp.prototype.setTarget=Wp.prototype.Le,Wp.prototype.setView=Wp.prototype.iq,Wp.prototype.updateSize=Wp.prototype.Ad,t("ol.Object",je),je.prototype.getKeys=je.prototype.O,je.prototype.getProperties=je.prototype.N,je.prototype.setProperties=je.prototype.H,je.prototype.unset=je.prototype.P,t("ol.Observable",Te),t("ol.Observable.unByKey",function(t){if(Array.isArray(t))for(var e=0,o=t.length;e<o;++e)me(t[e]);else me(t)}),Te.prototype.changed=Te.prototype.s,Te.prototype.dispatchEvent=Te.prototype.b,Te.prototype.getRevision=Te.prototype.L,Te.prototype.on=Te.prototype.J,Te.prototype.un=Te.prototype.K,t("ol.Overlay",Zp),Zp.prototype.getElement=Zp.prototype.Rd,Zp.prototype.getId=Zp.prototype.Jm,Zp.prototype.getMap=Zp.prototype.Me,Zp.prototype.getOffset=Zp.prototype.Dh,Zp.prototype.getPosition=Zp.prototype.Yh,Zp.prototype.getPositioning=Zp.prototype.Eh,Zp.prototype.setElement=Zp.prototype.lj,Zp.prototype.setOffset=Zp.prototype.rj,Zp.prototype.setPosition=Zp.prototype.Ne,Zp.prototype.setPositioning=Zp.prototype.uj,t("ol.proj.METERS_PER_UNIT",gt),t("ol.proj.setProj4",function(t){dt=t}),t("ol.proj.getPointResolution",Ft),t("ol.proj.addEquivalentProjections",kt),t("ol.proj.addProjection",Dt),t("ol.proj.addCoordinateTransforms",Ut),t("ol.proj.fromLonLat",function(t,e){return zt(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}),t("ol.proj.toLonLat",function(t,e){return zt(t,void 0!==e?e:"EPSG:3857","EPSG:4326")}),t("ol.proj.get",Bt),t("ol.proj.equivalent",Xt),t("ol.proj.getTransform",Vt),t("ol.proj.transform",zt),t("ol.proj.transformExtent",Yt),t("ol.render.toContext",function(t,e){var o=t.canvas,i=e||{};return e=i.pixelRatio||Lo,(i=i.size)&&(o.width=i[0]*e,o.height=i[1]*e,o.style.width=i[0]+"px",o.style.height=i[1]+"px"),new bs(t,e,o=[0,0,o.width,o.height],i=os(qn(),e,e),0)}),t("ol.size.toSize",X),t("ol.Sphere",ft),ft.prototype.geodesicArea=ft.prototype.a,ft.prototype.haversineDistance=ft.prototype.b,Qd.prototype.getTileCoord=Qd.prototype.f,t("ol.tilegrid.createXYZ",ne),lx.prototype.getFormat=lx.prototype.Lm,lx.prototype.getFeatures=lx.prototype.Km,lx.prototype.getProjection=lx.prototype.Mm,lx.prototype.setFeatures=lx.prototype.mj,lx.prototype.setProjection=lx.prototype.ig,lx.prototype.setLoader=lx.prototype.Pg,t("ol.View",Er),Er.prototype.getAnimating=Er.prototype.Ic,Er.prototype.getInteracting=Er.prototype.Rk,Er.prototype.cancelAnimations=Er.prototype.ed,Er.prototype.constrainCenter=Er.prototype.Ec,Er.prototype.getCenter=Er.prototype.wa,Er.prototype.calculateExtent=Er.prototype.dd,Er.prototype.getMaxResolution=Er.prototype.Nm,Er.prototype.getMinResolution=Er.prototype.Pm,Er.prototype.getMaxZoom=Er.prototype.Om,Er.prototype.setMaxZoom=Er.prototype.eq,Er.prototype.getMinZoom=Er.prototype.Qm,Er.prototype.setMinZoom=Er.prototype.fq,Er.prototype.getProjection=Er.prototype.Rm,Er.prototype.getResolution=Er.prototype.Pa,Er.prototype.getResolutions=Er.prototype.Sm,Er.prototype.getResolutionForExtent=Er.prototype.ze,Er.prototype.getRotation=Er.prototype.Qa,Er.prototype.getZoom=Er.prototype.Hh,Er.prototype.getZoomForResolution=Er.prototype.Ce,Er.prototype.fit=Er.prototype.Qf,Er.prototype.centerOn=Er.prototype.uk,Er.prototype.setCenter=Er.prototype.ob,Er.prototype.setResolution=Er.prototype.Vc,Er.prototype.setRotation=Er.prototype.Oe,Er.prototype.setZoom=Er.prototype.lq,t("ol.xml.getAllTextContent",kh),t("ol.xml.parse",Uh),ea.prototype.getGL=ea.prototype.Wo,ea.prototype.useProgram=ea.prototype.Qc,t("ol.tilegrid.TileGrid",Jt),Jt.prototype.forEachTileCoord=Jt.prototype.Rf,Jt.prototype.getMaxZoom=Jt.prototype.Ti,Jt.prototype.getMinZoom=Jt.prototype.Ui,Jt.prototype.getOrigin=Jt.prototype.Pc,Jt.prototype.getResolution=Jt.prototype.Da,Jt.prototype.getResolutions=Jt.prototype.Vi,Jt.prototype.getTileCoordExtent=Jt.prototype.Aa,Jt.prototype.getTileCoordForCoordAndResolution=Jt.prototype.Be,Jt.prototype.getTileCoordForCoordAndZ=Jt.prototype.bg,Jt.prototype.getTileSize=Jt.prototype.gb,Jt.prototype.getZForResolution=Jt.prototype.tc,t("ol.tilegrid.WMTS",cx),cx.prototype.getMatrixIds=cx.prototype.l,t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",fx),t("ol.style.AtlasManager",Sx),t("ol.style.Circle",Ph),Ph.prototype.setRadius=Ph.prototype.Uc,t("ol.style.Fill",Ah),Ah.prototype.getColor=Ah.prototype.i,Ah.prototype.setColor=Ah.prototype.c,t("ol.style.Icon",qc),qc.prototype.getAnchor=qc.prototype.Hc,qc.prototype.getColor=qc.prototype.Lo,qc.prototype.getImage=qc.prototype.Y,qc.prototype.getOrigin=qc.prototype.Oc,qc.prototype.getSrc=qc.prototype.Mo,qc.prototype.getSize=qc.prototype.ic,t("ol.style.Image",xh),xh.prototype.getOpacity=xh.prototype.Ze,xh.prototype.getRotateWithView=xh.prototype.$e,xh.prototype.getRotation=xh.prototype.af,xh.prototype.getScale=xh.prototype.bf,xh.prototype.getSnapToPixel=xh.prototype.Ae,xh.prototype.setOpacity=xh.prototype.td,xh.prototype.setRotation=xh.prototype.cf,xh.prototype.setScale=xh.prototype.ud,t("ol.style.RegularShape",Sh),Sh.prototype.getAnchor=Sh.prototype.Hc,Sh.prototype.getAngle=Sh.prototype.Pi,Sh.prototype.getFill=Sh.prototype.Fa,Sh.prototype.getImage=Sh.prototype.Y,Sh.prototype.getOrigin=Sh.prototype.Oc,Sh.prototype.getPoints=Sh.prototype.Qi,Sh.prototype.getRadius=Sh.prototype.Ri,Sh.prototype.getRadius2=Sh.prototype.Fh,Sh.prototype.getSize=Sh.prototype.ic,Sh.prototype.getStroke=Sh.prototype.Ga,t("ol.style.Stroke",Ga),Ga.prototype.getColor=Ga.prototype.No,Ga.prototype.getLineCap=Ga.prototype.Vk,Ga.prototype.getLineDash=Ga.prototype.Oo,Ga.prototype.getLineDashOffset=Ga.prototype.Wk,Ga.prototype.getLineJoin=Ga.prototype.Xk,Ga.prototype.getMiterLimit=Ga.prototype.bl,Ga.prototype.getWidth=Ga.prototype.Po,Ga.prototype.setColor=Ga.prototype.Qo,Ga.prototype.setLineCap=Ga.prototype.aq,Ga.prototype.setLineDashOffset=Ga.prototype.bq,Ga.prototype.setLineJoin=Ga.prototype.cq,Ga.prototype.setMiterLimit=Ga.prototype.gq,Ga.prototype.setWidth=Ga.prototype.jq,t("ol.style.Style",Eh),Eh.prototype.getGeometry=Eh.prototype.V,Eh.prototype.getGeometryFunction=Eh.prototype.Pk,Eh.prototype.getFill=Eh.prototype.Fa,Eh.prototype.setFill=Eh.prototype.pf,Eh.prototype.getImage=Eh.prototype.Y,Eh.prototype.setImage=Eh.prototype.Og,Eh.prototype.getStroke=Eh.prototype.Ga,Eh.prototype.setStroke=Eh.prototype.qf,Eh.prototype.getText=Eh.prototype.Na,Eh.prototype.setText=Eh.prototype.xd,Eh.prototype.getZIndex=Eh.prototype.Ba,Eh.prototype.setGeometry=Eh.prototype.Ra,Eh.prototype.setZIndex=Eh.prototype.Vb,t("ol.style.Text",Jc),Jc.prototype.getFont=Jc.prototype.Nk,Jc.prototype.getOffsetX=Jc.prototype.cl,Jc.prototype.getOffsetY=Jc.prototype.dl,Jc.prototype.getFill=Jc.prototype.Fa,Jc.prototype.getRotateWithView=Jc.prototype.Ro,Jc.prototype.getRotation=Jc.prototype.So,Jc.prototype.getScale=Jc.prototype.To,Jc.prototype.getStroke=Jc.prototype.Ga,Jc.prototype.getText=Jc.prototype.Na,Jc.prototype.getTextAlign=Jc.prototype.nl,Jc.prototype.getTextBaseline=Jc.prototype.ol,Jc.prototype.setFont=Jc.prototype.nj,Jc.prototype.setOffsetX=Jc.prototype.sj,Jc.prototype.setOffsetY=Jc.prototype.tj,Jc.prototype.setFill=Jc.prototype.pf,Jc.prototype.setRotation=Jc.prototype.Uo,Jc.prototype.setScale=Jc.prototype.Si,Jc.prototype.setStroke=Jc.prototype.qf,Jc.prototype.setText=Jc.prototype.xd,Jc.prototype.setTextAlign=Jc.prototype.vj,Jc.prototype.setTextBaseline=Jc.prototype.hq,t("ol.source.BingMaps",Sw),t("ol.source.BingMaps.TOS_ATTRIBUTION",Mw),Sw.prototype.getApiKey=Sw.prototype.T,Sw.prototype.getImagerySet=Sw.prototype.fa,t("ol.source.CartoDB",Aw),Aw.prototype.getConfig=Aw.prototype.Kk,Aw.prototype.updateConfig=Aw.prototype.tq,Aw.prototype.setConfig=Aw.prototype.Xp,t("ol.source.Cluster",jw),jw.prototype.getDistance=jw.prototype.$n,jw.prototype.getSource=jw.prototype.ao,jw.prototype.setDistance=jw.prototype.Yp,t("ol.source.Image",Fm),t("ol.source.ImageArcGISRest",Rw),Rw.prototype.getParams=Rw.prototype.co,Rw.prototype.getImageLoadFunction=Rw.prototype.bo,Rw.prototype.getUrl=Rw.prototype.eo,Rw.prototype.setImageLoadFunction=Rw.prototype.fo,Rw.prototype.setUrl=Rw.prototype.ho,Rw.prototype.updateParams=Rw.prototype.io,t("ol.source.ImageCanvas",Xm),t("ol.source.ImageMapGuide",Iw),Iw.prototype.getParams=Iw.prototype.ko,Iw.prototype.getImageLoadFunction=Iw.prototype.jo,Iw.prototype.updateParams=Iw.prototype.mo,Iw.prototype.setImageLoadFunction=Iw.prototype.lo,t("ol.source.ImageStatic",Nw),t("ol.source.ImageVector",Vm),Vm.prototype.getSource=Vm.prototype.no,Vm.prototype.getStyle=Vm.prototype.oo,Vm.prototype.getStyleFunction=Vm.prototype.po,Vm.prototype.setStyle=Vm.prototype.Ii,t("ol.source.ImageWMS",Fw),Fw.prototype.getGetFeatureInfoUrl=Fw.prototype.so,Fw.prototype.getParams=Fw.prototype.uo,Fw.prototype.getImageLoadFunction=Fw.prototype.to,Fw.prototype.getUrl=Fw.prototype.vo,Fw.prototype.setImageLoadFunction=Fw.prototype.wo,Fw.prototype.setUrl=Fw.prototype.xo,Fw.prototype.updateParams=Fw.prototype.yo,t("ol.source.OSM",Uw),t("ol.source.OSM.ATTRIBUTION",Gw),t("ol.source.Raster",Bw),Bw.prototype.setOperation=Bw.prototype.v,t("ol.source.Source",lb),lb.prototype.getAttributions=lb.prototype.ya,lb.prototype.getLogo=lb.prototype.xa,lb.prototype.getProjection=lb.prototype.za,lb.prototype.refresh=lb.prototype.sa,lb.prototype.setAttributions=lb.prototype.ua,t("ol.source.Stamen",Kw),t("ol.source.Tile",cw),cw.prototype.getTileGrid=cw.prototype.ab,t("ol.source.TileArcGISRest",qw),qw.prototype.getParams=qw.prototype.C,qw.prototype.updateParams=qw.prototype.B,t("ol.source.TileDebug",_w),t("ol.source.TileImage",bw),bw.prototype.setRenderReprojectionEdges=bw.prototype.Pb,bw.prototype.setTileGridForProjection=bw.prototype.Qb,t("ol.source.TileJSON",Qw),Qw.prototype.getTileJSON=Qw.prototype.pl,t("ol.source.TileUTFGrid",tx),tx.prototype.getTemplate=tx.prototype.ml,tx.prototype.forDataAtCoordinateAndResolution=tx.prototype.zk,t("ol.source.TileWMS",ix),ix.prototype.getGetFeatureInfoUrl=ix.prototype.Fo,ix.prototype.getParams=ix.prototype.Go,ix.prototype.updateParams=ix.prototype.Ho,vw.prototype.getTileLoadFunction=vw.prototype.pb,vw.prototype.getTileUrlFunction=vw.prototype.qb,vw.prototype.getUrls=vw.prototype.rb,vw.prototype.setTileLoadFunction=vw.prototype.vb,vw.prototype.setTileUrlFunction=vw.prototype.cb,vw.prototype.setUrl=vw.prototype.jb,vw.prototype.setUrls=vw.prototype.eb,t("ol.source.Vector",fb),fb.prototype.addFeature=fb.prototype.yb,fb.prototype.addFeatures=fb.prototype.cd,fb.prototype.forEachFeature=fb.prototype.sh,fb.prototype.forEachFeatureInExtent=fb.prototype.$b,fb.prototype.forEachFeatureIntersectingExtent=fb.prototype.th,fb.prototype.getFeaturesCollection=fb.prototype.Ah,fb.prototype.getFeatures=fb.prototype.Xe,fb.prototype.getFeaturesAtCoordinate=fb.prototype.zh,fb.prototype.getFeaturesInExtent=fb.prototype.Uf,fb.prototype.getClosestFeatureToCoordinate=fb.prototype.vh,fb.prototype.getExtent=fb.prototype.G,fb.prototype.getFeatureById=fb.prototype.yh,fb.prototype.getFormat=fb.prototype.Mi,fb.prototype.getUrl=fb.prototype.Ni,fb.prototype.removeFeature=fb.prototype.Gb,t("ol.source.VectorTile",ux),t("ol.source.WMTS",yx),yx.prototype.getDimensions=yx.prototype.Mk,yx.prototype.getFormat=yx.prototype.Io,yx.prototype.getLayer=yx.prototype.Jo,yx.prototype.getMatrixSet=yx.prototype.$k,yx.prototype.getRequestEncoding=yx.prototype.kl,yx.prototype.getStyle=yx.prototype.Ko,yx.prototype.getVersion=yx.prototype.rl,yx.prototype.updateDimensions=yx.prototype.uq,t("ol.source.WMTS.optionsFromCapabilities",function(t,r){var e=b(t.Contents.Layer,function(t){return t.Identifier==r.layer});if(null===e)return null;var n=t.Contents.TileMatrixSet;(a=1<e.TileMatrixSetLink.length?"projection"in r?m(e.TileMatrixSetLink,function(e){var t=b(n,function(t){return t.Identifier==e.TileMatrixSet}).SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"),o=Bt(t),i=Bt(r.projection);return o&&i?Xt(o,i):t==r.projection}):m(e.TileMatrixSetLink,function(t){return t.TileMatrixSet==r.matrixSet}):0)<0&&(a=0);var o=e.TileMatrixSetLink[a].TileMatrixSet,i=e.TileMatrixSetLink[a].TileMatrixSetLimits,s=e.Format[0];"format"in r&&(s=r.format),(a=m(e.Style,function(t){return"style"in r?t.Title==r.style:t.isDefault}))<0&&(a=0);var a=e.Style[a].Identifier,p={};"Dimension"in e&&e.Dimension.forEach(function(t){var e=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),p[e]=o});var h,l,u=b(t.Contents.TileMatrixSet,function(t){return t.Identifier==o}),c="projection"in r?Bt(r.projection):Bt(u.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),f=e.WGS84BoundingBox;void 0!==f&&(h=Bt("EPSG:4326").G(),h=f[0]==h[0]&&f[2]==h[2],l=Yt(f,"EPSG:4326",c),(f=c.G())&&(N(f,l)||(l=void 0)));var i=fx(u,l,i),y=[],u=void 0!==(u=r.requestEncoding)?u:"";if("OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(l=0,f=(t=t.OperationsMetadata.GetTile.DCP.HTTP.Get).length;l<f;++l){var g=b(t[l].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if("KVP"!==(u=""===u?g[0]:u))break;d(g,"KVP")&&y.push(t[l].href)}return y.length||(u="REST",e.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(s=t.format,y.push(t.template))})),{urls:y,layer:r.layer,matrixSet:o,format:s,projection:c,requestEncoding:u,tileGrid:i,style:a,dimensions:p,wrapX:h,crossOrigin:r.crossOrigin}}),t("ol.source.XYZ",Pw),t("ol.source.Zoomify",dx),Uy.prototype.getExtent=Uy.prototype.G,Uy.prototype.getId=Uy.prototype.Wn,Uy.prototype.getGeometry=Uy.prototype.V,Uy.prototype.getProperties=Uy.prototype.Xn,Uy.prototype.getType=Uy.prototype.U,t("ol.render.VectorContext",vs),Dp.prototype.setStyle=Dp.prototype.rd,Dp.prototype.drawGeometry=Dp.prototype.zb,Dp.prototype.drawFeature=Dp.prototype.te,bs.prototype.drawCircle=bs.prototype.Zb,bs.prototype.setStyle=bs.prototype.rd,bs.prototype.drawGeometry=bs.prototype.zb,bs.prototype.drawFeature=bs.prototype.te,t("ol.proj.common.add",Ht),t("ol.proj.Projection",vt),vt.prototype.getCode=vt.prototype.Jk,vt.prototype.getExtent=vt.prototype.G,vt.prototype.getUnits=vt.prototype.Un,vt.prototype.getMetersPerUnit=vt.prototype.sc,vt.prototype.getWorldExtent=vt.prototype.tl,vt.prototype.isGlobal=vt.prototype.dm,vt.prototype.setGlobal=vt.prototype.$p,vt.prototype.setExtent=vt.prototype.Vn,vt.prototype.setWorldExtent=vt.prototype.kq,vt.prototype.setGetPointResolution=vt.prototype.Zp,t("ol.proj.Units.METERS_PER_UNIT",gt),t("ol.layer.Base",Bn),Bn.prototype.getExtent=Bn.prototype.G,Bn.prototype.getMaxResolution=Bn.prototype.fc,Bn.prototype.getMinResolution=Bn.prototype.gc,Bn.prototype.getOpacity=Bn.prototype.hc,Bn.prototype.getVisible=Bn.prototype.Mb,Bn.prototype.getZIndex=Bn.prototype.Ba,Bn.prototype.setExtent=Bn.prototype.vc,Bn.prototype.setMaxResolution=Bn.prototype.Ac,Bn.prototype.setMinResolution=Bn.prototype.Bc,Bn.prototype.setOpacity=Bn.prototype.wc,Bn.prototype.setVisible=Bn.prototype.xc,Bn.prototype.setZIndex=Bn.prototype.Vb,t("ol.layer.Group",Vn),Vn.prototype.getLayers=Vn.prototype.qd,Vn.prototype.setLayers=Vn.prototype.xi,t("ol.layer.Heatmap",xm),xm.prototype.getBlur=xm.prototype.uh,xm.prototype.getGradient=xm.prototype.Bh,xm.prototype.getRadius=xm.prototype.yi,xm.prototype.setBlur=xm.prototype.jj,xm.prototype.setGradient=xm.prototype.pj,xm.prototype.setRadius=xm.prototype.Uc,t("ol.layer.Image",Zm),Zm.prototype.getSource=Zm.prototype.ha,t("ol.layer.Layer",Zn),Zn.prototype.getSource=Zn.prototype.ha,Zn.prototype.setSource=Zn.prototype.Wc,t("ol.layer.Tile",Qm),Qm.prototype.getPreload=Qm.prototype.Ud,Qm.prototype.getSource=Qm.prototype.ha,Qm.prototype.setPreload=Qm.prototype.zi,Qm.prototype.getUseInterimTilesOnError=Qm.prototype.kd,Qm.prototype.setUseInterimTilesOnError=Qm.prototype.Ai,t("ol.layer.Vector",ab),ab.prototype.getSource=ab.prototype.ha,ab.prototype.getStyle=ab.prototype.D,ab.prototype.getStyleFunction=ab.prototype.C,ab.prototype.setStyle=ab.prototype.g,t("ol.layer.VectorTile",iw),iw.prototype.getPreload=iw.prototype.Ud,iw.prototype.getUseInterimTilesOnError=iw.prototype.kd,iw.prototype.setPreload=iw.prototype.Bi,iw.prototype.setUseInterimTilesOnError=iw.prototype.Ci,t("ol.interaction.DoubleClickZoom",Xr),t("ol.interaction.DoubleClickZoom.handleEvent",Vr),t("ol.interaction.DragAndDrop",nv),t("ol.interaction.DragAndDrop.handleEvent",Ui),t("ol.interaction.DragBox",fn),fn.prototype.getGeometry=fn.prototype.V,t("ol.interaction.DragPan",en),t("ol.interaction.DragRotate",sn),t("ol.interaction.DragRotateAndZoom",cv),t("ol.interaction.DragZoom",Sn),t("ol.interaction.Draw",mb),t("ol.interaction.Draw.handleEvent",wb),mb.prototype.removeLastPoint=mb.prototype.Op,mb.prototype.finishDrawing=mb.prototype.Pd,mb.prototype.extend=mb.prototype.vn,t("ol.interaction.Draw.createRegularPolygon",function(r,n){return function(t,e){var o=t[0];t=t[1];var i=Math.sqrt(Fi(o,t));return Ar(e=e||Pr(new Vd(o),r),o,i,n||Math.atan((t[1]-o[1])/(t[0]-o[0]))),e}}),t("ol.interaction.Draw.createBox",function(){return function(t,e){return t=P(t),(e=e||new wr(null)).ma([[J(t),_(t),it(t),ot(t),J(t)]]),e}}),t("ol.interaction.Extent",Fb),Fb.prototype.getExtent=Fb.prototype.G,Fb.prototype.setExtent=Fb.prototype.g,Wb.prototype.extent_=Wb.prototype.b,t("ol.interaction.Interaction",Or),Or.prototype.getActive=Or.prototype.c,Or.prototype.getMap=Or.prototype.f,Or.prototype.setActive=Or.prototype.Ha,t("ol.interaction.KeyboardPan",Mn),t("ol.interaction.KeyboardPan.handleEvent",Pn),t("ol.interaction.KeyboardZoom",An),t("ol.interaction.KeyboardZoom.handleEvent",En),t("ol.interaction.Modify",Kb),t("ol.interaction.Modify.handleEvent",Qb),Kb.prototype.removePoint=Kb.prototype.hj,t("ol.interaction.MouseWheelZoom",Tn),t("ol.interaction.MouseWheelZoom.handleEvent",jn),Tn.prototype.setMouseAnchor=Tn.prototype.T,t("ol.interaction.PinchRotate",Rn),t("ol.interaction.PinchZoom",kn),t("ol.interaction.Pointer",$r),t("ol.interaction.Pointer.handleEvent",tn),t("ol.interaction.Select",nm),nm.prototype.getFeatures=nm.prototype.Gn,nm.prototype.getHitTolerance=nm.prototype.Hn,nm.prototype.getLayer=nm.prototype.In,t("ol.interaction.Select.handleEvent",sm),nm.prototype.setHitTolerance=nm.prototype.Kn,t("ol.interaction.Snap",hm),hm.prototype.addFeature=hm.prototype.yb,hm.prototype.removeFeature=hm.prototype.Gb,t("ol.interaction.Translate",fm),fm.prototype.getHitTolerance=fm.prototype.B,fm.prototype.setHitTolerance=fm.prototype.I,t("ol.geom.Circle",Vd),Vd.prototype.getCenter=Vd.prototype.wa,Vd.prototype.getRadius=Vd.prototype.pd,Vd.prototype.getType=Vd.prototype.U,Vd.prototype.intersectsExtent=Vd.prototype.Xa,Vd.prototype.setCenter=Vd.prototype.ob,Vd.prototype.setCenterAndRadius=Vd.prototype.Ng,Vd.prototype.setRadius=Vd.prototype.Uc,Vd.prototype.transform=Vd.prototype.tb,t("ol.geom.Geometry",Bi),Bi.prototype.getClosestPoint=Bi.prototype.Ab,Bi.prototype.intersectsCoordinate=Bi.prototype.sb,Bi.prototype.getExtent=Bi.prototype.G,Bi.prototype.simplify=Bi.prototype.Rb,Bi.prototype.transform=Bi.prototype.tb,t("ol.geom.GeometryCollection",_l),_l.prototype.getGeometries=_l.prototype.Vf,_l.prototype.getType=_l.prototype.U,_l.prototype.intersectsExtent=_l.prototype.Xa,_l.prototype.setGeometries=_l.prototype.oj,_l.prototype.applyTransform=_l.prototype.Dc,t("ol.geom.LinearRing",ar),ar.prototype.getArea=ar.prototype.qn,ar.prototype.getCoordinates=ar.prototype.X,ar.prototype.getType=ar.prototype.U,ar.prototype.setCoordinates=ar.prototype.ma,t("ol.geom.LineString",ll),ll.prototype.appendCoordinate=ll.prototype.mk,ll.prototype.forEachSegment=ll.prototype.Ck,ll.prototype.getCoordinateAtM=ll.prototype.nn,ll.prototype.getCoordinates=ll.prototype.X,ll.prototype.getCoordinateAt=ll.prototype.wh,ll.prototype.getLength=ll.prototype.pn,ll.prototype.getType=ll.prototype.U,ll.prototype.intersectsExtent=ll.prototype.Xa,ll.prototype.setCoordinates=ll.prototype.ma,t("ol.geom.MultiLineString",cl),cl.prototype.appendLineString=cl.prototype.nk,cl.prototype.getCoordinateAtM=cl.prototype.rn,cl.prototype.getCoordinates=cl.prototype.X,cl.prototype.getLineString=cl.prototype.Yk,cl.prototype.getLineStrings=cl.prototype.gd,cl.prototype.getType=cl.prototype.U,cl.prototype.intersectsExtent=cl.prototype.Xa,cl.prototype.setCoordinates=cl.prototype.ma,t("ol.geom.MultiPoint",gl),gl.prototype.appendPoint=gl.prototype.qk,gl.prototype.getCoordinates=gl.prototype.X,gl.prototype.getPoint=gl.prototype.il,gl.prototype.getPoints=gl.prototype.Zd,gl.prototype.getType=gl.prototype.U,gl.prototype.intersectsExtent=gl.prototype.Xa,gl.prototype.setCoordinates=gl.prototype.ma,t("ol.geom.MultiPolygon",dl),dl.prototype.appendPolygon=dl.prototype.rk,dl.prototype.getArea=dl.prototype.sn,dl.prototype.getCoordinates=dl.prototype.X,dl.prototype.getInteriorPoints=dl.prototype.Uk,dl.prototype.getPolygon=dl.prototype.jl,dl.prototype.getPolygons=dl.prototype.Td,dl.prototype.getType=dl.prototype.U,dl.prototype.intersectsExtent=dl.prototype.Xa,dl.prototype.setCoordinates=dl.prototype.ma,t("ol.geom.Point",hr),hr.prototype.getCoordinates=hr.prototype.X,hr.prototype.getType=hr.prototype.U,hr.prototype.intersectsExtent=hr.prototype.Xa,hr.prototype.setCoordinates=hr.prototype.ma,t("ol.geom.Polygon",wr),wr.prototype.appendLinearRing=wr.prototype.pk,wr.prototype.getArea=wr.prototype.tn,wr.prototype.getCoordinates=wr.prototype.X,wr.prototype.getInteriorPoint=wr.prototype.Tk,wr.prototype.getLinearRingCount=wr.prototype.Zk,wr.prototype.getLinearRing=wr.prototype.Ch,wr.prototype.getLinearRings=wr.prototype.Sd,wr.prototype.getType=wr.prototype.U,wr.prototype.intersectsExtent=wr.prototype.Xa,wr.prototype.setCoordinates=wr.prototype.ma,t("ol.geom.Polygon.circular",Sr),t("ol.geom.Polygon.fromExtent",Mr),t("ol.geom.Polygon.fromCircle",Pr),t("ol.geom.SimpleGeometry",Wi),Wi.prototype.getFirstCoordinate=Wi.prototype.ac,Wi.prototype.getLastCoordinate=Wi.prototype.bc,Wi.prototype.getLayout=Wi.prototype.cc,Wi.prototype.applyTransform=Wi.prototype.Dc,t("ol.format.EsriJSON",xl),xl.prototype.readFeature=xl.prototype.Tb,xl.prototype.readFeatures=xl.prototype.Oa,xl.prototype.readGeometry=xl.prototype.Sc,xl.prototype.readProjection=xl.prototype.kb,xl.prototype.writeGeometry=xl.prototype.$c,xl.prototype.writeGeometryObject=xl.prototype.je,xl.prototype.writeFeature=xl.prototype.Bd,xl.prototype.writeFeatureObject=xl.prototype.Zc,xl.prototype.writeFeatures=xl.prototype.Wb,xl.prototype.writeFeaturesObject=xl.prototype.he,t("ol.format.Feature",ol),t("ol.format.filter.and",ql),t("ol.format.filter.or",function(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Yl,e))}),t("ol.format.filter.not",function(t){return new Kl(t)}),t("ol.format.filter.bbox",Jl),t("ol.format.filter.intersects",function(t,e,o){return new Gl(t,e,o)}),t("ol.format.filter.within",function(t,e,o){return new Hl(t,e,o)}),t("ol.format.filter.equalTo",function(t,e,o){return new kl(t,e,o)}),t("ol.format.filter.notEqualTo",function(t,e,o){return new zl(t,e,o)}),t("ol.format.filter.lessThan",function(t,e){return new Wl(t,e)}),t("ol.format.filter.lessThanOrEqualTo",function(t,e){return new Zl(t,e)}),t("ol.format.filter.greaterThan",function(t,e){return new Dl(t,e)}),t("ol.format.filter.greaterThanOrEqualTo",function(t,e){return new Ol(t,e)}),t("ol.format.filter.isNull",function(t){return new Vl(t)}),t("ol.format.filter.between",function(t,e,o){return new Bl(t,e,o)}),t("ol.format.filter.like",function(t,e,o,i,r,n){return new Xl(t,e,o,i,r,n)}),t("ol.format.filter.during",function(t,e,o){return new Nl(t,e,o)}),t("ol.format.GeoJSON",eu),eu.prototype.readFeature=eu.prototype.Tb,eu.prototype.readFeatures=eu.prototype.Oa,eu.prototype.readGeometry=eu.prototype.Sc,eu.prototype.readProjection=eu.prototype.kb,eu.prototype.writeFeature=eu.prototype.Bd,eu.prototype.writeFeatureObject=eu.prototype.Zc,eu.prototype.writeFeatures=eu.prototype.Wb,eu.prototype.writeFeaturesObject=eu.prototype.he,eu.prototype.writeGeometry=eu.prototype.$c,eu.prototype.writeGeometryObject=eu.prototype.je,t("ol.format.GML",Mu),Mu.prototype.writeFeatures=Mu.prototype.Wb,Mu.prototype.writeFeaturesNode=Mu.prototype.Xb,t("ol.format.GML2",Nu),t("ol.format.GML3",Mu),Mu.prototype.writeGeometryNode=Mu.prototype.ie,Mu.prototype.writeFeatures=Mu.prototype.Wb,Mu.prototype.writeFeaturesNode=Mu.prototype.Xb,hu.prototype.readFeatures=hu.prototype.Oa,t("ol.format.GPX",Zu),Zu.prototype.readFeature=Zu.prototype.Tb,Zu.prototype.readFeatures=Zu.prototype.Oa,Zu.prototype.readProjection=Zu.prototype.kb,Zu.prototype.writeFeatures=Zu.prototype.Wb,Zu.prototype.writeFeaturesNode=Zu.prototype.Xb,t("ol.format.IGC",Tc),Tc.prototype.readFeature=Tc.prototype.Tb,Tc.prototype.readFeatures=Tc.prototype.Oa,Tc.prototype.readProjection=Tc.prototype.kb,t("ol.format.KML",_c),_c.prototype.readFeature=_c.prototype.Tb,_c.prototype.readFeatures=_c.prototype.Oa,_c.prototype.readName=_c.prototype.Cp,_c.prototype.readNetworkLinks=_c.prototype.Dp,_c.prototype.readRegion=_c.prototype.Gp,_c.prototype.readRegionFromNode=_c.prototype.lf,_c.prototype.readProjection=_c.prototype.kb,_c.prototype.writeFeatures=_c.prototype.Wb,_c.prototype.writeFeaturesNode=_c.prototype.Xb,t("ol.format.MVT",Gy),Gy.prototype.readFeatures=Gy.prototype.Oa,Gy.prototype.readProjection=Gy.prototype.kb,Gy.prototype.setLayers=Gy.prototype.mn,t("ol.format.OSMXML",Xy),Xy.prototype.readFeatures=Xy.prototype.Oa,Xy.prototype.readProjection=Xy.prototype.kb,t("ol.format.Polyline",ug),t("ol.format.Polyline.encodeDeltas",cg),t("ol.format.Polyline.decodeDeltas",fg),t("ol.format.Polyline.encodeFloats",yg),t("ol.format.Polyline.decodeFloats",gg),ug.prototype.readFeature=ug.prototype.Tb,ug.prototype.readFeatures=ug.prototype.Oa,ug.prototype.readGeometry=ug.prototype.Sc,ug.prototype.readProjection=ug.prototype.kb,ug.prototype.writeGeometry=ug.prototype.$c,t("ol.format.TopoJSON",dg),dg.prototype.readFeatures=dg.prototype.Oa,dg.prototype.readProjection=dg.prototype.kb,t("ol.format.WFS",xg),xg.prototype.readFeatures=xg.prototype.Oa,xg.prototype.readTransactionResponse=xg.prototype.j,xg.prototype.readFeatureCollectionMetadata=xg.prototype.g,t("ol.format.WFS.writeFilter",function(t){var e=Fh("http://www.opengis.net/ogc","Filter");return Qh({node:e},Xg,zh(t.kc),[t],[]),e}),xg.prototype.writeGetFeature=xg.prototype.l,xg.prototype.writeTransaction=xg.prototype.v,xg.prototype.readProjection=xg.prototype.kb,t("ol.format.WKT",Vg),Vg.prototype.readFeature=Vg.prototype.Tb,Vg.prototype.readFeatures=Vg.prototype.Oa,Vg.prototype.readGeometry=Vg.prototype.Sc,Vg.prototype.writeFeature=Vg.prototype.Bd,Vg.prototype.writeFeatures=Vg.prototype.Wb,Vg.prototype.writeGeometry=Vg.prototype.$c,t("ol.format.WMSCapabilities",nd),t("ol.format.WMSGetFeatureInfo",Td),Td.prototype.readFeatures=Td.prototype.Oa,t("ol.format.WMTSCapabilities",jd),t("ol.format.filter.And",Ll),t("ol.format.filter.Bbox",Rl),t("ol.format.filter.Comparison",Il),t("ol.format.filter.ComparisonBinary",Fl),t("ol.format.filter.During",Nl),t("ol.format.filter.EqualTo",kl),t("ol.format.filter.Filter",jl),t("ol.format.filter.GreaterThan",Dl),t("ol.format.filter.GreaterThanOrEqualTo",Ol),t("ol.format.filter.Intersects",Gl),t("ol.format.filter.IsBetween",Bl),t("ol.format.filter.IsLike",Xl),t("ol.format.filter.IsNull",Vl),t("ol.format.filter.LessThan",Wl),t("ol.format.filter.LessThanOrEqualTo",Zl),t("ol.format.filter.Not",Kl),t("ol.format.filter.NotEqualTo",zl),t("ol.format.filter.Or",Yl),t("ol.format.filter.Spatial",Ul),t("ol.format.filter.Within",Hl),t("ol.events.condition.altKeyOnly",function(t){return(t=t.originalEvent).altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.altShiftKeysOnly",Wr),t("ol.events.condition.always",Ui),t("ol.events.condition.click",function(t){return"click"==t.type}),t("ol.events.condition.never",Gi),t("ol.events.condition.pointerMove",Kr),t("ol.events.condition.singleClick",zr),t("ol.events.condition.doubleClick",function(t){return"dblclick"==t.type}),t("ol.events.condition.noModifierKeys",Yr),t("ol.events.condition.platformModifierKeyOnly",function(t){return!(t=t.originalEvent).altKey&&(Co?t.metaKey:t.ctrlKey)&&!t.shiftKey}),t("ol.events.condition.shiftKeyOnly",Hr),t("ol.events.condition.targetNotEditable",qr),t("ol.events.condition.mouseOnly",Jr),t("ol.events.condition.primaryAction",_r),t("ol.control.Attribution",_e),t("ol.control.Attribution.render",$e),_e.prototype.getCollapsible=_e.prototype.Um,_e.prototype.setCollapsible=_e.prototype.Xm,_e.prototype.setCollapsed=_e.prototype.Wm,_e.prototype.getCollapsed=_e.prototype.Tm,t("ol.control.Control",Je),Je.prototype.getMap=Je.prototype.g,Je.prototype.setTarget=Je.prototype.f,t("ol.control.FullScreen",po),t("ol.control.MousePosition",yo),t("ol.control.MousePosition.render",go),yo.prototype.getCoordinateFormat=yo.prototype.xh,yo.prototype.getProjection=yo.prototype.Zh,yo.prototype.setCoordinateFormat=yo.prototype.kj,yo.prototype.setProjection=yo.prototype.$h,t("ol.control.OverviewMap",Qp),t("ol.control.OverviewMap.render",th),Qp.prototype.getCollapsible=Qp.prototype.$m,Qp.prototype.setCollapsible=Qp.prototype.cn,Qp.prototype.setCollapsed=Qp.prototype.bn,Qp.prototype.getCollapsed=Qp.prototype.Zm,Qp.prototype.getOverviewMap=Qp.prototype.gl,t("ol.control.Rotate",ro),t("ol.control.Rotate.render",no),t("ol.control.ScaleLine",rh),rh.prototype.getUnits=rh.prototype.C,t("ol.control.ScaleLine.render",sh),rh.prototype.setUnits=rh.prototype.I,t("ol.control.Zoom",so),t("ol.control.ZoomSlider",hh),t("ol.control.ZoomSlider.render",uh),t("ol.control.ZoomToExtent",yh),je.prototype.changed=je.prototype.s,je.prototype.dispatchEvent=je.prototype.b,je.prototype.getRevision=je.prototype.L,je.prototype.on=je.prototype.J,je.prototype.un=je.prototype.K,Ne.prototype.getKeys=Ne.prototype.O,Ne.prototype.getProperties=Ne.prototype.N,Ne.prototype.setProperties=Ne.prototype.H,Ne.prototype.unset=Ne.prototype.P,Ne.prototype.changed=Ne.prototype.s,Ne.prototype.dispatchEvent=Ne.prototype.b,Ne.prototype.getRevision=Ne.prototype.L,Ne.prototype.on=Ne.prototype.J,Ne.prototype.un=Ne.prototype.K,gh.prototype.getKeys=gh.prototype.O,gh.prototype.getProperties=gh.prototype.N,gh.prototype.setProperties=gh.prototype.H,gh.prototype.unset=gh.prototype.P,gh.prototype.changed=gh.prototype.s,gh.prototype.dispatchEvent=gh.prototype.b,gh.prototype.getRevision=gh.prototype.L,gh.prototype.on=gh.prototype.J,gh.prototype.un=gh.prototype.K,Ih.prototype.getKeys=Ih.prototype.O,Ih.prototype.getProperties=Ih.prototype.N,Ih.prototype.setProperties=Ih.prototype.H,Ih.prototype.unset=Ih.prototype.P,Ih.prototype.changed=Ih.prototype.s,Ih.prototype.dispatchEvent=Ih.prototype.b,Ih.prototype.getRevision=Ih.prototype.L,Ih.prototype.on=Ih.prototype.J,Ih.prototype.un=Ih.prototype.K,Xd.prototype.getKeys=Xd.prototype.O,Xd.prototype.getProperties=Xd.prototype.N,Xd.prototype.setProperties=Xd.prototype.H,Xd.prototype.unset=Xd.prototype.P,Xd.prototype.changed=Xd.prototype.s,Xd.prototype.dispatchEvent=Xd.prototype.b,Xd.prototype.getRevision=Xd.prototype.L,Xd.prototype.on=Xd.prototype.J,Xd.prototype.un=Xd.prototype.K,ov.prototype.getTileCoord=ov.prototype.f,Wp.prototype.getKeys=Wp.prototype.O,Wp.prototype.getProperties=Wp.prototype.N,Wp.prototype.setProperties=Wp.prototype.H,Wp.prototype.unset=Wp.prototype.P,Wp.prototype.changed=Wp.prototype.s,Wp.prototype.dispatchEvent=Wp.prototype.b,Wp.prototype.getRevision=Wp.prototype.L,Wp.prototype.on=Wp.prototype.J,Wp.prototype.un=Wp.prototype.K,Zp.prototype.getKeys=Zp.prototype.O,Zp.prototype.getProperties=Zp.prototype.N,Zp.prototype.setProperties=Zp.prototype.H,Zp.prototype.unset=Zp.prototype.P,Zp.prototype.changed=Zp.prototype.s,Zp.prototype.dispatchEvent=Zp.prototype.b,Zp.prototype.getRevision=Zp.prototype.L,Zp.prototype.on=Zp.prototype.J,Zp.prototype.un=Zp.prototype.K,px.prototype.getTileCoord=px.prototype.f,lx.prototype.getTileCoord=lx.prototype.f,Er.prototype.getKeys=Er.prototype.O,Er.prototype.getProperties=Er.prototype.N,Er.prototype.setProperties=Er.prototype.H,Er.prototype.unset=Er.prototype.P,Er.prototype.changed=Er.prototype.s,Er.prototype.dispatchEvent=Er.prototype.b,Er.prototype.getRevision=Er.prototype.L,Er.prototype.on=Er.prototype.J,Er.prototype.un=Er.prototype.K,cx.prototype.forEachTileCoord=cx.prototype.Rf,cx.prototype.getMaxZoom=cx.prototype.Ti,cx.prototype.getMinZoom=cx.prototype.Ui,cx.prototype.getOrigin=cx.prototype.Pc,cx.prototype.getResolution=cx.prototype.Da,cx.prototype.getResolutions=cx.prototype.Vi,cx.prototype.getTileCoordExtent=cx.prototype.Aa,cx.prototype.getTileCoordForCoordAndResolution=cx.prototype.Be,cx.prototype.getTileCoordForCoordAndZ=cx.prototype.bg,cx.prototype.getTileSize=cx.prototype.gb,cx.prototype.getZForResolution=cx.prototype.tc,Sh.prototype.getOpacity=Sh.prototype.Ze,Sh.prototype.getRotateWithView=Sh.prototype.$e,Sh.prototype.getRotation=Sh.prototype.af,Sh.prototype.getScale=Sh.prototype.bf,Sh.prototype.getSnapToPixel=Sh.prototype.Ae,Sh.prototype.setOpacity=Sh.prototype.td,Sh.prototype.setRotation=Sh.prototype.cf,Sh.prototype.setScale=Sh.prototype.ud,Ph.prototype.getAngle=Ph.prototype.Pi,Ph.prototype.getFill=Ph.prototype.Fa,Ph.prototype.getPoints=Ph.prototype.Qi,Ph.prototype.getRadius=Ph.prototype.Ri,Ph.prototype.getRadius2=Ph.prototype.Fh,Ph.prototype.getStroke=Ph.prototype.Ga,Ph.prototype.getOpacity=Ph.prototype.Ze,Ph.prototype.getRotateWithView=Ph.prototype.$e,Ph.prototype.getRotation=Ph.prototype.af,Ph.prototype.getScale=Ph.prototype.bf,Ph.prototype.getSnapToPixel=Ph.prototype.Ae,Ph.prototype.setOpacity=Ph.prototype.td,Ph.prototype.setRotation=Ph.prototype.cf,Ph.prototype.setScale=Ph.prototype.ud,qc.prototype.getOpacity=qc.prototype.Ze,qc.prototype.getRotateWithView=qc.prototype.$e,qc.prototype.getRotation=qc.prototype.af,qc.prototype.getScale=qc.prototype.bf,qc.prototype.getSnapToPixel=qc.prototype.Ae,qc.prototype.setOpacity=qc.prototype.td,qc.prototype.setRotation=qc.prototype.cf,qc.prototype.setScale=qc.prototype.ud,lb.prototype.getKeys=lb.prototype.O,lb.prototype.getProperties=lb.prototype.N,lb.prototype.setProperties=lb.prototype.H,lb.prototype.unset=lb.prototype.P,lb.prototype.changed=lb.prototype.s,lb.prototype.dispatchEvent=lb.prototype.b,lb.prototype.getRevision=lb.prototype.L,lb.prototype.on=lb.prototype.J,lb.prototype.un=lb.prototype.K,cw.prototype.getAttributions=cw.prototype.ya,cw.prototype.getLogo=cw.prototype.xa,cw.prototype.getProjection=cw.prototype.za,cw.prototype.refresh=cw.prototype.sa,cw.prototype.setAttributions=cw.prototype.ua,cw.prototype.getKeys=cw.prototype.O,cw.prototype.getProperties=cw.prototype.N,cw.prototype.setProperties=cw.prototype.H,cw.prototype.unset=cw.prototype.P,cw.prototype.changed=cw.prototype.s,cw.prototype.dispatchEvent=cw.prototype.b,cw.prototype.getRevision=cw.prototype.L,cw.prototype.on=cw.prototype.J,cw.prototype.un=cw.prototype.K,vw.prototype.getTileGrid=vw.prototype.ab,vw.prototype.refresh=vw.prototype.sa,vw.prototype.getAttributions=vw.prototype.ya,vw.prototype.getLogo=vw.prototype.xa,vw.prototype.getProjection=vw.prototype.za,vw.prototype.setAttributions=vw.prototype.ua,vw.prototype.getKeys=vw.prototype.O,vw.prototype.getProperties=vw.prototype.N,vw.prototype.setProperties=vw.prototype.H,vw.prototype.unset=vw.prototype.P,vw.prototype.changed=vw.prototype.s,vw.prototype.dispatchEvent=vw.prototype.b,vw.prototype.getRevision=vw.prototype.L,vw.prototype.on=vw.prototype.J,vw.prototype.un=vw.prototype.K,bw.prototype.getTileLoadFunction=bw.prototype.pb,bw.prototype.getTileUrlFunction=bw.prototype.qb,bw.prototype.getUrls=bw.prototype.rb,bw.prototype.setTileLoadFunction=bw.prototype.vb,bw.prototype.setTileUrlFunction=bw.prototype.cb,bw.prototype.setUrl=bw.prototype.jb,bw.prototype.setUrls=bw.prototype.eb,bw.prototype.getTileGrid=bw.prototype.ab,bw.prototype.refresh=bw.prototype.sa,bw.prototype.getAttributions=bw.prototype.ya,bw.prototype.getLogo=bw.prototype.xa,bw.prototype.getProjection=bw.prototype.za,bw.prototype.setAttributions=bw.prototype.ua,bw.prototype.getKeys=bw.prototype.O,bw.prototype.getProperties=bw.prototype.N,bw.prototype.setProperties=bw.prototype.H,bw.prototype.unset=bw.prototype.P,bw.prototype.changed=bw.prototype.s,bw.prototype.dispatchEvent=bw.prototype.b,bw.prototype.getRevision=bw.prototype.L,bw.prototype.on=bw.prototype.J,bw.prototype.un=bw.prototype.K,Sw.prototype.setRenderReprojectionEdges=Sw.prototype.Pb,Sw.prototype.setTileGridForProjection=Sw.prototype.Qb,Sw.prototype.getTileLoadFunction=Sw.prototype.pb,Sw.prototype.getTileUrlFunction=Sw.prototype.qb,Sw.prototype.getUrls=Sw.prototype.rb,Sw.prototype.setTileLoadFunction=Sw.prototype.vb,Sw.prototype.setTileUrlFunction=Sw.prototype.cb,Sw.prototype.setUrl=Sw.prototype.jb,Sw.prototype.setUrls=Sw.prototype.eb,Sw.prototype.getTileGrid=Sw.prototype.ab,Sw.prototype.refresh=Sw.prototype.sa,Sw.prototype.getAttributions=Sw.prototype.ya,Sw.prototype.getLogo=Sw.prototype.xa,Sw.prototype.getProjection=Sw.prototype.za,Sw.prototype.setAttributions=Sw.prototype.ua,Sw.prototype.getKeys=Sw.prototype.O,Sw.prototype.getProperties=Sw.prototype.N,Sw.prototype.setProperties=Sw.prototype.H,Sw.prototype.unset=Sw.prototype.P,Sw.prototype.changed=Sw.prototype.s,Sw.prototype.dispatchEvent=Sw.prototype.b,Sw.prototype.getRevision=Sw.prototype.L,Sw.prototype.on=Sw.prototype.J,Sw.prototype.un=Sw.prototype.K,Pw.prototype.setRenderReprojectionEdges=Pw.prototype.Pb,Pw.prototype.setTileGridForProjection=Pw.prototype.Qb,Pw.prototype.getTileLoadFunction=Pw.prototype.pb,Pw.prototype.getTileUrlFunction=Pw.prototype.qb,Pw.prototype.getUrls=Pw.prototype.rb,Pw.prototype.setTileLoadFunction=Pw.prototype.vb,Pw.prototype.setTileUrlFunction=Pw.prototype.cb,Pw.prototype.setUrl=Pw.prototype.jb,Pw.prototype.setUrls=Pw.prototype.eb,Pw.prototype.getTileGrid=Pw.prototype.ab,Pw.prototype.refresh=Pw.prototype.sa,Pw.prototype.getAttributions=Pw.prototype.ya,Pw.prototype.getLogo=Pw.prototype.xa,Pw.prototype.getProjection=Pw.prototype.za,Pw.prototype.setAttributions=Pw.prototype.ua,Pw.prototype.getKeys=Pw.prototype.O,Pw.prototype.getProperties=Pw.prototype.N,Pw.prototype.setProperties=Pw.prototype.H,Pw.prototype.unset=Pw.prototype.P,Pw.prototype.changed=Pw.prototype.s,Pw.prototype.dispatchEvent=Pw.prototype.b,Pw.prototype.getRevision=Pw.prototype.L,Pw.prototype.on=Pw.prototype.J,Pw.prototype.un=Pw.prototype.K,Aw.prototype.setRenderReprojectionEdges=Aw.prototype.Pb,Aw.prototype.setTileGridForProjection=Aw.prototype.Qb,Aw.prototype.getTileLoadFunction=Aw.prototype.pb,Aw.prototype.getTileUrlFunction=Aw.prototype.qb,Aw.prototype.getUrls=Aw.prototype.rb,Aw.prototype.setTileLoadFunction=Aw.prototype.vb,Aw.prototype.setTileUrlFunction=Aw.prototype.cb,Aw.prototype.setUrl=Aw.prototype.jb,Aw.prototype.setUrls=Aw.prototype.eb,Aw.prototype.getTileGrid=Aw.prototype.ab,Aw.prototype.refresh=Aw.prototype.sa,Aw.prototype.getAttributions=Aw.prototype.ya,Aw.prototype.getLogo=Aw.prototype.xa,Aw.prototype.getProjection=Aw.prototype.za,Aw.prototype.setAttributions=Aw.prototype.ua,Aw.prototype.getKeys=Aw.prototype.O,Aw.prototype.getProperties=Aw.prototype.N,Aw.prototype.setProperties=Aw.prototype.H,Aw.prototype.unset=Aw.prototype.P,Aw.prototype.changed=Aw.prototype.s,Aw.prototype.dispatchEvent=Aw.prototype.b,Aw.prototype.getRevision=Aw.prototype.L,Aw.prototype.on=Aw.prototype.J,Aw.prototype.un=Aw.prototype.K,fb.prototype.getAttributions=fb.prototype.ya,fb.prototype.getLogo=fb.prototype.xa,fb.prototype.getProjection=fb.prototype.za,fb.prototype.refresh=fb.prototype.sa,fb.prototype.setAttributions=fb.prototype.ua,fb.prototype.getKeys=fb.prototype.O,fb.prototype.getProperties=fb.prototype.N,fb.prototype.setProperties=fb.prototype.H,fb.prototype.unset=fb.prototype.P,fb.prototype.changed=fb.prototype.s,fb.prototype.dispatchEvent=fb.prototype.b,fb.prototype.getRevision=fb.prototype.L,fb.prototype.on=fb.prototype.J,fb.prototype.un=fb.prototype.K,jw.prototype.addFeature=jw.prototype.yb,jw.prototype.addFeatures=jw.prototype.cd,jw.prototype.forEachFeature=jw.prototype.sh,jw.prototype.forEachFeatureInExtent=jw.prototype.$b,jw.prototype.forEachFeatureIntersectingExtent=jw.prototype.th,jw.prototype.getFeaturesCollection=jw.prototype.Ah,jw.prototype.getFeatures=jw.prototype.Xe,jw.prototype.getFeaturesAtCoordinate=jw.prototype.zh,jw.prototype.getFeaturesInExtent=jw.prototype.Uf,jw.prototype.getClosestFeatureToCoordinate=jw.prototype.vh,jw.prototype.getExtent=jw.prototype.G,jw.prototype.getFeatureById=jw.prototype.yh,jw.prototype.getFormat=jw.prototype.Mi,jw.prototype.getUrl=jw.prototype.Ni,jw.prototype.removeFeature=jw.prototype.Gb,jw.prototype.getAttributions=jw.prototype.ya,jw.prototype.getLogo=jw.prototype.xa,jw.prototype.getProjection=jw.prototype.za,jw.prototype.refresh=jw.prototype.sa,jw.prototype.setAttributions=jw.prototype.ua,jw.prototype.getKeys=jw.prototype.O,jw.prototype.getProperties=jw.prototype.N,jw.prototype.setProperties=jw.prototype.H,jw.prototype.unset=jw.prototype.P,jw.prototype.changed=jw.prototype.s,jw.prototype.dispatchEvent=jw.prototype.b,jw.prototype.getRevision=jw.prototype.L,jw.prototype.on=jw.prototype.J,jw.prototype.un=jw.prototype.K,Fm.prototype.getAttributions=Fm.prototype.ya,Fm.prototype.getLogo=Fm.prototype.xa,Fm.prototype.getProjection=Fm.prototype.za,Fm.prototype.refresh=Fm.prototype.sa,Fm.prototype.setAttributions=Fm.prototype.ua,Fm.prototype.getKeys=Fm.prototype.O,Fm.prototype.getProperties=Fm.prototype.N,Fm.prototype.setProperties=Fm.prototype.H,Fm.prototype.unset=Fm.prototype.P,Fm.prototype.changed=Fm.prototype.s,Fm.prototype.dispatchEvent=Fm.prototype.b,Fm.prototype.getRevision=Fm.prototype.L,Fm.prototype.on=Fm.prototype.J,Fm.prototype.un=Fm.prototype.K,Rw.prototype.getAttributions=Rw.prototype.ya,Rw.prototype.getLogo=Rw.prototype.xa,Rw.prototype.getProjection=Rw.prototype.za,Rw.prototype.refresh=Rw.prototype.sa,Rw.prototype.setAttributions=Rw.prototype.ua,Rw.prototype.getKeys=Rw.prototype.O,Rw.prototype.getProperties=Rw.prototype.N,Rw.prototype.setProperties=Rw.prototype.H,Rw.prototype.unset=Rw.prototype.P,Rw.prototype.changed=Rw.prototype.s,Rw.prototype.dispatchEvent=Rw.prototype.b,Rw.prototype.getRevision=Rw.prototype.L,Rw.prototype.on=Rw.prototype.J,Rw.prototype.un=Rw.prototype.K,Xm.prototype.getAttributions=Xm.prototype.ya,Xm.prototype.getLogo=Xm.prototype.xa,Xm.prototype.getProjection=Xm.prototype.za,Xm.prototype.refresh=Xm.prototype.sa,Xm.prototype.setAttributions=Xm.prototype.ua,Xm.prototype.getKeys=Xm.prototype.O,Xm.prototype.getProperties=Xm.prototype.N,Xm.prototype.setProperties=Xm.prototype.H,Xm.prototype.unset=Xm.prototype.P,Xm.prototype.changed=Xm.prototype.s,Xm.prototype.dispatchEvent=Xm.prototype.b,Xm.prototype.getRevision=Xm.prototype.L,Xm.prototype.on=Xm.prototype.J,Xm.prototype.un=Xm.prototype.K,Iw.prototype.getAttributions=Iw.prototype.ya,Iw.prototype.getLogo=Iw.prototype.xa,Iw.prototype.getProjection=Iw.prototype.za,Iw.prototype.refresh=Iw.prototype.sa,Iw.prototype.setAttributions=Iw.prototype.ua,Iw.prototype.getKeys=Iw.prototype.O,Iw.prototype.getProperties=Iw.prototype.N,Iw.prototype.setProperties=Iw.prototype.H,Iw.prototype.unset=Iw.prototype.P,Iw.prototype.changed=Iw.prototype.s,Iw.prototype.dispatchEvent=Iw.prototype.b,Iw.prototype.getRevision=Iw.prototype.L,Iw.prototype.on=Iw.prototype.J,Iw.prototype.un=Iw.prototype.K,Nw.prototype.getAttributions=Nw.prototype.ya,Nw.prototype.getLogo=Nw.prototype.xa,Nw.prototype.getProjection=Nw.prototype.za,Nw.prototype.refresh=Nw.prototype.sa,Nw.prototype.setAttributions=Nw.prototype.ua,Nw.prototype.getKeys=Nw.prototype.O,Nw.prototype.getProperties=Nw.prototype.N,Nw.prototype.setProperties=Nw.prototype.H,Nw.prototype.unset=Nw.prototype.P,Nw.prototype.changed=Nw.prototype.s,Nw.prototype.dispatchEvent=Nw.prototype.b,Nw.prototype.getRevision=Nw.prototype.L,Nw.prototype.on=Nw.prototype.J,Nw.prototype.un=Nw.prototype.K,Vm.prototype.getAttributions=Vm.prototype.ya,Vm.prototype.getLogo=Vm.prototype.xa,Vm.prototype.getProjection=Vm.prototype.za,Vm.prototype.refresh=Vm.prototype.sa,Vm.prototype.setAttributions=Vm.prototype.ua,Vm.prototype.getKeys=Vm.prototype.O,Vm.prototype.getProperties=Vm.prototype.N,Vm.prototype.setProperties=Vm.prototype.H,Vm.prototype.unset=Vm.prototype.P,Vm.prototype.changed=Vm.prototype.s,Vm.prototype.dispatchEvent=Vm.prototype.b,Vm.prototype.getRevision=Vm.prototype.L,Vm.prototype.on=Vm.prototype.J,Vm.prototype.un=Vm.prototype.K,Fw.prototype.getAttributions=Fw.prototype.ya,Fw.prototype.getLogo=Fw.prototype.xa,Fw.prototype.getProjection=Fw.prototype.za,Fw.prototype.refresh=Fw.prototype.sa,Fw.prototype.setAttributions=Fw.prototype.ua,Fw.prototype.getKeys=Fw.prototype.O,Fw.prototype.getProperties=Fw.prototype.N,Fw.prototype.setProperties=Fw.prototype.H,Fw.prototype.unset=Fw.prototype.P,Fw.prototype.changed=Fw.prototype.s,Fw.prototype.dispatchEvent=Fw.prototype.b,Fw.prototype.getRevision=Fw.prototype.L,Fw.prototype.on=Fw.prototype.J,Fw.prototype.un=Fw.prototype.K,Uw.prototype.setRenderReprojectionEdges=Uw.prototype.Pb,Uw.prototype.setTileGridForProjection=Uw.prototype.Qb,Uw.prototype.getTileLoadFunction=Uw.prototype.pb,Uw.prototype.getTileUrlFunction=Uw.prototype.qb,Uw.prototype.getUrls=Uw.prototype.rb,Uw.prototype.setTileLoadFunction=Uw.prototype.vb,Uw.prototype.setTileUrlFunction=Uw.prototype.cb,Uw.prototype.setUrl=Uw.prototype.jb,Uw.prototype.setUrls=Uw.prototype.eb,Uw.prototype.getTileGrid=Uw.prototype.ab,Uw.prototype.refresh=Uw.prototype.sa,Uw.prototype.getAttributions=Uw.prototype.ya,Uw.prototype.getLogo=Uw.prototype.xa,Uw.prototype.getProjection=Uw.prototype.za,Uw.prototype.setAttributions=Uw.prototype.ua,Uw.prototype.getKeys=Uw.prototype.O,Uw.prototype.getProperties=Uw.prototype.N,Uw.prototype.setProperties=Uw.prototype.H,Uw.prototype.unset=Uw.prototype.P,Uw.prototype.changed=Uw.prototype.s,Uw.prototype.dispatchEvent=Uw.prototype.b,Uw.prototype.getRevision=Uw.prototype.L,Uw.prototype.on=Uw.prototype.J,Uw.prototype.un=Uw.prototype.K,Bw.prototype.getAttributions=Bw.prototype.ya,Bw.prototype.getLogo=Bw.prototype.xa,Bw.prototype.getProjection=Bw.prototype.za,Bw.prototype.refresh=Bw.prototype.sa,Bw.prototype.setAttributions=Bw.prototype.ua,Bw.prototype.getKeys=Bw.prototype.O,Bw.prototype.getProperties=Bw.prototype.N,Bw.prototype.setProperties=Bw.prototype.H,Bw.prototype.unset=Bw.prototype.P,Bw.prototype.changed=Bw.prototype.s,Bw.prototype.dispatchEvent=Bw.prototype.b,Bw.prototype.getRevision=Bw.prototype.L,Bw.prototype.on=Bw.prototype.J,Bw.prototype.un=Bw.prototype.K,Kw.prototype.setRenderReprojectionEdges=Kw.prototype.Pb,Kw.prototype.setTileGridForProjection=Kw.prototype.Qb,Kw.prototype.getTileLoadFunction=Kw.prototype.pb,Kw.prototype.getTileUrlFunction=Kw.prototype.qb,Kw.prototype.getUrls=Kw.prototype.rb,Kw.prototype.setTileLoadFunction=Kw.prototype.vb,Kw.prototype.setTileUrlFunction=Kw.prototype.cb,Kw.prototype.setUrl=Kw.prototype.jb,Kw.prototype.setUrls=Kw.prototype.eb,Kw.prototype.getTileGrid=Kw.prototype.ab,Kw.prototype.refresh=Kw.prototype.sa,Kw.prototype.getAttributions=Kw.prototype.ya,Kw.prototype.getLogo=Kw.prototype.xa,Kw.prototype.getProjection=Kw.prototype.za,Kw.prototype.setAttributions=Kw.prototype.ua,Kw.prototype.getKeys=Kw.prototype.O,Kw.prototype.getProperties=Kw.prototype.N,Kw.prototype.setProperties=Kw.prototype.H,Kw.prototype.unset=Kw.prototype.P,Kw.prototype.changed=Kw.prototype.s,Kw.prototype.dispatchEvent=Kw.prototype.b,Kw.prototype.getRevision=Kw.prototype.L,Kw.prototype.on=Kw.prototype.J,Kw.prototype.un=Kw.prototype.K,qw.prototype.setRenderReprojectionEdges=qw.prototype.Pb,qw.prototype.setTileGridForProjection=qw.prototype.Qb,qw.prototype.getTileLoadFunction=qw.prototype.pb,qw.prototype.getTileUrlFunction=qw.prototype.qb,qw.prototype.getUrls=qw.prototype.rb,qw.prototype.setTileLoadFunction=qw.prototype.vb,qw.prototype.setTileUrlFunction=qw.prototype.cb,qw.prototype.setUrl=qw.prototype.jb,qw.prototype.setUrls=qw.prototype.eb,qw.prototype.getTileGrid=qw.prototype.ab,qw.prototype.refresh=qw.prototype.sa,qw.prototype.getAttributions=qw.prototype.ya,qw.prototype.getLogo=qw.prototype.xa,qw.prototype.getProjection=qw.prototype.za,qw.prototype.setAttributions=qw.prototype.ua,qw.prototype.getKeys=qw.prototype.O,qw.prototype.getProperties=qw.prototype.N,qw.prototype.setProperties=qw.prototype.H,qw.prototype.unset=qw.prototype.P,qw.prototype.changed=qw.prototype.s,qw.prototype.dispatchEvent=qw.prototype.b,qw.prototype.getRevision=qw.prototype.L,qw.prototype.on=qw.prototype.J,qw.prototype.un=qw.prototype.K,_w.prototype.getTileGrid=_w.prototype.ab,_w.prototype.refresh=_w.prototype.sa,_w.prototype.getAttributions=_w.prototype.ya,_w.prototype.getLogo=_w.prototype.xa,_w.prototype.getProjection=_w.prototype.za,_w.prototype.setAttributions=_w.prototype.ua,_w.prototype.getKeys=_w.prototype.O,_w.prototype.getProperties=_w.prototype.N,_w.prototype.setProperties=_w.prototype.H,_w.prototype.unset=_w.prototype.P,_w.prototype.changed=_w.prototype.s,_w.prototype.dispatchEvent=_w.prototype.b,_w.prototype.getRevision=_w.prototype.L,_w.prototype.on=_w.prototype.J,_w.prototype.un=_w.prototype.K,Qw.prototype.setRenderReprojectionEdges=Qw.prototype.Pb,Qw.prototype.setTileGridForProjection=Qw.prototype.Qb,Qw.prototype.getTileLoadFunction=Qw.prototype.pb,Qw.prototype.getTileUrlFunction=Qw.prototype.qb,Qw.prototype.getUrls=Qw.prototype.rb,Qw.prototype.setTileLoadFunction=Qw.prototype.vb,Qw.prototype.setTileUrlFunction=Qw.prototype.cb,Qw.prototype.setUrl=Qw.prototype.jb,Qw.prototype.setUrls=Qw.prototype.eb,Qw.prototype.getTileGrid=Qw.prototype.ab,Qw.prototype.refresh=Qw.prototype.sa,Qw.prototype.getAttributions=Qw.prototype.ya,Qw.prototype.getLogo=Qw.prototype.xa,Qw.prototype.getProjection=Qw.prototype.za,Qw.prototype.setAttributions=Qw.prototype.ua,Qw.prototype.getKeys=Qw.prototype.O,Qw.prototype.getProperties=Qw.prototype.N,Qw.prototype.setProperties=Qw.prototype.H,Qw.prototype.unset=Qw.prototype.P,Qw.prototype.changed=Qw.prototype.s,Qw.prototype.dispatchEvent=Qw.prototype.b,Qw.prototype.getRevision=Qw.prototype.L,Qw.prototype.on=Qw.prototype.J,Qw.prototype.un=Qw.prototype.K,tx.prototype.getTileGrid=tx.prototype.ab,tx.prototype.refresh=tx.prototype.sa,tx.prototype.getAttributions=tx.prototype.ya,tx.prototype.getLogo=tx.prototype.xa,tx.prototype.getProjection=tx.prototype.za,tx.prototype.setAttributions=tx.prototype.ua,tx.prototype.getKeys=tx.prototype.O,tx.prototype.getProperties=tx.prototype.N,tx.prototype.setProperties=tx.prototype.H,tx.prototype.unset=tx.prototype.P,tx.prototype.changed=tx.prototype.s,tx.prototype.dispatchEvent=tx.prototype.b,tx.prototype.getRevision=tx.prototype.L,tx.prototype.on=tx.prototype.J,tx.prototype.un=tx.prototype.K,ix.prototype.setRenderReprojectionEdges=ix.prototype.Pb,ix.prototype.setTileGridForProjection=ix.prototype.Qb,ix.prototype.getTileLoadFunction=ix.prototype.pb,ix.prototype.getTileUrlFunction=ix.prototype.qb,ix.prototype.getUrls=ix.prototype.rb,ix.prototype.setTileLoadFunction=ix.prototype.vb,ix.prototype.setTileUrlFunction=ix.prototype.cb,ix.prototype.setUrl=ix.prototype.jb,ix.prototype.setUrls=ix.prototype.eb,ix.prototype.getTileGrid=ix.prototype.ab,ix.prototype.refresh=ix.prototype.sa,ix.prototype.getAttributions=ix.prototype.ya,ix.prototype.getLogo=ix.prototype.xa,ix.prototype.getProjection=ix.prototype.za,ix.prototype.setAttributions=ix.prototype.ua,ix.prototype.getKeys=ix.prototype.O,ix.prototype.getProperties=ix.prototype.N,ix.prototype.setProperties=ix.prototype.H,ix.prototype.unset=ix.prototype.P,ix.prototype.changed=ix.prototype.s,ix.prototype.dispatchEvent=ix.prototype.b,ix.prototype.getRevision=ix.prototype.L,ix.prototype.on=ix.prototype.J,ix.prototype.un=ix.prototype.K,ux.prototype.getTileLoadFunction=ux.prototype.pb,ux.prototype.getTileUrlFunction=ux.prototype.qb,ux.prototype.getUrls=ux.prototype.rb,ux.prototype.setTileLoadFunction=ux.prototype.vb,ux.prototype.setTileUrlFunction=ux.prototype.cb,ux.prototype.setUrl=ux.prototype.jb,ux.prototype.setUrls=ux.prototype.eb,ux.prototype.getTileGrid=ux.prototype.ab,ux.prototype.refresh=ux.prototype.sa,ux.prototype.getAttributions=ux.prototype.ya,ux.prototype.getLogo=ux.prototype.xa,ux.prototype.getProjection=ux.prototype.za,ux.prototype.setAttributions=ux.prototype.ua,ux.prototype.getKeys=ux.prototype.O,ux.prototype.getProperties=ux.prototype.N,ux.prototype.setProperties=ux.prototype.H,ux.prototype.unset=ux.prototype.P,ux.prototype.changed=ux.prototype.s,ux.prototype.dispatchEvent=ux.prototype.b,ux.prototype.getRevision=ux.prototype.L,ux.prototype.on=ux.prototype.J,ux.prototype.un=ux.prototype.K,yx.prototype.setRenderReprojectionEdges=yx.prototype.Pb,yx.prototype.setTileGridForProjection=yx.prototype.Qb,yx.prototype.getTileLoadFunction=yx.prototype.pb,yx.prototype.getTileUrlFunction=yx.prototype.qb,yx.prototype.getUrls=yx.prototype.rb,yx.prototype.setTileLoadFunction=yx.prototype.vb,yx.prototype.setTileUrlFunction=yx.prototype.cb,yx.prototype.setUrl=yx.prototype.jb,yx.prototype.setUrls=yx.prototype.eb,yx.prototype.getTileGrid=yx.prototype.ab,yx.prototype.refresh=yx.prototype.sa,yx.prototype.getAttributions=yx.prototype.ya,yx.prototype.getLogo=yx.prototype.xa,yx.prototype.getProjection=yx.prototype.za,yx.prototype.setAttributions=yx.prototype.ua,yx.prototype.getKeys=yx.prototype.O,yx.prototype.getProperties=yx.prototype.N,yx.prototype.setProperties=yx.prototype.H,yx.prototype.unset=yx.prototype.P,yx.prototype.changed=yx.prototype.s,yx.prototype.dispatchEvent=yx.prototype.b,yx.prototype.getRevision=yx.prototype.L,yx.prototype.on=yx.prototype.J,yx.prototype.un=yx.prototype.K,dx.prototype.setRenderReprojectionEdges=dx.prototype.Pb,dx.prototype.setTileGridForProjection=dx.prototype.Qb,dx.prototype.getTileLoadFunction=dx.prototype.pb,dx.prototype.getTileUrlFunction=dx.prototype.qb,dx.prototype.getUrls=dx.prototype.rb,dx.prototype.setTileLoadFunction=dx.prototype.vb,dx.prototype.setTileUrlFunction=dx.prototype.cb,dx.prototype.setUrl=dx.prototype.jb,dx.prototype.setUrls=dx.prototype.eb,dx.prototype.getTileGrid=dx.prototype.ab,dx.prototype.refresh=dx.prototype.sa,dx.prototype.getAttributions=dx.prototype.ya,dx.prototype.getLogo=dx.prototype.xa,dx.prototype.getProjection=dx.prototype.za,dx.prototype.setAttributions=dx.prototype.ua,dx.prototype.getKeys=dx.prototype.O,dx.prototype.getProperties=dx.prototype.N,dx.prototype.setProperties=dx.prototype.H,dx.prototype.unset=dx.prototype.P,dx.prototype.changed=dx.prototype.s,dx.prototype.dispatchEvent=dx.prototype.b,dx.prototype.getRevision=dx.prototype.L,dx.prototype.on=dx.prototype.J,dx.prototype.un=dx.prototype.K,nw.prototype.getTileCoord=nw.prototype.f,Dv.prototype.changed=Dv.prototype.s,Dv.prototype.dispatchEvent=Dv.prototype.b,Dv.prototype.getRevision=Dv.prototype.L,Dv.prototype.on=Dv.prototype.J,Dv.prototype.un=Dv.prototype.K,rb.prototype.changed=rb.prototype.s,rb.prototype.dispatchEvent=rb.prototype.b,rb.prototype.getRevision=rb.prototype.L,rb.prototype.on=rb.prototype.J,rb.prototype.un=rb.prototype.K,Wm.prototype.changed=Wm.prototype.s,Wm.prototype.dispatchEvent=Wm.prototype.b,Wm.prototype.getRevision=Wm.prototype.L,Wm.prototype.on=Wm.prototype.J,Wm.prototype.un=Wm.prototype.K,$m.prototype.changed=$m.prototype.s,$m.prototype.dispatchEvent=$m.prototype.b,$m.prototype.getRevision=$m.prototype.L,$m.prototype.on=$m.prototype.J,$m.prototype.un=$m.prototype.K,sb.prototype.changed=sb.prototype.s,sb.prototype.dispatchEvent=sb.prototype.b,sb.prototype.getRevision=sb.prototype.L,sb.prototype.on=sb.prototype.J,sb.prototype.un=sb.prototype.K,Zv.prototype.changed=Zv.prototype.s,Zv.prototype.dispatchEvent=Zv.prototype.b,Zv.prototype.getRevision=Zv.prototype.L,Zv.prototype.on=Zv.prototype.J,Zv.prototype.un=Zv.prototype.K,Em.prototype.changed=Em.prototype.s,Em.prototype.dispatchEvent=Em.prototype.b,Em.prototype.getRevision=Em.prototype.L,Em.prototype.on=Em.prototype.J,Em.prototype.un=Em.prototype.K,Tm.prototype.changed=Tm.prototype.s,Tm.prototype.dispatchEvent=Tm.prototype.b,Tm.prototype.getRevision=Tm.prototype.L,Tm.prototype.on=Tm.prototype.J,Tm.prototype.un=Tm.prototype.K,Km.prototype.changed=Km.prototype.s,Km.prototype.dispatchEvent=Km.prototype.b,Km.prototype.getRevision=Km.prototype.L,Km.prototype.on=Km.prototype.J,Km.prototype.un=Km.prototype.K,$v.prototype.changed=$v.prototype.s,$v.prototype.dispatchEvent=$v.prototype.b,$v.prototype.getRevision=$v.prototype.L,$v.prototype.on=$v.prototype.J,$v.prototype.un=$v.prototype.K,tw.prototype.changed=tw.prototype.s,tw.prototype.dispatchEvent=tw.prototype.b,tw.prototype.getRevision=tw.prototype.L,tw.prototype.on=tw.prototype.J,tw.prototype.un=tw.prototype.K,Bn.prototype.getKeys=Bn.prototype.O,Bn.prototype.getProperties=Bn.prototype.N,Bn.prototype.setProperties=Bn.prototype.H,Bn.prototype.unset=Bn.prototype.P,Bn.prototype.changed=Bn.prototype.s,Bn.prototype.dispatchEvent=Bn.prototype.b,Bn.prototype.getRevision=Bn.prototype.L,Bn.prototype.on=Bn.prototype.J,Bn.prototype.un=Bn.prototype.K,Vn.prototype.getExtent=Vn.prototype.G,Vn.prototype.getMaxResolution=Vn.prototype.fc,Vn.prototype.getMinResolution=Vn.prototype.gc,Vn.prototype.getOpacity=Vn.prototype.hc,Vn.prototype.getVisible=Vn.prototype.Mb,Vn.prototype.getZIndex=Vn.prototype.Ba,Vn.prototype.setExtent=Vn.prototype.vc,Vn.prototype.setMaxResolution=Vn.prototype.Ac,Vn.prototype.setMinResolution=Vn.prototype.Bc,Vn.prototype.setOpacity=Vn.prototype.wc,Vn.prototype.setVisible=Vn.prototype.xc,Vn.prototype.setZIndex=Vn.prototype.Vb,Vn.prototype.getKeys=Vn.prototype.O,Vn.prototype.getProperties=Vn.prototype.N,Vn.prototype.setProperties=Vn.prototype.H,Vn.prototype.unset=Vn.prototype.P,Vn.prototype.changed=Vn.prototype.s,Vn.prototype.dispatchEvent=Vn.prototype.b,Vn.prototype.getRevision=Vn.prototype.L,Vn.prototype.on=Vn.prototype.J,Vn.prototype.un=Vn.prototype.K,Zn.prototype.getExtent=Zn.prototype.G,Zn.prototype.getMaxResolution=Zn.prototype.fc,Zn.prototype.getMinResolution=Zn.prototype.gc,Zn.prototype.getOpacity=Zn.prototype.hc,Zn.prototype.getVisible=Zn.prototype.Mb,Zn.prototype.getZIndex=Zn.prototype.Ba,Zn.prototype.setExtent=Zn.prototype.vc,Zn.prototype.setMaxResolution=Zn.prototype.Ac,Zn.prototype.setMinResolution=Zn.prototype.Bc,Zn.prototype.setOpacity=Zn.prototype.wc,Zn.prototype.setVisible=Zn.prototype.xc,Zn.prototype.setZIndex=Zn.prototype.Vb,Zn.prototype.getKeys=Zn.prototype.O,Zn.prototype.getProperties=Zn.prototype.N,Zn.prototype.setProperties=Zn.prototype.H,Zn.prototype.unset=Zn.prototype.P,Zn.prototype.changed=Zn.prototype.s,Zn.prototype.dispatchEvent=Zn.prototype.b,Zn.prototype.getRevision=Zn.prototype.L,Zn.prototype.on=Zn.prototype.J,Zn.prototype.un=Zn.prototype.K,ab.prototype.setSource=ab.prototype.Wc,ab.prototype.getExtent=ab.prototype.G,ab.prototype.getMaxResolution=ab.prototype.fc,ab.prototype.getMinResolution=ab.prototype.gc,ab.prototype.getOpacity=ab.prototype.hc,ab.prototype.getVisible=ab.prototype.Mb,ab.prototype.getZIndex=ab.prototype.Ba,ab.prototype.setExtent=ab.prototype.vc,ab.prototype.setMaxResolution=ab.prototype.Ac,ab.prototype.setMinResolution=ab.prototype.Bc,ab.prototype.setOpacity=ab.prototype.wc,ab.prototype.setVisible=ab.prototype.xc,ab.prototype.setZIndex=ab.prototype.Vb,ab.prototype.getKeys=ab.prototype.O,ab.prototype.getProperties=ab.prototype.N,ab.prototype.setProperties=ab.prototype.H,ab.prototype.unset=ab.prototype.P,ab.prototype.changed=ab.prototype.s,ab.prototype.dispatchEvent=ab.prototype.b,ab.prototype.getRevision=ab.prototype.L,ab.prototype.on=ab.prototype.J,ab.prototype.un=ab.prototype.K,xm.prototype.getSource=xm.prototype.ha,xm.prototype.getStyle=xm.prototype.D,xm.prototype.getStyleFunction=xm.prototype.C,xm.prototype.setStyle=xm.prototype.g,xm.prototype.setSource=xm.prototype.Wc,xm.prototype.getExtent=xm.prototype.G,xm.prototype.getMaxResolution=xm.prototype.fc,xm.prototype.getMinResolution=xm.prototype.gc,xm.prototype.getOpacity=xm.prototype.hc,xm.prototype.getVisible=xm.prototype.Mb,xm.prototype.getZIndex=xm.prototype.Ba,xm.prototype.setExtent=xm.prototype.vc,xm.prototype.setMaxResolution=xm.prototype.Ac,xm.prototype.setMinResolution=xm.prototype.Bc,xm.prototype.setOpacity=xm.prototype.wc,xm.prototype.setVisible=xm.prototype.xc,xm.prototype.setZIndex=xm.prototype.Vb,xm.prototype.getKeys=xm.prototype.O,xm.prototype.getProperties=xm.prototype.N,xm.prototype.setProperties=xm.prototype.H,xm.prototype.unset=xm.prototype.P,xm.prototype.changed=xm.prototype.s,xm.prototype.dispatchEvent=xm.prototype.b,xm.prototype.getRevision=xm.prototype.L,xm.prototype.on=xm.prototype.J,xm.prototype.un=xm.prototype.K,Zm.prototype.setSource=Zm.prototype.Wc,Zm.prototype.getExtent=Zm.prototype.G,Zm.prototype.getMaxResolution=Zm.prototype.fc,Zm.prototype.getMinResolution=Zm.prototype.gc,Zm.prototype.getOpacity=Zm.prototype.hc,Zm.prototype.getVisible=Zm.prototype.Mb,Zm.prototype.getZIndex=Zm.prototype.Ba,Zm.prototype.setExtent=Zm.prototype.vc,Zm.prototype.setMaxResolution=Zm.prototype.Ac,Zm.prototype.setMinResolution=Zm.prototype.Bc,Zm.prototype.setOpacity=Zm.prototype.wc,Zm.prototype.setVisible=Zm.prototype.xc,Zm.prototype.setZIndex=Zm.prototype.Vb,Zm.prototype.getKeys=Zm.prototype.O,Zm.prototype.getProperties=Zm.prototype.N,Zm.prototype.setProperties=Zm.prototype.H,Zm.prototype.unset=Zm.prototype.P,Zm.prototype.changed=Zm.prototype.s,Zm.prototype.dispatchEvent=Zm.prototype.b,Zm.prototype.getRevision=Zm.prototype.L,Zm.prototype.on=Zm.prototype.J,Zm.prototype.un=Zm.prototype.K,Qm.prototype.setSource=Qm.prototype.Wc,Qm.prototype.getExtent=Qm.prototype.G,Qm.prototype.getMaxResolution=Qm.prototype.fc,Qm.prototype.getMinResolution=Qm.prototype.gc,Qm.prototype.getOpacity=Qm.prototype.hc,Qm.prototype.getVisible=Qm.prototype.Mb,Qm.prototype.getZIndex=Qm.prototype.Ba,Qm.prototype.setExtent=Qm.prototype.vc,Qm.prototype.setMaxResolution=Qm.prototype.Ac,Qm.prototype.setMinResolution=Qm.prototype.Bc,Qm.prototype.setOpacity=Qm.prototype.wc,Qm.prototype.setVisible=Qm.prototype.xc,Qm.prototype.setZIndex=Qm.prototype.Vb,Qm.prototype.getKeys=Qm.prototype.O,Qm.prototype.getProperties=Qm.prototype.N,Qm.prototype.setProperties=Qm.prototype.H,Qm.prototype.unset=Qm.prototype.P,Qm.prototype.changed=Qm.prototype.s,Qm.prototype.dispatchEvent=Qm.prototype.b,Qm.prototype.getRevision=Qm.prototype.L,Qm.prototype.on=Qm.prototype.J,Qm.prototype.un=Qm.prototype.K,iw.prototype.getSource=iw.prototype.ha,iw.prototype.getStyle=iw.prototype.D,iw.prototype.getStyleFunction=iw.prototype.C,iw.prototype.setStyle=iw.prototype.g,iw.prototype.setSource=iw.prototype.Wc,iw.prototype.getExtent=iw.prototype.G,iw.prototype.getMaxResolution=iw.prototype.fc,iw.prototype.getMinResolution=iw.prototype.gc,iw.prototype.getOpacity=iw.prototype.hc,iw.prototype.getVisible=iw.prototype.Mb,iw.prototype.getZIndex=iw.prototype.Ba,iw.prototype.setExtent=iw.prototype.vc,iw.prototype.setMaxResolution=iw.prototype.Ac,iw.prototype.setMinResolution=iw.prototype.Bc,iw.prototype.setOpacity=iw.prototype.wc,iw.prototype.setVisible=iw.prototype.xc,iw.prototype.setZIndex=iw.prototype.Vb,iw.prototype.getKeys=iw.prototype.O,iw.prototype.getProperties=iw.prototype.N,iw.prototype.setProperties=iw.prototype.H,iw.prototype.unset=iw.prototype.P,iw.prototype.changed=iw.prototype.s,iw.prototype.dispatchEvent=iw.prototype.b,iw.prototype.getRevision=iw.prototype.L,iw.prototype.on=iw.prototype.J,iw.prototype.un=iw.prototype.K,Or.prototype.getKeys=Or.prototype.O,Or.prototype.getProperties=Or.prototype.N,Or.prototype.setProperties=Or.prototype.H,Or.prototype.unset=Or.prototype.P,Or.prototype.changed=Or.prototype.s,Or.prototype.dispatchEvent=Or.prototype.b,Or.prototype.getRevision=Or.prototype.L,Or.prototype.on=Or.prototype.J,Or.prototype.un=Or.prototype.K,Xr.prototype.getActive=Xr.prototype.c,Xr.prototype.getMap=Xr.prototype.f,Xr.prototype.setActive=Xr.prototype.Ha,Xr.prototype.getKeys=Xr.prototype.O,Xr.prototype.getProperties=Xr.prototype.N,Xr.prototype.setProperties=Xr.prototype.H,Xr.prototype.unset=Xr.prototype.P,Xr.prototype.changed=Xr.prototype.s,Xr.prototype.dispatchEvent=Xr.prototype.b,Xr.prototype.getRevision=Xr.prototype.L,Xr.prototype.on=Xr.prototype.J,Xr.prototype.un=Xr.prototype.K,nv.prototype.getActive=nv.prototype.c,nv.prototype.getMap=nv.prototype.f,nv.prototype.setActive=nv.prototype.Ha,nv.prototype.getKeys=nv.prototype.O,nv.prototype.getProperties=nv.prototype.N,nv.prototype.setProperties=nv.prototype.H,nv.prototype.unset=nv.prototype.P,nv.prototype.changed=nv.prototype.s,nv.prototype.dispatchEvent=nv.prototype.b,nv.prototype.getRevision=nv.prototype.L,nv.prototype.on=nv.prototype.J,nv.prototype.un=nv.prototype.K,$r.prototype.getActive=$r.prototype.c,$r.prototype.getMap=$r.prototype.f,$r.prototype.setActive=$r.prototype.Ha,$r.prototype.getKeys=$r.prototype.O,$r.prototype.getProperties=$r.prototype.N,$r.prototype.setProperties=$r.prototype.H,$r.prototype.unset=$r.prototype.P,$r.prototype.changed=$r.prototype.s,$r.prototype.dispatchEvent=$r.prototype.b,$r.prototype.getRevision=$r.prototype.L,$r.prototype.on=$r.prototype.J,$r.prototype.un=$r.prototype.K,fn.prototype.getActive=fn.prototype.c,fn.prototype.getMap=fn.prototype.f,fn.prototype.setActive=fn.prototype.Ha,fn.prototype.getKeys=fn.prototype.O,fn.prototype.getProperties=fn.prototype.N,fn.prototype.setProperties=fn.prototype.H,fn.prototype.unset=fn.prototype.P,fn.prototype.changed=fn.prototype.s,fn.prototype.dispatchEvent=fn.prototype.b,fn.prototype.getRevision=fn.prototype.L,fn.prototype.on=fn.prototype.J,fn.prototype.un=fn.prototype.K,en.prototype.getActive=en.prototype.c,en.prototype.getMap=en.prototype.f,en.prototype.setActive=en.prototype.Ha,en.prototype.getKeys=en.prototype.O,en.prototype.getProperties=en.prototype.N,en.prototype.setProperties=en.prototype.H,en.prototype.unset=en.prototype.P,en.prototype.changed=en.prototype.s,en.prototype.dispatchEvent=en.prototype.b,en.prototype.getRevision=en.prototype.L,en.prototype.on=en.prototype.J,en.prototype.un=en.prototype.K,sn.prototype.getActive=sn.prototype.c,sn.prototype.getMap=sn.prototype.f,sn.prototype.setActive=sn.prototype.Ha,sn.prototype.getKeys=sn.prototype.O,sn.prototype.getProperties=sn.prototype.N,sn.prototype.setProperties=sn.prototype.H,sn.prototype.unset=sn.prototype.P,sn.prototype.changed=sn.prototype.s,sn.prototype.dispatchEvent=sn.prototype.b,sn.prototype.getRevision=sn.prototype.L,sn.prototype.on=sn.prototype.J,sn.prototype.un=sn.prototype.K,cv.prototype.getActive=cv.prototype.c,cv.prototype.getMap=cv.prototype.f,cv.prototype.setActive=cv.prototype.Ha,cv.prototype.getKeys=cv.prototype.O,cv.prototype.getProperties=cv.prototype.N,cv.prototype.setProperties=cv.prototype.H,cv.prototype.unset=cv.prototype.P,cv.prototype.changed=cv.prototype.s,cv.prototype.dispatchEvent=cv.prototype.b,cv.prototype.getRevision=cv.prototype.L,cv.prototype.on=cv.prototype.J,cv.prototype.un=cv.prototype.K,Sn.prototype.getGeometry=Sn.prototype.V,Sn.prototype.getActive=Sn.prototype.c,Sn.prototype.getMap=Sn.prototype.f,Sn.prototype.setActive=Sn.prototype.Ha,Sn.prototype.getKeys=Sn.prototype.O,Sn.prototype.getProperties=Sn.prototype.N,Sn.prototype.setProperties=Sn.prototype.H,Sn.prototype.unset=Sn.prototype.P,Sn.prototype.changed=Sn.prototype.s,Sn.prototype.dispatchEvent=Sn.prototype.b,Sn.prototype.getRevision=Sn.prototype.L,Sn.prototype.on=Sn.prototype.J,Sn.prototype.un=Sn.prototype.K,mb.prototype.getActive=mb.prototype.c,mb.prototype.getMap=mb.prototype.f,mb.prototype.setActive=mb.prototype.Ha,mb.prototype.getKeys=mb.prototype.O,mb.prototype.getProperties=mb.prototype.N,mb.prototype.setProperties=mb.prototype.H,mb.prototype.unset=mb.prototype.P,mb.prototype.changed=mb.prototype.s,mb.prototype.dispatchEvent=mb.prototype.b,mb.prototype.getRevision=mb.prototype.L,mb.prototype.on=mb.prototype.J,mb.prototype.un=mb.prototype.K,Fb.prototype.getActive=Fb.prototype.c,Fb.prototype.getMap=Fb.prototype.f,Fb.prototype.setActive=Fb.prototype.Ha,Fb.prototype.getKeys=Fb.prototype.O,Fb.prototype.getProperties=Fb.prototype.N,Fb.prototype.setProperties=Fb.prototype.H,Fb.prototype.unset=Fb.prototype.P,Fb.prototype.changed=Fb.prototype.s,Fb.prototype.dispatchEvent=Fb.prototype.b,Fb.prototype.getRevision=Fb.prototype.L,Fb.prototype.on=Fb.prototype.J,Fb.prototype.un=Fb.prototype.K,Mn.prototype.getActive=Mn.prototype.c,Mn.prototype.getMap=Mn.prototype.f,Mn.prototype.setActive=Mn.prototype.Ha,Mn.prototype.getKeys=Mn.prototype.O,Mn.prototype.getProperties=Mn.prototype.N,Mn.prototype.setProperties=Mn.prototype.H,Mn.prototype.unset=Mn.prototype.P,Mn.prototype.changed=Mn.prototype.s,Mn.prototype.dispatchEvent=Mn.prototype.b,Mn.prototype.getRevision=Mn.prototype.L,Mn.prototype.on=Mn.prototype.J,Mn.prototype.un=Mn.prototype.K,An.prototype.getActive=An.prototype.c,An.prototype.getMap=An.prototype.f,An.prototype.setActive=An.prototype.Ha,An.prototype.getKeys=An.prototype.O,An.prototype.getProperties=An.prototype.N,An.prototype.setProperties=An.prototype.H,An.prototype.unset=An.prototype.P,An.prototype.changed=An.prototype.s,An.prototype.dispatchEvent=An.prototype.b,An.prototype.getRevision=An.prototype.L,An.prototype.on=An.prototype.J,An.prototype.un=An.prototype.K,Kb.prototype.getActive=Kb.prototype.c,Kb.prototype.getMap=Kb.prototype.f,Kb.prototype.setActive=Kb.prototype.Ha,Kb.prototype.getKeys=Kb.prototype.O,Kb.prototype.getProperties=Kb.prototype.N,Kb.prototype.setProperties=Kb.prototype.H,Kb.prototype.unset=Kb.prototype.P,Kb.prototype.changed=Kb.prototype.s,Kb.prototype.dispatchEvent=Kb.prototype.b,Kb.prototype.getRevision=Kb.prototype.L,Kb.prototype.on=Kb.prototype.J,Kb.prototype.un=Kb.prototype.K,Tn.prototype.getActive=Tn.prototype.c,Tn.prototype.getMap=Tn.prototype.f,Tn.prototype.setActive=Tn.prototype.Ha,Tn.prototype.getKeys=Tn.prototype.O,Tn.prototype.getProperties=Tn.prototype.N,Tn.prototype.setProperties=Tn.prototype.H,Tn.prototype.unset=Tn.prototype.P,Tn.prototype.changed=Tn.prototype.s,Tn.prototype.dispatchEvent=Tn.prototype.b,Tn.prototype.getRevision=Tn.prototype.L,Tn.prototype.on=Tn.prototype.J,Tn.prototype.un=Tn.prototype.K,Rn.prototype.getActive=Rn.prototype.c,Rn.prototype.getMap=Rn.prototype.f,Rn.prototype.setActive=Rn.prototype.Ha,Rn.prototype.getKeys=Rn.prototype.O,Rn.prototype.getProperties=Rn.prototype.N,Rn.prototype.setProperties=Rn.prototype.H,Rn.prototype.unset=Rn.prototype.P,Rn.prototype.changed=Rn.prototype.s,Rn.prototype.dispatchEvent=Rn.prototype.b,Rn.prototype.getRevision=Rn.prototype.L,Rn.prototype.on=Rn.prototype.J,Rn.prototype.un=Rn.prototype.K,kn.prototype.getActive=kn.prototype.c,kn.prototype.getMap=kn.prototype.f,kn.prototype.setActive=kn.prototype.Ha,kn.prototype.getKeys=kn.prototype.O,kn.prototype.getProperties=kn.prototype.N,kn.prototype.setProperties=kn.prototype.H,kn.prototype.unset=kn.prototype.P,kn.prototype.changed=kn.prototype.s,kn.prototype.dispatchEvent=kn.prototype.b,kn.prototype.getRevision=kn.prototype.L,kn.prototype.on=kn.prototype.J,kn.prototype.un=kn.prototype.K,nm.prototype.getActive=nm.prototype.c,nm.prototype.getMap=nm.prototype.f,nm.prototype.setActive=nm.prototype.Ha,nm.prototype.getKeys=nm.prototype.O,nm.prototype.getProperties=nm.prototype.N,nm.prototype.setProperties=nm.prototype.H,nm.prototype.unset=nm.prototype.P,nm.prototype.changed=nm.prototype.s,nm.prototype.dispatchEvent=nm.prototype.b,nm.prototype.getRevision=nm.prototype.L,nm.prototype.on=nm.prototype.J,nm.prototype.un=nm.prototype.K,hm.prototype.getActive=hm.prototype.c,hm.prototype.getMap=hm.prototype.f,hm.prototype.setActive=hm.prototype.Ha,hm.prototype.getKeys=hm.prototype.O,hm.prototype.getProperties=hm.prototype.N,hm.prototype.setProperties=hm.prototype.H,hm.prototype.unset=hm.prototype.P,hm.prototype.changed=hm.prototype.s,hm.prototype.dispatchEvent=hm.prototype.b,hm.prototype.getRevision=hm.prototype.L,hm.prototype.on=hm.prototype.J,hm.prototype.un=hm.prototype.K,fm.prototype.getActive=fm.prototype.c,fm.prototype.getMap=fm.prototype.f,fm.prototype.setActive=fm.prototype.Ha,fm.prototype.getKeys=fm.prototype.O,fm.prototype.getProperties=fm.prototype.N,fm.prototype.setProperties=fm.prototype.H,fm.prototype.unset=fm.prototype.P,fm.prototype.changed=fm.prototype.s,fm.prototype.dispatchEvent=fm.prototype.b,fm.prototype.getRevision=fm.prototype.L,fm.prototype.on=fm.prototype.J,fm.prototype.un=fm.prototype.K,Bi.prototype.getKeys=Bi.prototype.O,Bi.prototype.getProperties=Bi.prototype.N,Bi.prototype.setProperties=Bi.prototype.H,Bi.prototype.unset=Bi.prototype.P,Bi.prototype.changed=Bi.prototype.s,Bi.prototype.dispatchEvent=Bi.prototype.b,Bi.prototype.getRevision=Bi.prototype.L,Bi.prototype.on=Bi.prototype.J,Bi.prototype.un=Bi.prototype.K,Wi.prototype.getClosestPoint=Wi.prototype.Ab,Wi.prototype.intersectsCoordinate=Wi.prototype.sb,Wi.prototype.getExtent=Wi.prototype.G,Wi.prototype.simplify=Wi.prototype.Rb,Wi.prototype.transform=Wi.prototype.tb,Wi.prototype.getKeys=Wi.prototype.O,Wi.prototype.getProperties=Wi.prototype.N,Wi.prototype.setProperties=Wi.prototype.H,Wi.prototype.unset=Wi.prototype.P,Wi.prototype.changed=Wi.prototype.s,Wi.prototype.dispatchEvent=Wi.prototype.b,Wi.prototype.getRevision=Wi.prototype.L,Wi.prototype.on=Wi.prototype.J,Wi.prototype.un=Wi.prototype.K,Vd.prototype.getFirstCoordinate=Vd.prototype.ac,Vd.prototype.getLastCoordinate=Vd.prototype.bc,Vd.prototype.getLayout=Vd.prototype.cc,Vd.prototype.getClosestPoint=Vd.prototype.Ab,Vd.prototype.intersectsCoordinate=Vd.prototype.sb,Vd.prototype.getExtent=Vd.prototype.G,Vd.prototype.simplify=Vd.prototype.Rb,Vd.prototype.getKeys=Vd.prototype.O,Vd.prototype.getProperties=Vd.prototype.N,Vd.prototype.setProperties=Vd.prototype.H,Vd.prototype.unset=Vd.prototype.P,Vd.prototype.changed=Vd.prototype.s,Vd.prototype.dispatchEvent=Vd.prototype.b,Vd.prototype.getRevision=Vd.prototype.L,Vd.prototype.on=Vd.prototype.J,Vd.prototype.un=Vd.prototype.K,_l.prototype.getClosestPoint=_l.prototype.Ab,_l.prototype.intersectsCoordinate=_l.prototype.sb,_l.prototype.getExtent=_l.prototype.G,_l.prototype.simplify=_l.prototype.Rb,_l.prototype.transform=_l.prototype.tb,_l.prototype.getKeys=_l.prototype.O,_l.prototype.getProperties=_l.prototype.N,_l.prototype.setProperties=_l.prototype.H,_l.prototype.unset=_l.prototype.P,_l.prototype.changed=_l.prototype.s,_l.prototype.dispatchEvent=_l.prototype.b,_l.prototype.getRevision=_l.prototype.L,_l.prototype.on=_l.prototype.J,_l.prototype.un=_l.prototype.K,ar.prototype.getFirstCoordinate=ar.prototype.ac,ar.prototype.getLastCoordinate=ar.prototype.bc,ar.prototype.getLayout=ar.prototype.cc,ar.prototype.getClosestPoint=ar.prototype.Ab,ar.prototype.intersectsCoordinate=ar.prototype.sb,ar.prototype.getExtent=ar.prototype.G,ar.prototype.simplify=ar.prototype.Rb,ar.prototype.transform=ar.prototype.tb,ar.prototype.getKeys=ar.prototype.O,ar.prototype.getProperties=ar.prototype.N,ar.prototype.setProperties=ar.prototype.H,ar.prototype.unset=ar.prototype.P,ar.prototype.changed=ar.prototype.s,ar.prototype.dispatchEvent=ar.prototype.b,ar.prototype.getRevision=ar.prototype.L,ar.prototype.on=ar.prototype.J,ar.prototype.un=ar.prototype.K,ll.prototype.getFirstCoordinate=ll.prototype.ac,ll.prototype.getLastCoordinate=ll.prototype.bc,ll.prototype.getLayout=ll.prototype.cc,ll.prototype.getClosestPoint=ll.prototype.Ab,ll.prototype.intersectsCoordinate=ll.prototype.sb,ll.prototype.getExtent=ll.prototype.G,ll.prototype.simplify=ll.prototype.Rb,ll.prototype.transform=ll.prototype.tb,ll.prototype.getKeys=ll.prototype.O,ll.prototype.getProperties=ll.prototype.N,ll.prototype.setProperties=ll.prototype.H,ll.prototype.unset=ll.prototype.P,ll.prototype.changed=ll.prototype.s,ll.prototype.dispatchEvent=ll.prototype.b,ll.prototype.getRevision=ll.prototype.L,ll.prototype.on=ll.prototype.J,ll.prototype.un=ll.prototype.K,cl.prototype.getFirstCoordinate=cl.prototype.ac,cl.prototype.getLastCoordinate=cl.prototype.bc,cl.prototype.getLayout=cl.prototype.cc,cl.prototype.getClosestPoint=cl.prototype.Ab,cl.prototype.intersectsCoordinate=cl.prototype.sb,cl.prototype.getExtent=cl.prototype.G,cl.prototype.simplify=cl.prototype.Rb,cl.prototype.transform=cl.prototype.tb,cl.prototype.getKeys=cl.prototype.O,cl.prototype.getProperties=cl.prototype.N,cl.prototype.setProperties=cl.prototype.H,cl.prototype.unset=cl.prototype.P,cl.prototype.changed=cl.prototype.s,cl.prototype.dispatchEvent=cl.prototype.b,cl.prototype.getRevision=cl.prototype.L,cl.prototype.on=cl.prototype.J,cl.prototype.un=cl.prototype.K,gl.prototype.getFirstCoordinate=gl.prototype.ac,gl.prototype.getLastCoordinate=gl.prototype.bc,gl.prototype.getLayout=gl.prototype.cc,gl.prototype.getClosestPoint=gl.prototype.Ab,gl.prototype.intersectsCoordinate=gl.prototype.sb,gl.prototype.getExtent=gl.prototype.G,gl.prototype.simplify=gl.prototype.Rb,gl.prototype.transform=gl.prototype.tb,gl.prototype.getKeys=gl.prototype.O,gl.prototype.getProperties=gl.prototype.N,gl.prototype.setProperties=gl.prototype.H,gl.prototype.unset=gl.prototype.P,gl.prototype.changed=gl.prototype.s,gl.prototype.dispatchEvent=gl.prototype.b,gl.prototype.getRevision=gl.prototype.L,gl.prototype.on=gl.prototype.J,gl.prototype.un=gl.prototype.K,dl.prototype.getFirstCoordinate=dl.prototype.ac,dl.prototype.getLastCoordinate=dl.prototype.bc,dl.prototype.getLayout=dl.prototype.cc,dl.prototype.getClosestPoint=dl.prototype.Ab,dl.prototype.intersectsCoordinate=dl.prototype.sb,dl.prototype.getExtent=dl.prototype.G,dl.prototype.simplify=dl.prototype.Rb,dl.prototype.transform=dl.prototype.tb,dl.prototype.getKeys=dl.prototype.O,dl.prototype.getProperties=dl.prototype.N,dl.prototype.setProperties=dl.prototype.H,dl.prototype.unset=dl.prototype.P,dl.prototype.changed=dl.prototype.s,dl.prototype.dispatchEvent=dl.prototype.b,dl.prototype.getRevision=dl.prototype.L,dl.prototype.on=dl.prototype.J,dl.prototype.un=dl.prototype.K,hr.prototype.getFirstCoordinate=hr.prototype.ac,hr.prototype.getLastCoordinate=hr.prototype.bc,hr.prototype.getLayout=hr.prototype.cc,hr.prototype.getClosestPoint=hr.prototype.Ab,hr.prototype.intersectsCoordinate=hr.prototype.sb,hr.prototype.getExtent=hr.prototype.G,hr.prototype.simplify=hr.prototype.Rb,hr.prototype.transform=hr.prototype.tb,hr.prototype.getKeys=hr.prototype.O,hr.prototype.getProperties=hr.prototype.N,hr.prototype.setProperties=hr.prototype.H,hr.prototype.unset=hr.prototype.P,hr.prototype.changed=hr.prototype.s,hr.prototype.dispatchEvent=hr.prototype.b,hr.prototype.getRevision=hr.prototype.L,hr.prototype.on=hr.prototype.J,hr.prototype.un=hr.prototype.K,wr.prototype.getFirstCoordinate=wr.prototype.ac,wr.prototype.getLastCoordinate=wr.prototype.bc,wr.prototype.getLayout=wr.prototype.cc,wr.prototype.getClosestPoint=wr.prototype.Ab,wr.prototype.intersectsCoordinate=wr.prototype.sb,wr.prototype.getExtent=wr.prototype.G,wr.prototype.simplify=wr.prototype.Rb,wr.prototype.transform=wr.prototype.tb,wr.prototype.getKeys=wr.prototype.O,wr.prototype.getProperties=wr.prototype.N,wr.prototype.setProperties=wr.prototype.H,wr.prototype.unset=wr.prototype.P,wr.prototype.changed=wr.prototype.s,wr.prototype.dispatchEvent=wr.prototype.b,wr.prototype.getRevision=wr.prototype.L,wr.prototype.on=wr.prototype.J,wr.prototype.un=wr.prototype.K,Mu.prototype.readFeatures=Mu.prototype.Oa,Nu.prototype.readFeatures=Nu.prototype.Oa,Mu.prototype.readFeatures=Mu.prototype.Oa,Je.prototype.getKeys=Je.prototype.O,Je.prototype.getProperties=Je.prototype.N,Je.prototype.setProperties=Je.prototype.H,Je.prototype.unset=Je.prototype.P,Je.prototype.changed=Je.prototype.s,Je.prototype.dispatchEvent=Je.prototype.b,Je.prototype.getRevision=Je.prototype.L,Je.prototype.on=Je.prototype.J,Je.prototype.un=Je.prototype.K,_e.prototype.getMap=_e.prototype.g,_e.prototype.setTarget=_e.prototype.f,_e.prototype.getKeys=_e.prototype.O,_e.prototype.getProperties=_e.prototype.N,_e.prototype.setProperties=_e.prototype.H,_e.prototype.unset=_e.prototype.P,_e.prototype.changed=_e.prototype.s,_e.prototype.dispatchEvent=_e.prototype.b,_e.prototype.getRevision=_e.prototype.L,_e.prototype.on=_e.prototype.J,_e.prototype.un=_e.prototype.K,po.prototype.getMap=po.prototype.g,po.prototype.setTarget=po.prototype.f,po.prototype.getKeys=po.prototype.O,po.prototype.getProperties=po.prototype.N,po.prototype.setProperties=po.prototype.H,po.prototype.unset=po.prototype.P,po.prototype.changed=po.prototype.s,po.prototype.dispatchEvent=po.prototype.b,po.prototype.getRevision=po.prototype.L,po.prototype.on=po.prototype.J,po.prototype.un=po.prototype.K,yo.prototype.getMap=yo.prototype.g,yo.prototype.setTarget=yo.prototype.f,yo.prototype.getKeys=yo.prototype.O,yo.prototype.getProperties=yo.prototype.N,yo.prototype.setProperties=yo.prototype.H,yo.prototype.unset=yo.prototype.P,yo.prototype.changed=yo.prototype.s,yo.prototype.dispatchEvent=yo.prototype.b,yo.prototype.getRevision=yo.prototype.L,yo.prototype.on=yo.prototype.J,yo.prototype.un=yo.prototype.K,Qp.prototype.getMap=Qp.prototype.g,Qp.prototype.setTarget=Qp.prototype.f,Qp.prototype.getKeys=Qp.prototype.O,Qp.prototype.getProperties=Qp.prototype.N,Qp.prototype.setProperties=Qp.prototype.H,Qp.prototype.unset=Qp.prototype.P,Qp.prototype.changed=Qp.prototype.s,Qp.prototype.dispatchEvent=Qp.prototype.b,Qp.prototype.getRevision=Qp.prototype.L,Qp.prototype.on=Qp.prototype.J,Qp.prototype.un=Qp.prototype.K,ro.prototype.getMap=ro.prototype.g,ro.prototype.setTarget=ro.prototype.f,ro.prototype.getKeys=ro.prototype.O,ro.prototype.getProperties=ro.prototype.N,ro.prototype.setProperties=ro.prototype.H,ro.prototype.unset=ro.prototype.P,ro.prototype.changed=ro.prototype.s,ro.prototype.dispatchEvent=ro.prototype.b,ro.prototype.getRevision=ro.prototype.L,ro.prototype.on=ro.prototype.J,ro.prototype.un=ro.prototype.K,rh.prototype.getMap=rh.prototype.g,rh.prototype.setTarget=rh.prototype.f,rh.prototype.getKeys=rh.prototype.O,rh.prototype.getProperties=rh.prototype.N,rh.prototype.setProperties=rh.prototype.H,rh.prototype.unset=rh.prototype.P,rh.prototype.changed=rh.prototype.s,rh.prototype.dispatchEvent=rh.prototype.b,rh.prototype.getRevision=rh.prototype.L,rh.prototype.on=rh.prototype.J,rh.prototype.un=rh.prototype.K,so.prototype.getMap=so.prototype.g,so.prototype.setMap,so.prototype.setTarget=so.prototype.f,so.prototype.get,so.prototype.getKeys=so.prototype.O,so.prototype.getProperties=so.prototype.N,so.prototype.set,so.prototype.setProperties=so.prototype.H,so.prototype.unset=so.prototype.P,so.prototype.changed=so.prototype.s,so.prototype.dispatchEvent=so.prototype.b,so.prototype.getRevision=so.prototype.L,so.prototype.on=so.prototype.J,so.prototype.once,so.prototype.un=so.prototype.K,hh.prototype.getMap=hh.prototype.g,hh.prototype.setTarget=hh.prototype.f,hh.prototype.getKeys=hh.prototype.O,hh.prototype.getProperties=hh.prototype.N,hh.prototype.setProperties=hh.prototype.H,hh.prototype.unset=hh.prototype.P,hh.prototype.changed=hh.prototype.s,hh.prototype.dispatchEvent=hh.prototype.b,hh.prototype.getRevision=hh.prototype.L,hh.prototype.on=hh.prototype.J,hh.prototype.un=hh.prototype.K,yh.prototype.getMap=yh.prototype.g,yh.prototype.setTarget=yh.prototype.f,yh.prototype.getKeys=yh.prototype.O,yh.prototype.getProperties=yh.prototype.N,yh.prototype.setProperties=yh.prototype.H,yh.prototype.unset=yh.prototype.P,yh.prototype.changed=yh.prototype.s,yh.prototype.dispatchEvent=yh.prototype.b,yh.prototype.getRevision=yh.prototype.L,yh.prototype.on=yh.prototype.J,yh.prototype.un=yh.prototype.K,r.ol})
\ No newline at end of file
public/scripts/ol3-contextmenu-min.js
+1 -1
@@ -1 +1 @@
1 -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ContextMenu=e()}(this,function(){"use strict";function e(t){return this.Base=t,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:t.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this}var t="ol-ctx-menu",i="beforeopen",n="open",s="close",o="contextmenu",l={container:t+"-container",separator:t+"-separator",submenu:t+"-submenu",hidden:t+"-hidden",icon:t+"-icon",zoomIn:t+"-zoom-in",zoomOut:t+"-zoom-out",OL_unselectable:"ol-unselectable"},a={width:150,scrollAt:4,eventType:o,defaultItems:!0},r=[{text:"Zoom In",classname:[l.zoomIn,l.icon].join(" "),callback:function(t,e){e=e.getView();e.animate({zoom:+e.getZoom()+1,duration:700,center:t.coordinate})}},{text:"Zoom Out",classname:[l.zoomOut,l.icon].join(" "),callback:function(t,e){e=e.getView();e.animate({zoom:+e.getZoom()-1,duration:700,center:t.coordinate})}}],c={isNumeric:function(t){return/^\d+$/.test(t)},classRegex:function(t){return new RegExp("(^|\\s+) "+t+" (\\s+|$)")},addClass:function(t,e,n){var i=this;if(Array.isArray(t))t.forEach(function(t){i.addClass(t,e)});else for(var s=Array.isArray(e)?e:e.split(/\s+/),o=s.length;o--;)i.hasClass(t,s[o])||i._addClass(t,s[o],n)},_addClass:function(t,e,n){var i=this;t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim(),n&&this.isNumeric(n)&&window.setTimeout(function(){i._removeClass(t,e)},n)},removeClass:function(t,e,n){var i=this;if(Array.isArray(t))t.forEach(function(t){i.removeClass(t,e,n)});else for(var s=Array.isArray(e)?e:e.split(/\s+/),o=s.length;o--;)i.hasClass(t,s[o])&&i._removeClass(t,s[o],n)},_removeClass:function(t,e,n){var i=this;t.classList?t.classList.remove(e):t.className=t.className.replace(this.classRegex(e)," ").trim(),n&&this.isNumeric(n)&&window.setTimeout(function(){i._addClass(t,e)},n)},hasClass:function(t,e){return t.classList?t.classList.contains(e):this.classRegex(e).test(t.className)},toggleClass:function(t,e){var n=this;return Array.isArray(t)?void t.forEach(function(t){n.toggleClass(t,e)}):void(t.classList?t.classList.toggle(e):this.hasClass(t,e)?this._removeClass(t,e):this._addClass(t,e))},$:function(t){return t="#"===t[0]?t.substr(1,t.length):t,document.getElementById(t)},isElement:function(t){return"HTMLElement"in window?!!t&&t instanceof HTMLElement:!!t&&"object"==typeof t&&1===t.nodeType&&!!t.nodeName},find:function(t,e,n){void 0===e&&(e=window.document);var i=Array.prototype.slice,s=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(t))switch(t[0]){case"#":s=[this.$(t.substr(1))];break;case".":s=i.call(e.getElementsByClassName(t.substr(1).replace(/\./g," ")));break;default:s=i.call(e.getElementsByTagName(t))}else s=i.call(e.querySelectorAll(t));return n?s:s[0]},offset:function(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+window.pageXOffset-n.clientLeft,top:e.top+window.pageYOffset-n.clientTop,width:t.offsetWidth,height:t.offsetHeight}},getViewportSize:function(){return{w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight}},getAllChildren:function(t,e){return[].slice.call(t.getElementsByTagName(e))},isEmpty:function(t){return!t||0===t.length},emptyArray:function(t){for(;t.length;)t.pop()},removeAllChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},mergeOptions:function(t,e){var n,i,s={};for(n in t)s[n]=t[n];for(i in e)s[i]=e[i];return s},createFragment:function(t){var e=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=t;n.firstChild;)e.appendChild(n.firstChild);return e},contains:function(t,e){return!!~e.indexOf(t)},getUniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)},isDefAndNotNull:function(t){return null!=t},assertEqual:function(t,e,n){if(t!==e)throw new Error(n+" mismatch: "+t+" != "+e)},assert:function(t,e){if(void 0===e&&(e="Assertion failed"),!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}};e.prototype.init=function(t){this.map=t,this.viewport=t.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=0<this.getItemsLength()?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},e.prototype.getItemsLength=function(){var e=this,n=0;return Object.keys(this.items).forEach(function(t){e.items[t].submenu||e.items[t].separator||n++}),n},e.prototype.getPixelClicked=function(){return this.pixelClicked},e.prototype.getCoordinateClicked=function(){return this.coordinateClicked},e.prototype.positionContainer=function(t){var o=this,e=this.map.getSize(),n=e[0],a=e[1]-t[1],i=n-t[0],s=this.Base.container.offsetWidth,e=Math.round(this.lineHeight*this.getItemsLength()),n=c.find("li."+l.submenu+"> div",this.Base.container,!0);s<=i?(this.Base.container.style.right="auto",this.Base.container.style.left=t[0]+5+"px"):(this.Base.container.style.left="auto",this.Base.container.style.right="15px"),e<=a?(this.Base.container.style.bottom="auto",this.Base.container.style.top=t[1]-10+"px"):(this.Base.container.style.top="auto",this.Base.container.style.bottom=0),c.removeClass(this.Base.container,l.hidden),n.length&&(this.submenu.lastLeft=i<2*s?"-"+s+"px":this.submenu.left,n.forEach(function(t){var e=c.getViewportSize(),n=c.offset(t),i=n.height,s=a-i;s<0&&(s=i-(e.h-n.top),t.style.top="-"+s+"px"),t.style.left=o.submenu.lastLeft}))},e.prototype.openMenu=function(t,e){this.Base.dispatchEvent({type:n,pixel:t,coordinate:e}),this.opened=!0,this.positionContainer(t)},e.prototype.closeMenu=function(){this.opened=!1,c.addClass(this.Base.container,l.hidden),this.Base.dispatchEvent({type:s})},e.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1)},e.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1)},e.prototype.handleEvent=function(e){var n=this;this.coordinateClicked=this.map.getEventCoordinate(e),this.pixelClicked=this.map.getEventPixel(e),this.Base.dispatchEvent({type:i,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===o&&(e.stopPropagation(),e.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),e.target.addEventListener("mousedown",{handleEvent:function(t){n.closeMenu(),e.target.removeEventListener(t.type,this,!1)}},!1))},e.prototype.setItemListener=function(t,e){var n,i=this;t&&"function"==typeof this.items[e].callback&&(n=this.items[e].callback,t.addEventListener("click",function(t){t.preventDefault();t={coordinate:i.getCoordinateClicked(),data:i.items[e].data||null};i.closeMenu(),n(t,i.map)},!1))};function h(t){return this.Base=t,this.Base.container=this.container=this.createContainer(),this}var d;function u(t){c.assert("object"==typeof(t=void 0===t?{}:t),"@param `opt_options` should be object type!"),"default_items"in t&&(a.defaultItems=t.default_items),this.options=c.mergeOptions(a,t),this.disabled=!1,this.Internal=new e(this),this.Html=new h(this),d.call(this,{element:this.container})}return h.prototype.createContainer=function(t){var e=document.createElement("div"),n=document.createElement("ul"),i=[l.container,l.OL_unselectable];return t&&i.push(l.hidden),e.className=i.join(" "),e.style.width=parseInt(this.Base.options.width,10)+"px",e.appendChild(n),e},h.prototype.createMenu=function(){var t=[];return"items"in this.Base.options?t=this.Base.options.defaultItems?this.Base.options.items.concat(r):this.Base.options.items:this.Base.options.defaultItems&&(t=r),0!==t.length&&void t.forEach(this.addMenuEntry,this)},h.prototype.addMenuEntry=function(t){var e,n,i=this;t.items&&Array.isArray(t.items)?(t.classname=t.classname||"",c.contains(l.submenu,t.classname)||(t.classname=t.classname.length?" "+l.submenu:l.submenu),e=this.generateHtmlAndPublish(this.container,t),(n=this.createContainer()).style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,e.appendChild(n),t.items.forEach(function(t){i.generateHtmlAndPublish(n,t,!0)})):this.generateHtmlAndPublish(this.container,t)},h.prototype.generateHtmlAndPublish=function(t,e,n){var i,s,o,a=!1,r=c.getUniqueId();return"string"==typeof e&&"-"===e.trim()?(i=['<li id="',r,'" class="',l.separator,'">',"<hr></li>"].join(""),s=c.createFragment(i),o=[].slice.call(s.childNodes,0)[0],t.firstChild.appendChild(s),a=!0):(e.classname=e.classname||"",i="<span>"+e.text+"</span>",s=c.createFragment(i),o=document.createElement("li"),e.icon&&(""===e.classname?e.classname=l.icon:-1===e.classname.indexOf(l.icon)&&(e.classname+=" "+l.icon),o.setAttribute("style","background-image:url("+e.icon+")")),o.id=r,o.className=e.classname,o.appendChild(s),t.firstChild.appendChild(o)),this.Base.Internal.items[r]={id:r,submenu:n||0,separator:a,callback:e.callback,data:e.data||null},this.Base.Internal.setItemListener(o,r),o},h.prototype.removeMenuEntry=function(t){var e=c.find("#"+t,this.container.firstChild);e&&this.container.firstChild.removeChild(e),delete this.Base.Internal.items[t]},h.prototype.cloneAndGetLineHeight=function(){var t=this.container.cloneNode(),e=c.createFragment("<span>Foo</span>"),n=c.createFragment("<span>Foo</span>"),i=document.createElement("li"),s=document.createElement("li");i.appendChild(e),s.appendChild(n),t.appendChild(i),t.appendChild(s),this.container.parentNode.appendChild(t);s=t.offsetHeight/2;return this.container.parentNode.removeChild(t),s},(d=ol.control.Control)&&(u.__proto__=d),((u.prototype=Object.create(d&&d.prototype)).constructor=u).prototype.clear=function(){var e=this;Object.keys(this.Internal.items).forEach(function(t){e.Html.removeMenuEntry(t)})},u.prototype.close=function(){this.Internal.closeMenu()},u.prototype.enable=function(){this.disabled=!1},u.prototype.disable=function(){this.disabled=!0},u.prototype.getDefaultItems=function(){return r},u.prototype.extend=function(t){c.assert(Array.isArray(t),"@param `arr` should be an Array."),t.forEach(this.push,this)},u.prototype.isOpened=function(){return this.isOpen()},u.prototype.isOpen=function(){return this.Internal.opened},u.prototype.updatePosition=function(t){c.assert(Array.isArray(t),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(t)},u.prototype.pop=function(){var t=Object.keys(this.Internal.items);this.Html.removeMenuEntry(t[t.length-1])},u.prototype.push=function(t){c.assert(c.isDefAndNotNull(t),"@param `item` must be informed."),this.Html.addMenuEntry(t)},u.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},u.prototype.setMap=function(t){ol.control.Control.prototype.setMap.call(this,t),t?this.Internal.init(t,this):this.Internal.removeListeners()},u})
\ No newline at end of file
1 +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ContextMenu=e()}(this,function(){"use strict";function e(t){return this.Base=t,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:t.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this}var t="ol-ctx-menu",i="beforeopen",n="open",s="close",o="contextmenu",l={container:t+"-container",separator:t+"-separator",submenu:t+"-submenu",hidden:t+"-hidden",icon:t+"-icon",zoomIn:t+"-zoom-in",zoomOut:t+"-zoom-out",OL_unselectable:"ol-unselectable"},a={width:150,scrollAt:4,eventType:o,defaultItems:!0},r=[{text:"Zoom In",classname:[l.zoomIn,l.icon].join(" "),callback:function(t,e){e=e.getView();e.animate({zoom:+e.getZoom()+1,duration:700,center:t.coordinate})}},{text:"Zoom Out",classname:[l.zoomOut,l.icon].join(" "),callback:function(t,e){e=e.getView();e.animate({zoom:+e.getZoom()-1,duration:700,center:t.coordinate})}}],c={isNumeric:function(t){return/^\d+$/.test(t)},classRegex:function(t){return new RegExp("(^|\\s+) "+t+" (\\s+|$)")},addClass:function(t,e,n){var i=this;if(Array.isArray(t))t.forEach(function(t){i.addClass(t,e)});else for(var s=Array.isArray(e)?e:e.split(/\s+/),o=s.length;o--;)i.hasClass(t,s[o])||i._addClass(t,s[o],n)},_addClass:function(t,e,n){var i=this;t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim(),n&&this.isNumeric(n)&&window.setTimeout(function(){i._removeClass(t,e)},n)},removeClass:function(t,e,n){var i=this;if(Array.isArray(t))t.forEach(function(t){i.removeClass(t,e,n)});else for(var s=Array.isArray(e)?e:e.split(/\s+/),o=s.length;o--;)i.hasClass(t,s[o])&&i._removeClass(t,s[o],n)},_removeClass:function(t,e,n){var i=this;t.classList?t.classList.remove(e):t.className=t.className.replace(this.classRegex(e)," ").trim(),n&&this.isNumeric(n)&&window.setTimeout(function(){i._addClass(t,e)},n)},hasClass:function(t,e){return t.classList?t.classList.contains(e):this.classRegex(e).test(t.className)},toggleClass:function(t,e){var n=this;return Array.isArray(t)?void t.forEach(function(t){n.toggleClass(t,e)}):void(t.classList?t.classList.toggle(e):this.hasClass(t,e)?this._removeClass(t,e):this._addClass(t,e))},$:function(t){return t="#"===t[0]?t.substr(1,t.length):t,document.getElementById(t)},isElement:function(t){return"HTMLElement"in window?!!t&&t instanceof HTMLElement:!!t&&"object"==typeof t&&1===t.nodeType&&!!t.nodeName},find:function(t,e,n){void 0===e&&(e=window.document);var i=Array.prototype.slice,s=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(t))switch(t[0]){case"#":s=[this.$(t.substr(1))];break;case".":s=i.call(e.getElementsByClassName(t.substr(1).replace(/\./g," ")));break;default:s=i.call(e.getElementsByTagName(t))}else s=i.call(e.querySelectorAll(t));return n?s:s[0]},offset:function(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+window.pageXOffset-n.clientLeft,top:e.top+window.pageYOffset-n.clientTop,width:t.offsetWidth,height:t.offsetHeight}},getViewportSize:function(){return{w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight}},getAllChildren:function(t,e){return[].slice.call(t.getElementsByTagName(e))},isEmpty:function(t){return!t||0===t.length},emptyArray:function(t){for(;t.length;)t.pop()},removeAllChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},mergeOptions:function(t,e){var n,i,s={};for(n in t)s[n]=t[n];for(i in e)s[i]=e[i];return s},createFragment:function(t){var e=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=t;n.firstChild;)e.appendChild(n.firstChild);return e},contains:function(t,e){return!!~e.indexOf(t)},getUniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)},isDefAndNotNull:function(t){return null!=t},assertEqual:function(t,e,n){if(t!==e)throw new Error(n+" mismatch: "+t+" != "+e)},assert:function(t,e){if(void 0===e&&(e="Assertion failed"),!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}};e.prototype.init=function(t){this.map=t,this.viewport=t.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=0<this.getItemsLength()?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},e.prototype.getItemsLength=function(){var e=this,n=0;return Object.keys(this.items).forEach(function(t){e.items[t].submenu||e.items[t].separator||n++}),n},e.prototype.getPixelClicked=function(){return this.pixelClicked},e.prototype.getCoordinateClicked=function(){return this.coordinateClicked},e.prototype.positionContainer=function(t){var o=this,e=this.map.getSize(),n=e[0],a=e[1]-t[1],i=n-t[0],s=this.Base.container.offsetWidth,e=Math.round(this.lineHeight*this.getItemsLength()),n=c.find("li."+l.submenu+"> div",this.Base.container,!0);s<=i?(this.Base.container.style.right="auto",this.Base.container.style.left=t[0]+5+"px"):(this.Base.container.style.left="auto",this.Base.container.style.right="15px"),e<=a?(this.Base.container.style.bottom="auto",this.Base.container.style.top=t[1]-10+"px"):(this.Base.container.style.top="auto",this.Base.container.style.bottom=0),c.removeClass(this.Base.container,l.hidden),n.length&&(this.submenu.lastLeft=i<2*s?"-"+s+"px":this.submenu.left,n.forEach(function(t){var e=c.getViewportSize(),n=c.offset(t),i=n.height,s=a-i;s<0&&(s=i-(e.h-n.top),t.style.top="-"+s+"px"),t.style.left=o.submenu.lastLeft}))},e.prototype.openMenu=function(t,e){this.Base.dispatchEvent({type:n,pixel:t,coordinate:e}),this.opened=!0,this.positionContainer(t)},e.prototype.closeMenu=function(){this.opened=!1,c.addClass(this.Base.container,l.hidden),this.Base.dispatchEvent({type:s})},e.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1)},e.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1)},e.prototype.handleEvent=function(e){var n=this;this.coordinateClicked=this.map.getEventCoordinate(e),this.pixelClicked=this.map.getEventPixel(e),this.Base.dispatchEvent({type:i,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===o&&(e.stopPropagation(),e.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),e.target.addEventListener("mousedown",{handleEvent:function(t){n.closeMenu(),e.target.removeEventListener(t.type,this,!1)}},!1))},e.prototype.setItemListener=function(t,e){var n,i=this;t&&"function"==typeof this.items[e].callback&&(n=this.items[e].callback,t.addEventListener("click",function(t){t.preventDefault();t={coordinate:i.getCoordinateClicked(),data:i.items[e].data||null};i.closeMenu(),n(t,i.map)},!1))};function h(t){return this.Base=t,this.Base.container=this.container=this.createContainer(),this}var d;function u(t){void 0===t&&(t={}),c.assert("object"==typeof t,"@param `opt_options` should be object type!"),"default_items"in t&&(a.defaultItems=t.default_items),this.options=c.mergeOptions(a,t),this.disabled=!1,this.Internal=new e(this),this.Html=new h(this),d.call(this,{element:this.container})}return h.prototype.createContainer=function(t){var e=document.createElement("div"),n=document.createElement("ul"),i=[l.container,l.OL_unselectable];return t&&i.push(l.hidden),e.className=i.join(" "),e.style.width=parseInt(this.Base.options.width,10)+"px",e.appendChild(n),e},h.prototype.createMenu=function(){var t=[];return"items"in this.Base.options?t=this.Base.options.defaultItems?this.Base.options.items.concat(r):this.Base.options.items:this.Base.options.defaultItems&&(t=r),0!==t.length&&void t.forEach(this.addMenuEntry,this)},h.prototype.addMenuEntry=function(t){var e,n,i=this;t.items&&Array.isArray(t.items)?(t.classname=t.classname||"",c.contains(l.submenu,t.classname)||(t.classname=t.classname.length?" "+l.submenu:l.submenu),e=this.generateHtmlAndPublish(this.container,t),(n=this.createContainer()).style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,e.appendChild(n),t.items.forEach(function(t){i.generateHtmlAndPublish(n,t,!0)})):this.generateHtmlAndPublish(this.container,t)},h.prototype.generateHtmlAndPublish=function(t,e,n){var i,s,o,a=!1,r=c.getUniqueId();return"string"==typeof e&&"-"===e.trim()?(i=['<li id="',r,'" class="',l.separator,'">',"<hr></li>"].join(""),s=c.createFragment(i),o=[].slice.call(s.childNodes,0)[0],t.firstChild.appendChild(s),a=!0):(e.classname=e.classname||"",i="<span>"+e.text+"</span>",s=c.createFragment(i),o=document.createElement("li"),e.icon&&(""===e.classname?e.classname=l.icon:-1===e.classname.indexOf(l.icon)&&(e.classname+=" "+l.icon),o.setAttribute("style","background-image:url("+e.icon+")")),o.id=r,o.className=e.classname,o.appendChild(s),t.firstChild.appendChild(o)),this.Base.Internal.items[r]={id:r,submenu:n||0,separator:a,callback:e.callback,data:e.data||null},this.Base.Internal.setItemListener(o,r),o},h.prototype.removeMenuEntry=function(t){var e=c.find("#"+t,this.container.firstChild);e&&this.container.firstChild.removeChild(e),delete this.Base.Internal.items[t]},h.prototype.cloneAndGetLineHeight=function(){var t=this.container.cloneNode(),e=c.createFragment("<span>Foo</span>"),n=c.createFragment("<span>Foo</span>"),i=document.createElement("li"),s=document.createElement("li");i.appendChild(e),s.appendChild(n),t.appendChild(i),t.appendChild(s),this.container.parentNode.appendChild(t);s=t.offsetHeight/2;return this.container.parentNode.removeChild(t),s},(d=ol.control.Control)&&(u.__proto__=d),((u.prototype=Object.create(d&&d.prototype)).constructor=u).prototype.clear=function(){var e=this;Object.keys(this.Internal.items).forEach(function(t){e.Html.removeMenuEntry(t)})},u.prototype.close=function(){this.Internal.closeMenu()},u.prototype.enable=function(){this.disabled=!1},u.prototype.disable=function(){this.disabled=!0},u.prototype.getDefaultItems=function(){return r},u.prototype.extend=function(t){c.assert(Array.isArray(t),"@param `arr` should be an Array."),t.forEach(this.push,this)},u.prototype.isOpened=function(){return this.isOpen()},u.prototype.isOpen=function(){return this.Internal.opened},u.prototype.updatePosition=function(t){c.assert(Array.isArray(t),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(t)},u.prototype.pop=function(){var t=Object.keys(this.Internal.items);this.Html.removeMenuEntry(t[t.length-1])},u.prototype.push=function(t){c.assert(c.isDefAndNotNull(t),"@param `item` must be informed."),this.Html.addMenuEntry(t)},u.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},u.prototype.setMap=function(t){ol.control.Control.prototype.setMap.call(this,t),t?this.Internal.init(t,this):this.Internal.removeListeners()},u})
\ No newline at end of file
public/scripts/xterm-min.js
+1 -1
@@ -1 +1 @@
1 -!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i,r=t();for(i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(window,function(){return r={},n.m=i=[function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(14);t.IBufferService=i.createDecorator("BufferService"),t.ICoreMouseService=i.createDecorator("CoreMouseService"),t.ICoreService=i.createDecorator("CoreService"),t.ICharsetService=i.createDecorator("CharsetService"),t.IDirtyRowService=i.createDecorator("DirtyRowService"),t.IInstantiationService=i.createDecorator("InstantiationService"),t.ILogService=i.createDecorator("LogService"),t.IOptionsService=i.createDecorator("OptionsService"),t.IUnicodeService=i.createDecorator("UnicodeService")},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(Object.defineProperty(n.prototype,"event",{get:function(){var i=this;return this._event||(this._event=function(t){return i._listeners.push(t),{dispose:function(){if(!i._disposed)for(var e=0;e<i._listeners.length;e++)if(i._listeners[e]===t)return void i._listeners.splice(e,1)}}}),this._event},enumerable:!0,configurable:!0}),n.prototype.fire=function(e,t){for(var i=[],r=0;r<this._listeners.length;r++)i.push(this._listeners[r]);for(r=0;r<i.length;r++)i[r].call(void 0,e,t)},n.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},n);function n(){this._listeners=[],this._disposed=!1}t.EventEmitter=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){this._isDisposed=!0,this._disposables.forEach(function(e){return e.dispose()}),this._disposables.length=0},n.prototype.register=function(e){this._disposables.push(e)},n.prototype.unregister=function(e){e=this._disposables.indexOf(e);-1!==e&&this._disposables.splice(e,1)},n);function n(){this._disposables=[],this._isDisposed=!1}t.Disposable=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(14);t.ICharSizeService=i.createDecorator("CharSizeService"),t.ICoreBrowserService=i.createDecorator("CoreBrowserService"),t.IMouseService=i.createDecorator("MouseService"),t.IRenderService=i.createDecorator("RenderService"),t.ISelectionService=i.createDecorator("SelectionService"),t.ISoundService=i.createDecorator("SoundService")},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(7),a=i(3),n=(o=i(6).AttributeData,n(c,o),c.fromCharData=function(e){var t=new c;return t.setFromCharData(e),t},c.prototype.isCombined=function(){return 2097152&this.content},c.prototype.getWidth=function(){return this.content>>22},c.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?s.stringFromCodePoint(2097151&this.content):""},c.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},c.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t,i,r=!1;2<e[a.CHAR_DATA_CHAR_INDEX].length?r=!0:2===e[a.CHAR_DATA_CHAR_INDEX].length?55296<=(t=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0))&&t<=56319&&56320<=(i=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1))&&i<=57343?this.content=1024*(t-55296)+i-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:r=!0:this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22,r&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},c.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},c);function c(){var e=null!==o&&o.apply(this,arguments)||this;return e.content=0,e.fg=0,e.bg=0,e.combinedData="",e}t.CellData=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},n.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},n.prototype.clone=function(){var e=new n;return e.fg=this.fg,e.bg=this.bg,e},n.prototype.isInverse=function(){return 67108864&this.fg},n.prototype.isBold=function(){return 134217728&this.fg},n.prototype.isUnderline=function(){return 268435456&this.fg},n.prototype.isBlink=function(){return 536870912&this.fg},n.prototype.isInvisible=function(){return 1073741824&this.fg},n.prototype.isItalic=function(){return 67108864&this.bg},n.prototype.isDim=function(){return 134217728&this.bg},n.prototype.getFgColorMode=function(){return 50331648&this.fg},n.prototype.getBgColorMode=function(){return 50331648&this.bg},n.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},n.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},n.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},n.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},n.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},n.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},n.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},n.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},n.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},n);function n(){this.fg=0,this.bg=0}t.AttributeData=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringFromCodePoint=function(e){return 65535<e?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,i){void 0===i&&(i=e.length);for(var r="",n=t=void 0===t?0:t;n<i;++n){var o=e[n];65535<o?(o-=65536,r+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):r+=String.fromCharCode(o)}return r};var r=(n.prototype.clear=function(){this._interim=0},n.prototype.decode=function(e,t){var i=e.length;if(!i)return 0;var r=0,n=0;this._interim&&(56320<=(s=e.charCodeAt(n++))&&s<=57343?t[r++]=1024*(this._interim-55296)+s-56320+65536:(t[r++]=this._interim,t[r++]=s),this._interim=0);for(var o=n;o<i;++o){var s,a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=i)return this._interim=a,r;56320<=(s=e.charCodeAt(o))&&s<=57343?t[r++]=1024*(a-55296)+s-56320+65536:(t[r++]=a,t[r++]=s)}else t[r++]=a}return r},n);function n(){this._interim=0}t.StringToUtf32=r;o.prototype.clear=function(){this.interim.fill(0)},o.prototype.decode=function(e,t){var i=e.length;if(!i)return 0;var r,n,o,s,a=0,c=0,l=0;if(this.interim[0]){var h=!1,u=this.interim[0];u&=192==(224&u)?31:224==(240&u)?15:7;for(var f=0,_=void 0;(_=63&this.interim[++f])&&f<4;)u<<=6,u|=_;for(var d=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,p=d-f;l<p;){if(i<=l)return 0;if(128!=(192&(_=e[l++]))){l--,h=!0;break}u<<=6,u|=63&(this.interim[f++]=_)}h||(2==d?u<128?l--:t[a++]=u:3==d?u<2048||55296<=u&&u<=57343||(t[a++]=u):u<65536||1114111<u||(t[a++]=u)),this.interim.fill(0)}for(var v=i-4,g=l;g<i;){for(;!(!(g<v)||128&(r=e[g])||128&(n=e[g+1])||128&(o=e[g+2])||128&(s=e[g+3]));)t[a++]=r,t[a++]=n,t[a++]=o,t[a++]=s,g+=4;if((r=e[g++])<128)t[a++]=r;else if(192==(224&r)){if(i<=g)return this.interim[0]=r,a;128==(192&(n=e[g++]))?(c=(31&r)<<6|63&n)<128?g--:t[a++]=c:g--}else if(224==(240&r)){if(i<=g)return this.interim[0]=r,a;if(128==(192&(n=e[g++]))){if(i<=g)return this.interim[0]=r,this.interim[1]=n,a;128==(192&(o=e[g++]))?(c=(15&r)<<12|(63&n)<<6|63&o)<2048||55296<=c&&c<=57343||(t[a++]=c):g--}else g--}else if(240==(248&r)){if(i<=g)return this.interim[0]=r,a;if(128==(192&(n=e[g++]))){if(i<=g)return this.interim[0]=r,this.interim[1]=n,a;if(128==(192&(o=e[g++]))){if(i<=g)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,a;128==(192&(s=e[g++]))?(c=(7&r)<<18|(63&n)<<12|(63&o)<<6|63&s)<65536||1114111<c||(t[a++]=c):g--}else g--}else g--}}return a},r=o;function o(){this.interim=new Uint8Array(3)}t.Utf8ToUtf32=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,i,r){e.addEventListener(t,i,r);var n=!1;return{dispose:function(){n&&(n=!0,e.removeEventListener(t,i,r))}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,i){"use strict";var a,h,n,r;function o(e){e=e.toString(16);return e.length<2?"0"+e:e}function u(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function s(e,t,i){for(var r=e>>24&255,n=e>>16&255,o=e>>8&255,s=t>>24&255,a=t>>16&255,c=t>>8&255,l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));l<i&&(0<s||0<a||0<c);)s-=Math.max(0,Math.ceil(.1*s)),a-=Math.max(0,Math.ceil(.1*a)),c-=Math.max(0,Math.ceil(.1*c)),l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));return(s<<24|a<<16|c<<8|255)>>>0}function c(e,t,i){for(var r=e>>24&255,n=e>>16&255,o=e>>8&255,s=t>>24&255,a=t>>16&255,c=t>>8&255,l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));l<i&&(s<255||a<255||c<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),a=Math.min(255,a+Math.ceil(.1*(255-a))),c=Math.min(255,c+Math.ceil(.1*(255-c))),l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));return(s<<24|a<<16|c<<8|255)>>>0}function l(e,t,i){e/=255,t/=255,i/=255;return.2126*(e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4))}Object.defineProperty(t,"__esModule",{value:!0}),(r=a=t.channels||(t.channels={})).toCss=function(e,t,i,r){return void 0!==r?"#"+o(e)+o(t)+o(i)+o(r):"#"+o(e)+o(t)+o(i)},r.toRgba=function(e,t,i,r){return(e<<24|t<<16|i<<8|(r=void 0===r?255:r))>>>0},(r=t.color||(t.color={})).blend=function(e,t){var i=(255&t.rgba)/255;if(1==i)return{css:t.css,rgba:t.rgba};var r=t.rgba>>24&255,n=t.rgba>>16&255,o=t.rgba>>8&255,s=e.rgba>>24&255,t=e.rgba>>16&255,e=e.rgba>>8&255,s=s+Math.round((r-s)*i),t=t+Math.round((n-t)*i),i=e+Math.round((o-e)*i);return{css:a.toCss(s,t,i),rgba:a.toRgba(s,t,i)}},r.ensureContrastRatio=function(e,t,i){i=n.ensureContrastRatio(e.rgba,t.rgba,i);if(i)return n.toColor(i>>24&255,i>>16&255,i>>8&255)},r.opaque=function(e){var t=(255|e.rgba)>>>0,i=n.toChannels(t),r=i[0],e=i[1],i=i[2];return{css:a.toCss(r,e,i),rgba:t}},(t.css||(t.css={})).toColor=function(e){return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0}},(r=h=t.rgb||(t.rgb={})).relativeLuminance=function(e){return l(e>>16&255,e>>8&255,255&e)},r.relativeLuminance2=l,(r=n=t.rgba||(t.rgba={})).ensureContrastRatio=function(e,t,i){var r=h.relativeLuminance(e>>8),n=h.relativeLuminance(t>>8);if(u(r,n)<i)return(n<r?s:c)(e,t,i)},r.reduceLuminance=s,r.increaseLuminance=c,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,t,i){return{css:a.toCss(e,t,i),rgba:a.toRgba(e,t,i)}},t.toPaddedHex=o,t.contrastRatio=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="undefined"==typeof navigator,n=r?"node":navigator.userAgent,r=r?"node":navigator.platform;function o(e,t){return 0<=e.indexOf(t)}t.isFirefox=!!~n.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=o(["Macintosh","MacIntel","MacPPC","Mac68K"],r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=o(["Windows","Win16","Win32","WinCE"],r),t.isLinux=0<=r.indexOf("Linux")},function(e,t,i){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.C0||(t.C0={})).NUL="\0",r.SOH="",r.STX="",r.ETX="",r.EOT="",r.ENQ="",r.ACK="",r.BEL="",r.BS="\b",r.HT="\t",r.LF="\n",r.VT="\v",r.FF="\f",r.CR="\r",r.SO="",r.SI="",r.DLE="",r.DC1="",r.DC2="",r.DC3="",r.DC4="",r.NAK="",r.SYN="",r.ETB="",r.CAN="",r.EM="",r.SUB="",r.ESC="",r.FS="",r.GS="",r.RS="",r.US="",r.SP=" ",r.DEL="",(t=t.C1||(t.C1={})).PAD="€",t.HOP="",t.BPH="‚",t.NBH="ƒ",t.IND="„",t.NEL="…",t.SSA="†",t.ESA="‡",t.HTS="ˆ",t.HTJ="‰",t.VTS="Š",t.PLD="‹",t.PLU="Œ",t.RI="",t.SS2="Ž",t.SS3="",t.DCS="",t.PU1="‘",t.PU2="’",t.STS="“",t.CCH="”",t.MW="•",t.SPA="–",t.EPA="—",t.SOS="˜",t.SGCI="™",t.SCI="š",t.CSI="›",t.ST="œ",t.OSC="",t.PM="ž",t.APC="Ÿ"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(3),a=i(9),r=i(23),o=i(6),n=i(26),c=i(10),i=(l.prototype.dispose=function(){var e;this._container.removeChild(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},l.prototype._initCanvas=function(){this._ctx=n.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},l.prototype.onOptionsChanged=function(){},l.prototype.onBlur=function(){},l.prototype.onFocus=function(){},l.prototype.onCursorMove=function(){},l.prototype.onGridChanged=function(e,t){},l.prototype.onSelectionChanged=function(e,t,i){void 0===i&&(i=!1)},l.prototype.setColors=function(e){this._refreshCharAtlas(e)},l.prototype._setTransparency=function(e){var t;e!==this._alpha&&(t=this._canvas,this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1))},l.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=r.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},l.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},l.prototype._fillCells=function(e,t,i,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight)},l.prototype._fillBottomLineAtCells=function(e,t,i){void 0===i&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},l.prototype._fillLeftLineAtCell=function(e,t,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},l.prototype._strokeRectAtCell=function(e,t,i,r){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,r*this._scaledCellHeight-window.devicePixelRatio)},l.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},l.prototype._clearCells=function(e,t,i,r){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight))},l.prototype._fillCharTrueColor=function(e,t,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(i),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},l.prototype._drawChars=function(e,t,i){var r,n,o=this._getContrastColor(e);o||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,i,o):(e.isInverse()?(r=e.isBgDefault()?a.INVERTED_DEFAULT_COLOR:e.getBgColor(),n=e.isFgDefault()?a.INVERTED_DEFAULT_COLOR:e.getFgColor()):(n=e.isBgDefault()?s.DEFAULT_COLOR:e.getBgColor(),r=e.isFgDefault()?s.DEFAULT_COLOR:e.getFgColor()),r+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||s.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||s.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=n,this._currentGlyphIdentifier.fg=r,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,i))},l.prototype._drawUncachedChars=function(e,t,i,r){var n;this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse()?r?this._ctx.fillStyle=r.css:e.isBgDefault()?this._ctx.fillStyle=c.color.opaque(this._colors.background).css:e.isBgRGB()?this._ctx.fillStyle="rgb("+o.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":(n=e.getBgColor(),this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&n<8&&(n+=8),this._ctx.fillStyle=this._colors.ansi[n].css):r?this._ctx.fillStyle=r.css:e.isFgDefault()?this._ctx.fillStyle=this._colors.foreground.css:e.isFgRGB()?this._ctx.fillStyle="rgb("+o.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":(r=e.getFgColor(),this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),this._ctx.fillStyle=this._colors.ansi[r].css),this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=a.DIM_OPACITY),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},l.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},l.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},l.prototype._getContrastColor=function(e){if(1!==this._optionsService.options.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var i=e.getFgColor(),r=e.getFgColorMode(),n=e.getBgColor(),o=e.getBgColorMode(),s=!!e.isInverse(),a=!!e.isInverse();s&&(t=i,i=n,n=t,t=r,r=o,o=t);n=this._resolveBackgroundRgba(o,n,s),a=this._resolveForegroundRgba(r,i,s,a),a=c.rgba.ensureContrastRatio(n,a,this._optionsService.options.minimumContrastRatio);if(a){a={css:c.channels.toCss(a>>24&255,a>>16&255,a>>8&255),rgba:a};return this._colors.contrastCache.setColor(e.bg,e.fg,a),a}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},l.prototype._resolveBackgroundRgba=function(e,t,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return(i?this._colors.foreground:this._colors.background).rgba}},l.prototype._resolveForegroundRgba=function(e,t,i,r){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&r&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return(i?this._colors.background:this._colors.foreground).rgba}},l);function l(e,t,i,r,n,o,s,a){this._container=e,this._alpha=r,this._colors=n,this._rendererId=o,this._bufferService=s,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}t.BaseRenderLayer=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");var r;r=n,i=i,(e=e)[o]===e?e[s].push({id:r,index:i}):(e[s]=[{id:r,index:i}],e[o]=e)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},function(e,t,i){"use strict";function n(e,t,i,r){if(void 0===r&&(r=e.length),(i=void 0===i?0:i)>=e.length)return e;i=(e.length+i)%e.length,r=r>=e.length?e.length:(e.length+r)%e.length;for(var n=i;n<r;++n)e[n]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.fill=function(e,t,i,r){return e.fill?e.fill(t,i,r):n(e,t,i,r)},t.fillFallback=n,t.concat=function(e,t){var i=new e.constructor(e.length+t.length);return i.set(e),i.set(t,e.length),i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(7),a=i(3),c=i(5),i=i(6);t.DEFAULT_ATTR_DATA=Object.freeze(new i.AttributeData);r.prototype.get=function(e){var t=this._data[3*e+0],i=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:i?s.stringFromCodePoint(i):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]},r.prototype.set=function(e,t){this._data[3*e+1]=t[a.CHAR_DATA_ATTR_INDEX],1<t[a.CHAR_DATA_CHAR_INDEX].length?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[a.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[a.CHAR_DATA_WIDTH_INDEX]<<22},r.prototype.getWidth=function(e){return this._data[3*e+0]>>22},r.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},r.prototype.getFg=function(e){return this._data[3*e+1]},r.prototype.getBg=function(e){return this._data[3*e+2]},r.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},r.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},r.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},r.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?s.stringFromCodePoint(2097151&t):""},r.prototype.loadCell=function(e,t){var i=3*e;return t.content=this._data[0+i],t.fg=this._data[1+i],t.bg=this._data[2+i],2097152&t.content&&(t.combinedData=this._combined[e]),t},r.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},r.prototype.setCellFromCodePoint=function(e,t,i,r,n){this._data[3*e+0]=t|i<<22,this._data[3*e+1]=r,this._data[3*e+2]=n},r.prototype.addCodepointToCell=function(e,t){var i=this._data[3*e+0];2097152&i?this._combined[e]+=s.stringFromCodePoint(t):(2097151&i?(this._combined[e]=s.stringFromCodePoint(2097151&i)+s.stringFromCodePoint(t),i&=-2097152,i|=2097152):i=t|1<<22,this._data[3*e+0]=i)},r.prototype.insertCells=function(e,t,i,r){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0),t<this.length-e){for(var n=new c.CellData,o=this.length-e-t-1;0<=o;--o)this.setCell(e+t+o,this.loadCell(e+o,n));for(o=0;o<t;++o)this.setCell(e+o,i)}else for(o=e;o<this.length;++o)this.setCell(o,i);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0)},r.prototype.deleteCells=function(e,t,i,r){if(e%=this.length,t<this.length-e){for(var n=new c.CellData,o=0;o<this.length-e-t;++o)this.setCell(e+o,this.loadCell(e+t+o,n));for(o=this.length-t;o<this.length;++o)this.setCell(o,i)}else for(o=e;o<this.length;++o)this.setCell(o,i);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0)},r.prototype.replaceCells=function(e,t,i,r){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0);e<t&&e<this.length;)this.setCell(e++,i)},r.prototype.resize=function(e,t){if(e!==this.length){if(e>this.length){var i=new Uint32Array(3*e);this.length&&(3*e<this._data.length?i.set(this._data.subarray(0,3*e)):i.set(this._data)),this._data=i;for(var r=this.length;r<e;++r)this.setCell(r,t)}else if(e){(i=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=i;for(var n=Object.keys(this._combined),r=0;r<n.length;r++){var o=parseInt(n[r],10);e<=o&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},r.prototype.fill=function(e){this._combined={};for(var t=0;t<this.length;++t)this.setCell(t,e)},r.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];this.isWrapped=e.isWrapped},r.prototype.clone=function(){var e,t=new r(0);for(e in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[e]=this._combined[e];return t.isWrapped=this.isWrapped,t},r.prototype.getTrimmedLength=function(){for(var e=this.length-1;0<=e;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},r.prototype.copyCellsFrom=function(e,t,i,r,n){var o=e._data;if(n)for(var s=r-1;0<=s;s--)for(var a=0;a<3;a++)this._data[3*(i+s)+a]=o[3*(t+s)+a];else for(s=0;s<r;s++)for(a=0;a<3;a++)this._data[3*(i+s)+a]=o[3*(t+s)+a];for(var c=Object.keys(e._combined),a=0;a<c.length;a++){var l=parseInt(c[a],10);t<=l&&(this._combined[l-t+i]=e._combined[l])}},r.prototype.translateToString=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=this.length),(e=void 0===e?!1:e)&&(i=Math.min(i,this.getTrimmedLength()));for(var r="";t<i;){var n=this._data[3*t+0],o=2097151&n;r+=2097152&n?this._combined[t]:o?s.stringFromCodePoint(o):a.WHITESPACE_CELL_CHAR,t+=n>>22||1}return r},i=r;function r(e,t,i){this.isWrapped=i=void 0===i?!1:i,this._combined={},this._data=new Uint32Array(3*e);for(var r=t||c.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),n=0;n<e;++n)this.setCell(n,r);this.length=e}t.BufferLine=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(o.fromArray=function(e){var t=new o;if(!e.length)return t;for(var i=e[0]instanceof Array?1:0;i<e.length;++i){var r=e[i];if(r instanceof Array)for(var n=0;n<r.length;++n)t.addSubParam(r[n]);else t.addParam(r)}return t},o.prototype.clone=function(){var e=new o(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e},o.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var i=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];0<r-i&&e.push(Array.prototype.slice.call(this._subParams,i,r))}return e},o.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},o.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=2147483647<e?2147483647:e}},o.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=2147483647<e?2147483647:e,this._subParamsIdx[this.length-1]++}},o.prototype.hasSubParams=function(e){return 0<(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)},o.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,e=255&this._subParamsIdx[e];return 0<e-t?this._subParams.subarray(t,e):null},o.prototype.getSubParamsAll=function(){for(var e={},t=0;t<this.length;++t){var i=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];0<r-i&&(e[t]=this._subParams.slice(i,r))}return e},o.prototype.addDigit=function(e){var t,i,r;this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits||(r=(i=this._digitIsSub?this._subParams:this.params)[t-1],i[t-1]=~r?Math.min(10*r+e,2147483647):e)},o);function o(e,t){if(void 0===t&&(t=32),this.maxLength=e=void 0===e?32:e,256<(this.maxSubParamsLength=t))throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}t.Params=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(21),o=i(7),i=(n.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var i=this._handlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.setHandler=function(e,t){this._handlers[e]=[t]},n.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},n.prototype.setHandlerFallback=function(e){this._handlerFb=e},n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.reset=function(){2===this._state&&this.end(!1),this._id=-1,this._state=0},n.prototype._start=function(){var e=this._handlers[this._id];if(e)for(var t=e.length-1;0<=t;t--)e[t].start();else this._handlerFb(this._id,"START")},n.prototype._put=function(e,t,i){var r=this._handlers[this._id];if(r)for(var n=r.length-1;0<=n;n--)r[n].put(e,t,i);else this._handlerFb(this._id,"PUT",o.utf32ToString(e,t,i))},n.prototype._end=function(e){var t=this._handlers[this._id];if(t){for(var i=t.length-1;0<=i&&!1===t[i].end(e);i--);for(i--;0<=i;i--)t[i].end(!1)}else this._handlerFb(this._id,"END",e)},n.prototype.start=function(){this.reset(),this._id=-1,this._state=1},n.prototype.put=function(e,t,i){if(3!==this._state){if(1===this._state)for(;t<i;){var r=e[t++];if(59===r){this._state=2,this._start();break}if(r<48||57<r)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+r-48}2===this._state&&0<i-t&&this._put(e,t,i)}},n.prototype.end=function(e){0!==this._state&&(3!==this._state&&(1===this._state&&this._start(),this._end(e)),this._id=-1,this._state=0)},n);function n(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}t.OscParser=i;s.prototype.start=function(){this._data="",this._hitLimit=!1},s.prototype.put=function(e,t,i){this._hitLimit||(this._data+=o.utf32ToString(e,t,i),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},s.prototype.end=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},i=s;function s(e){this._handler=e,this._data="",this._hitLimit=!1}t.OscHandler=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=1e7},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7),r=i(19),o=i(21),s=[],i=(a.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},a.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var i=this._handlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},a.prototype.setHandler=function(e,t){this._handlers[e]=[t]},a.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},a.prototype.setHandlerFallback=function(e){this._handlerFb=e},a.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=s,this._ident=0},a.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(var i=this._active.length-1;0<=i;i--)this._active[i].hook(t);else this._handlerFb(this._ident,"HOOK",t)},a.prototype.put=function(e,t,i){if(this._active.length)for(var r=this._active.length-1;0<=r;r--)this._active[r].put(e,t,i);else this._handlerFb(this._ident,"PUT",n.utf32ToString(e,t,i))},a.prototype.unhook=function(e){if(this._active.length){for(var t=this._active.length-1;0<=t&&!1===this._active[t].unhook(e);t--);for(t--;0<=t;t--)this._active[t].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0},a);function a(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=function(){}}t.DcsParser=i;c.prototype.hook=function(e){this._params=e.clone(),this._data="",this._hitLimit=!1},c.prototype.put=function(e,t,i){this._hitLimit||(this._data+=n.utf32ToString(e,t,i),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.unhook=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data,this._params||new r.Params)),this._params=void 0,this._data="",this._hitLimit=!1,t},i=c;function c(e){this._handler=e,this._data="",this._hitLimit=!1}t.DcsHandler=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(24),h=i(42),u=[];t.acquireCharAtlas=function(e,t,i,r,n){for(var o=l.generateConfig(r,n,e,i),s=0;s<u.length;s++){var a=(c=u[s]).ownedBy.indexOf(t);if(0<=a){if(l.configEquals(c.config,o))return c.atlas;1===c.ownedBy.length?(c.atlas.dispose(),u.splice(s,1)):c.ownedBy.splice(a,1);break}}for(s=0;s<u.length;s++){var c=u[s];if(l.configEquals(c.config,o))return c.ownedBy.push(t),c.atlas}i={atlas:new h.DynamicCharAtlas(document,o),config:o,ownedBy:[t]};return u.push(i),i.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<u.length;t++){var i=u[t].ownedBy.indexOf(e);if(-1!==i){1===u[t].ownedBy.length?(u[t].atlas.dispose(),u.splice(t,1)):u[t].ownedBy.splice(i,1);break}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(3);t.generateConfig=function(e,t,i,r){r={foreground:r.foreground,background:r.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:r.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:i.fontFamily,fontSize:i.fontSize,fontWeight:i.fontWeight,fontWeightBold:i.fontWeightBold,allowTransparency:i.allowTransparency,colors:r}},t.configEquals=function(e,t){for(var i=0;i<e.colors.ansi.length;i++)if(e.colors.ansi[i].rgba!==t.colors.ansi[i].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background},t.is256Color=function(e){return e<r.DEFAULT_COLOR}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=t(10),r=t(44),n=a.css.toColor("#ffffff"),o=a.css.toColor("#000000"),s=a.css.toColor("#ffffff"),c=a.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=function(){for(var e=[a.css.toColor("#2e3436"),a.css.toColor("#cc0000"),a.css.toColor("#4e9a06"),a.css.toColor("#c4a000"),a.css.toColor("#3465a4"),a.css.toColor("#75507b"),a.css.toColor("#06989a"),a.css.toColor("#d3d7cf"),a.css.toColor("#555753"),a.css.toColor("#ef2929"),a.css.toColor("#8ae234"),a.css.toColor("#fce94f"),a.css.toColor("#729fcf"),a.css.toColor("#ad7fa8"),a.css.toColor("#34e2e2"),a.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],i=0;i<216;i++){var r=t[i/36%6|0],n=t[i/6%6|0],o=t[i%6];e.push({css:a.channels.toCss(r,n,o),rgba:a.channels.toRgba(r,n,o)})}for(i=0;i<24;i++){var s=8+10*i;e.push({css:a.channels.toCss(s,s,s),rgba:a.channels.toRgba(s,s,s)})}return e}();h.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},h.prototype.setTheme=function(e){this.colors.foreground=this._parseColor((e=void 0===e?{}:e).foreground,n),this.colors.background=this._parseColor(e.background,o),this.colors.cursor=this._parseColor(e.cursor,s,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,c,!0),this.colors.selection=this._parseColor(e.selection,l,!0),this.colors.selectionOpaque=a.color.blend(this.colors.background,this.colors.selection),this.colors.ansi[0]=this._parseColor(e.black,i.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,i.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,i.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,i.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,i.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,i.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,i.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,i.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,i.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,i.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,i.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,i.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,i.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,i.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,i.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},h.prototype._parseColor=function(e,t,i){if(void 0===i&&(i=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;if(255===r[3])return{css:this._ctx.fillStyle,rgba:a.channels.toRgba(r[0],r[1],r[2],r[3])};if(!i)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;r=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(e){return Number(e)}),i=r[0],e=r[1],t=r[2],r=r[3],r=Math.round(255*r);return{rgba:a.channels.toRgba(i,e,t,r),css:a.channels.toCss(i,e,t,r)}},t=h;function h(e,t){this.allowTransparency=t;e=e.createElement("canvas");e.width=1,e.height=1;e=e.getContext("2d");if(!e)throw new Error("Could not get rendering context");this._ctx=e,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:n,background:o,cursor:s,cursorAccent:c,selection:l,selectionOpaque:a.color.blend(o,l),ansi:i.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}i.ColorManager=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(6),f=i(3),a=i(5),n=(o=s.AttributeData,n(c,o),c.prototype.isCombined=function(){return 2097152},c.prototype.getWidth=function(){return this._width},c.prototype.getChars=function(){return this.combinedData},c.prototype.getCode=function(){return 2097151},c.prototype.setFromCharData=function(e){throw new Error("not implemented")},c.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},c);function c(e,t,i){var r=o.call(this)||this;return r.content=0,r.combinedData="",r.fg=e.fg,r.bg=e.bg,r.combinedData=t,r._width=i,r}t.JoinedCellData=n;h.prototype.registerCharacterJoiner=function(e){e={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(e),e.id},h.prototype.deregisterCharacterJoiner=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},h.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var i=[],r=t.translateToString(!0),n=0,o=0,s=0,a=t.getFg(0),c=t.getBg(0),l=0;l<t.getTrimmedLength();l++)if(t.loadCell(l,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==a||this._workCell.bg!==c){if(1<l-n)for(var h=this._getJoinedRanges(r,s,o,t,n),u=0;u<h.length;u++)i.push(h[u]);n=l,s=o,a=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(1<this._bufferService.cols-n)for(h=this._getJoinedRanges(r,s,o,t,n),u=0;u<h.length;u++)i.push(h[u]);return i},h.prototype._getJoinedRanges=function(e,t,i,r,n){for(var o=e.substring(t,i),s=this._characterJoiners[0].handler(o),a=1;a<this._characterJoiners.length;a++)for(var c=this._characterJoiners[a].handler(o),l=0;l<c.length;l++)h._mergeRanges(s,c[l]);return this._stringRangesToCellRanges(s,r,n),s},h.prototype._stringRangesToCellRanges=function(e,t,i){var r=0,n=!1,o=0,s=e[r];if(s){for(var a=i;a<this._bufferService.cols;a++){var c=t.getWidth(a),l=t.getString(a).length||f.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!n&&s[0]<=o&&(s[0]=a,n=!0),s[1]<=o){if(s[1]=a,!(s=e[++r]))break;n=s[0]<=o&&(s[0]=a,!0)}o+=l}}s&&(s[1]=this._bufferService.cols)}},h._mergeRanges=function(e,t){for(var i=!1,r=0;r<e.length;r++){var n=e[r];if(i){if(t[1]<=n[0])return e[r-1][1]=t[1],e;if(t[1]<=n[1])return e[r-1][1]=Math.max(t[1],n[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=n[0])return e.splice(r,0,t),e;if(t[1]<=n[1])return n[0]=Math.min(t[0],n[0]),e;t[0]<n[1]&&(n[0]=Math.min(t[0],n[0]),i=!0)}}return i?e[e.length-1][1]=t[1]:e.push(t),e},n=h;function h(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}t.CharacterJoinerRegistry=n},function(e,t,i){"use strict";function c(e,t){t=t.getBoundingClientRect();return[e.clientX-t.left,e.clientY-t.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoordsRelativeToElement=c,t.getCoords=function(e,t,i,r,n,o,s,a){if(n){t=c(e,t);if(t)return t[0]=Math.ceil((t[0]+(a?o/2:0))/o),t[1]=Math.ceil(t[1]/s),t[0]=Math.min(Math.max(t[0],1),i+(a?1:0)),t[1]=Math.min(Math.max(t[1],1),r),t}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.refresh=function(e,t,i){var r=this;this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return r._innerRefresh()}))},n.prototype._innerRefresh=function(){void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(this._rowStart=Math.max(this._rowStart,0),this._rowEnd=Math.min(this._rowEnd,this._rowCount-1),this._renderCallback(this._rowStart,this._rowEnd),this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0)},n);function n(e){this._renderCallback=e}t.RenderDebouncer=r},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,n=(o=i(2).Disposable,n(s,o),s.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},s.prototype.dispose=function(){o.prototype.dispose.call(this),this.clearListener()},s.prototype._updateDpr=function(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},s.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},s);function s(){var e=null!==o&&o.apply(this,arguments)||this;return e._currentDevicePixelRatio=window.devicePixelRatio,e}t.ScreenDprMonitor=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function e(t,i){if(void 0===i&&(i=5),"object"!=typeof t)return t;var r,n=Array.isArray(t)?[]:{};for(r in t)n[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return n}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),n=i(33),o=i(17),s=i(80),i=(Object.defineProperty(a.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onData",{get:function(){return this._core.onData},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parser",{get:function(){return this._parser||(this._parser=new h(this._core)),this._parser},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"unicode",{get:function(){return new u(this._core)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"buffer",{get:function(){return new c(this._core.buffer)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),a.prototype.blur=function(){this._core.blur()},a.prototype.focus=function(){this._core.focus()},a.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},a.prototype.open=function(e){this._core.open(e)},a.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},a.prototype.registerLinkMatcher=function(e,t,i){return this._core.registerLinkMatcher(e,t,i)},a.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},a.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},a.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},a.prototype.registerMarker=function(e){return this._verifyIntegers(e),this._core.addMarker(e)},a.prototype.addMarker=function(e){return this.registerMarker(e)},a.prototype.hasSelection=function(){return this._core.hasSelection()},a.prototype.select=function(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)},a.prototype.getSelection=function(){return this._core.getSelection()},a.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},a.prototype.clearSelection=function(){this._core.clearSelection()},a.prototype.selectAll=function(){this._core.selectAll()},a.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},a.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},a.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},a.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},a.prototype.scrollToTop=function(){this._core.scrollToTop()},a.prototype.scrollToBottom=function(){this._core.scrollToBottom()},a.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},a.prototype.clear=function(){this._core.clear()},a.prototype.write=function(e,t){this._core.write(e,t)},a.prototype.writeUtf8=function(e,t){this._core.write(e,t)},a.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},a.prototype.paste=function(e){this._core.paste(e)},a.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},a.prototype.setOption=function(e,t){this._core.optionsService.setOption(e,t)},a.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},a.prototype.reset=function(){this._core.reset()},a.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(a,"strings",{get:function(){return o},enumerable:!0,configurable:!0}),a.prototype._verifyIntegers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.forEach(function(e){if(e===1/0||isNaN(e)||e%1!=0)throw new Error("This API only accepts integers")})},a);function a(e){this._core=new n.Terminal(e),this._addonManager=new s.AddonManager}t.Terminal=i;var c=(Object.defineProperty(p.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!0,configurable:!0}),p.prototype.getLine=function(e){e=this._buffer.lines.get(e);if(e)return new l(e)},p.prototype.getNullCell=function(){return new r.CellData},p),l=(Object.defineProperty(d.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"length",{get:function(){return this._line.length},enumerable:!0,configurable:!0}),d.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new r.CellData)},d.prototype.translateToString=function(e,t,i){return this._line.translateToString(e,t,i)},d),h=(_.prototype.registerCsiHandler=function(e,t){return this._core.addCsiHandler(e,function(e){return t(e.toArray())})},_.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},_.prototype.registerDcsHandler=function(e,i){return this._core.addDcsHandler(e,function(e,t){return i(e,t.toArray())})},_.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},_.prototype.registerEscHandler=function(e,t){return this._core.addEscHandler(e,t)},_.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},_.prototype.registerOscHandler=function(e,t){return this._core.addOscHandler(e,t)},_.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},_),u=(f.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(f.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!0,configurable:!0}),f);function f(e){this._core=e}function _(e){this._core=e}function d(e){this._line=e}function p(e){this._buffer=e}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(34),a=i(35),c=i(36),h=i(12),l=i(37),u=i(39),f=i(49),_=i(50),d=i(11),p=i(8),v=i(17),g=i(53),y=i(54),b=i(55),m=i(56),S=i(58),C=i(1),w=i(16),E=i(59),L=i(25),A=i(60),R=i(0),x=i(61),k=i(4),D=i(62),T=i(63),O=i(2),M=i(69),P=i(70),H=i(71),I=i(72),B=i(73),F=i(74),j=i(75),W=i(76),q=i(77),U=i(79),N="undefined"!=typeof window?window.document:null,n=(o=O.Disposable,n(z,o),Object.defineProperty(z.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onA11yChar",{get:function(){return this.onA11yCharEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onA11yTab",{get:function(){return this.onA11yTabEmitter.event},enumerable:!0,configurable:!0}),z.prototype.dispose=function(){var e;this._isDisposed||(o.prototype.dispose.call(this),null===(e=this._windowsMode)||void 0===e||e.dispose(),this._windowsMode=void 0,null===(e=this._renderService)||void 0===e||e.dispose(),this._customKeyEventHandler=null,this.write=function(){},null===(e=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===e||e.removeChild(this.element))},z.prototype._setup=function(){var i=this;this._customKeyEventHandler=null,this.insertMode=!1,this.bracketedPasteMode=!1,this._userScrolling=!1,this._inputHandler?this._inputHandler.reset():(this._inputHandler=new l.InputHandler(this,this._bufferService,this._charsetService,this._coreService,this._dirtyRowService,this._logService,this.optionsService,this._coreMouseService,this.unicodeService,this._instantiationService),this._inputHandler.onRequestBell(function(){return i.bell()}),this._inputHandler.onRequestRefreshRows(function(e,t){return i.refresh(e,t)}),this._inputHandler.onRequestReset(function(){return i.reset()}),this._inputHandler.onCursorMove(function(){return i._onCursorMove.fire()}),this._inputHandler.onLineFeed(function(){return i._onLineFeed.fire()}),this.register(this._inputHandler)),this.linkifier||(this.linkifier=new f.Linkifier(this._bufferService,this._logService,this.optionsService,this.unicodeService)),this.options.windowsMode&&this._enableWindowsMode()},z.prototype._enableWindowsMode=function(){var e,t=this;this._windowsMode||((e=[]).push(this.onLineFeed(E.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.addCsiHandler({final:"H"},function(){return E.updateWindowsModeWrappedState(t._bufferService),!1})),this._windowsMode={dispose:function(){e.forEach(function(e){return e.dispose()})}})},Object.defineProperty(z.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!0,configurable:!0}),z.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},z.prototype._setupOptionsListeners=function(){var r=this;this.optionsService.onOptionChange(function(e){var t,i;switch(e){case"fontFamily":case"fontSize":null===(t=r._renderService)||void 0===t||t.clear(),null===(t=r._charSizeService)||void 0===t||t.measure();break;case"cursorBlink":case"cursorStyle":r.refresh(r.buffer.y,r.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":r._renderService&&(r._renderService.clear(),r._renderService.onResize(r.cols,r.rows),r.refresh(0,r.rows-1));break;case"rendererType":r._renderService&&(r._renderService.setRenderer(r._createRenderer()),r._renderService.onResize(r.cols,r.rows));break;case"scrollback":r.buffers.resize(r.cols,r.rows),null===(t=r.viewport)||void 0===t||t.syncScrollArea();break;case"screenReaderMode":r.optionsService.options.screenReaderMode?!r._accessibilityManager&&r._renderService&&(r._accessibilityManager=new b.AccessibilityManager(r,r._renderService)):(null===(i=r._accessibilityManager)||void 0===i||i.dispose(),r._accessibilityManager=null);break;case"tabStopWidth":r.buffers.setupTabStops();break;case"theme":r._setTheme(r.optionsService.options.theme);break;case"windowsMode":r.optionsService.options.windowsMode?r._enableWindowsMode():(null===(i=r._windowsMode)||void 0===i||i.dispose(),r._windowsMode=void 0)}})},z.prototype._onTextAreaFocus=function(e){this.sendFocus&&this._coreService.triggerDataEvent(h.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this.showCursor(),this._onFocus.fire()},z.prototype.blur=function(){return this.textarea.blur()},z.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this._coreService.triggerDataEvent(h.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},z.prototype._initGlobal=function(){var t=this;this._bindKeys(),this.register(p.addDisposableDomListener(this.element,"copy",function(e){t.hasSelection()&&c.copyHandler(e,t._selectionService)}));function e(e){return c.handlePasteEvent(e,t.textarea,t.bracketedPasteMode,t._coreService)}this.register(p.addDisposableDomListener(this.textarea,"paste",e)),this.register(p.addDisposableDomListener(this.element,"paste",e)),d.isFirefox?this.register(p.addDisposableDomListener(this.element,"mousedown",function(e){2===e.button&&c.rightClickHandler(e,t.textarea,t.screenElement,t._selectionService,t.options.rightClickSelectsWord)})):this.register(p.addDisposableDomListener(this.element,"contextmenu",function(e){c.rightClickHandler(e,t.textarea,t.screenElement,t._selectionService,t.options.rightClickSelectsWord)})),d.isLinux&&this.register(p.addDisposableDomListener(this.element,"auxclick",function(e){1===e.button&&c.moveTextAreaUnderMouseCursor(e,t.textarea,t.screenElement)}))},z.prototype._bindKeys=function(){var t=this;this.register(p.addDisposableDomListener(this.textarea,"keyup",function(e){return t._keyUp(e)},!0)),this.register(p.addDisposableDomListener(this.textarea,"keydown",function(e){return t._keyDown(e)},!0)),this.register(p.addDisposableDomListener(this.textarea,"keypress",function(e){return t._keyPress(e)},!0)),this.register(p.addDisposableDomListener(this.textarea,"compositionstart",function(){return t._compositionHelper.compositionstart()})),this.register(p.addDisposableDomListener(this.textarea,"compositionupdate",function(e){return t._compositionHelper.compositionupdate(e)})),this.register(p.addDisposableDomListener(this.textarea,"compositionend",function(){return t._compositionHelper.compositionend()})),this.register(this.onRender(function(){return t._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(e){return t._queueLinkification(e.start,e.end)}))},z.prototype.open=function(e){var i=this;if(!e)throw new Error("Terminal requires a parent element.");N.body.contains(e)||this._logService.warn("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);var t=N.createDocumentFragment();this._viewportElement=N.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this._viewportScrollArea=N.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=N.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=N.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement),this.textarea=N.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",v.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(p.addDisposableDomListener(this.textarea,"focus",function(e){return i._onTextAreaFocus(e)})),this.register(p.addDisposableDomListener(this.textarea,"blur",function(){return i._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);e=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(k.ICoreBrowserService,e),this._charSizeService=this._instantiationService.createInstance(D.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(k.ICharSizeService,this._charSizeService),this._compositionView=N.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(t),this._theme=this.options.theme||this._theme,this.options.theme=void 0,this._colorManager=new L.ColorManager(N,this.options.allowTransparency),this.optionsService.onOptionChange(function(e){return i._colorManager.onOptionsChange(e)}),this._colorManager.setTheme(this._theme);t=this._createRenderer();this._renderService=this._instantiationService.createInstance(A.RenderService,t,this.rows,this.screenElement),this._instantiationService.setService(k.IRenderService,this._renderService),this._renderService.onRender(function(e){return i._onRender.fire(e)}),this.onResize(function(e){return i._renderService.resize(e.cols,e.rows)}),this._soundService=this._instantiationService.createInstance(g.SoundService),this._instantiationService.setService(k.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(M.MouseService),this._instantiationService.setService(k.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(a.Viewport,function(e,t){return i.scrollLines(e,t)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this.viewport),this.register(this.onCursorMove(function(){return i._renderService.onCursorMove()})),this.register(this.onResize(function(){return i._renderService.onResize(i.cols,i.rows)})),this.register(this.onBlur(function(){return i._renderService.onBlur()})),this.register(this.onFocus(function(){return i._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return i.viewport.syncScrollArea()})),this._selectionService=this._instantiationService.createInstance(_.SelectionService,function(e,t){return i.scrollLines(e,t)},this.element,this.screenElement),this._instantiationService.setService(k.ISelectionService,this._selectionService),this.register(this._selectionService.onSelectionChange(function(){return i._onSelectionChange.fire()})),this.register(this._selectionService.onRedrawRequest(function(e){return i._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(e){i.textarea.value=e,i.textarea.focus(),i.textarea.select()})),this.register(this.onScroll(function(){i.viewport.syncScrollArea(),i._selectionService.refresh()})),this.register(p.addDisposableDomListener(this._viewportElement,"scroll",function(){return i._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return i._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.register(p.addDisposableDomListener(this.element,"mousedown",function(e){return i._selectionService.onMouseDown(e)})),this.mouseEvents?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},z.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(u.Renderer,this._colorManager.colors,this.screenElement,this.linkifier);case"dom":return this._instantiationService.createInstance(m.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},z.prototype._setTheme=function(e){var t;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(e=this._renderService)||void 0===e||e.setColors(this._colorManager.colors),null===(e=this.viewport)||void 0===e||e.onThemeChange(this._colorManager.colors)},z.prototype.bindMouse=function(){var o=this,n=this,t=this.element;function i(e){var t,i,r;if(t=n._mouseService.getRawByteCoords(e,n.screenElement,n.cols,n.rows)){switch(e.overrideType||e.type){case"mousemove":r=32,void 0===e.buttons?(i=3,void 0!==e.button&&(i=e.button<3?e.button:3)):i=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":r=0,i=e.button<3?e.button:3;break;case"mousedown":r=1,i=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(r=e.deltaY<0?0:1),i=4;break;default:return}return!(void 0===r||void 0===i||4<i)&&n._coreMouseService.triggerMouseEvent({col:t.x-33,row:t.y-33,button:i,action:r,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}}function r(e){return i(e),e.buttons||(o._document.removeEventListener("mouseup",l.mouseup),l.mousedrag&&o._document.removeEventListener("mousemove",l.mousedrag)),o.cancel(e)}function s(e){return i(e),e.preventDefault(),o.cancel(e)}function a(e){e.buttons&&i(e)}function c(e){e.buttons||i(e)}var l={mouseup:null,wheel:null,mousedrag:null,mousemove:null};this._coreMouseService.onProtocolChange(function(e){(o.mouseEvents=e)?("debug"===o.optionsService.options.logLevel&&o._logService.debug("Binding to mouse events:",o._coreMouseService.explainEvents(e)),o.element.classList.add("enable-mouse-events"),o._selectionService.disable()):(o._logService.debug("Unbinding from mouse events."),o.element.classList.remove("enable-mouse-events"),o._selectionService.enable()),8&e?l.mousemove||(t.addEventListener("mousemove",c),l.mousemove=c):(t.removeEventListener("mousemove",l.mousemove),l.mousemove=null),16&e?l.wheel||(t.addEventListener("wheel",s),l.wheel=s):(t.removeEventListener("wheel",l.wheel),l.wheel=null),2&e?l.mouseup||(l.mouseup=r):(o._document.removeEventListener("mouseup",l.mouseup),l.mouseup=null),4&e?l.mousedrag||(l.mousedrag=a):(o._document.removeEventListener("mousemove",l.mousedrag),l.mousedrag=null)}),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(p.addDisposableDomListener(t,"mousedown",function(e){if(e.preventDefault(),o.focus(),o.mouseEvents&&!o._selectionService.shouldForceSelection(e))return i(e),l.mouseup&&o._document.addEventListener("mouseup",l.mouseup),l.mousedrag&&o._document.addEventListener("mousemove",l.mousedrag),o.cancel(e)})),this.register(p.addDisposableDomListener(t,"wheel",function(e){if(!l.wheel&&!o.buffer.hasScrollback){var t=o.viewport.getLinesScrolled(e);if(0!==t){for(var i=h.C0.ESC+(o._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B"),r="",n=0;n<Math.abs(t);n++)r+=i;o._coreService.triggerDataEvent(r,!0)}}})),this.register(p.addDisposableDomListener(t,"wheel",function(e){if(!l.wheel)return o.viewport.onWheel(e)?void 0:o.cancel(e)})),this.register(p.addDisposableDomListener(t,"touchstart",function(e){if(!o.mouseEvents)return o.viewport.onTouchStart(e),o.cancel(e)})),this.register(p.addDisposableDomListener(t,"touchmove",function(e){if(!o.mouseEvents)return o.viewport.onTouchMove(e)?void 0:o.cancel(e)}))},z.prototype.refresh=function(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)},z.prototype._queueLinkification=function(e,t){var i;null===(i=this.linkifier)||void 0===i||i.linkifyRows(e,t)},z.prototype.updateCursorStyle=function(e){this._selectionService&&this._selectionService.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},z.prototype.showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},z.prototype.scroll=function(e,t){var i;void 0===t&&(t=!1),(i=this._blankLine)&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=this.buffer.getBlankLine(e,t),this._blankLine=i),i.isWrapped=t;var r=this.buffer.ybase+this.buffer.scrollTop,e=this.buffer.ybase+this.buffer.scrollBottom;0===this.buffer.scrollTop?(t=this.buffer.lines.isFull,e===this.buffer.lines.length-1?t?this.buffer.lines.recycle().copyFrom(i):this.buffer.lines.push(i.clone()):this.buffer.lines.splice(e+1,0,i.clone()),t?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)):(this.buffer.lines.shiftElements(r+1,e-r+1-1,-1),this.buffer.lines.set(e,i.clone())),this._userScrolling||(this.buffer.ydisp=this.buffer.ybase),this._dirtyRowService.markRangeDirty(this.buffer.scrollTop,this.buffer.scrollBottom),this._onScroll.fire(this.buffer.ydisp)},z.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this._userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this._userScrolling=!1);var i=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),i!==this.buffer.ydisp&&(t||this._onScroll.fire(this.buffer.ydisp),this.refresh(0,this.rows-1))},z.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},z.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},z.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},z.prototype.scrollToLine=function(e){e-=this.buffer.ydisp;0!=e&&this.scrollLines(e)},z.prototype.paste=function(e){c.paste(e,this.textarea,this.bracketedPasteMode,this._coreService)},z.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},z.prototype.addEscHandler=function(e,t){return this._inputHandler.addEscHandler(e,t)},z.prototype.addDcsHandler=function(e,t){return this._inputHandler.addDcsHandler(e,t)},z.prototype.addCsiHandler=function(e,t){return this._inputHandler.addCsiHandler(e,t)},z.prototype.addOscHandler=function(e,t){return this._inputHandler.addOscHandler(e,t)},z.prototype.registerLinkMatcher=function(e,t,i){i=this.linkifier.registerLinkMatcher(e,t,i);return this.refresh(0,this.rows-1),i},z.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},z.prototype.registerCharacterJoiner=function(e){e=this._renderService.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),e},z.prototype.deregisterCharacterJoiner=function(e){this._renderService.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(z.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),z.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},z.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},z.prototype.select=function(e,t,i){this._selectionService.setSelection(e,t,i)},z.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},z.prototype.getSelectionPosition=function(){if(this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},z.prototype.clearSelection=function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()},z.prototype.selectAll=function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()},z.prototype.selectLines=function(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)},z.prototype._keyDown=function(e){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=S.evaluateKeyboardEvent(e,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3!==t.type&&2!==t.type)return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(t.key!==h.C0.ETX&&t.key!==h.C0.CR||(this.textarea.value=""),this._onKey.fire({key:t.key,domEvent:e}),this.showCursor(),this._coreService.triggerDataEvent(t.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0)));var i=this.rows-1;return this.scrollLines(2===t.type?-i:i),this.cancel(e,!0)},z.prototype._isThirdLevelShift=function(e,t){e=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?e:e&&(!t.keyCode||47<t.keyCode)},z.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(16===e.keyCode||17===e.keyCode||18===e.keyCode||this.focus(),this.updateCursorStyle(e))},z.prototype._keyPress=function(e){var t;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this.showCursor(),this._coreService.triggerDataEvent(t,!0),0))},z.prototype.bell=function(){var e=this;this._soundBell()&&this._soundService.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},z.prototype.resize=function(e,t){var i;isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<T.MINIMUM_COLS&&(e=T.MINIMUM_COLS),t<T.MINIMUM_ROWS&&(t=T.MINIMUM_ROWS),this.buffers.resize(e,t),this._bufferService.resize(e,t),this.buffers.setupTabStops(this.cols),null===(i=this._charSizeService)||void 0===i||i.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0),this.refresh(0,this.rows-1),this._onResize.fire({cols:e,rows:t})):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure())},z.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(w.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},z.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},z.prototype.handleTitle=function(e){this._onTitleChange.fire(e)},z.prototype.reset=function(){var e;this.options.rows=this.rows,this.options.cols=this.cols;var t=this._customKeyEventHandler,i=this._userScrolling;this._setup(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset(),null===(e=this._selectionService)||void 0===e||e.reset(),this._customKeyEventHandler=t,this._userScrolling=i,this.refresh(0,this.rows-1),null===(i=this.viewport)||void 0===i||i.syncScrollArea()},z.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},z.prototype._visualBell=function(){return!1},z.prototype._soundBell=function(){return"sound"===this.options.bellStyle},z.prototype.write=function(e,t){this._writeBuffer.write(e,t)},z.prototype.writeSync=function(e){this._writeBuffer.writeSync(e)},z);function z(e){void 0===e&&(e={});var t=o.call(this)||this;return t.browser=d,t.mouseEvents=0,t._keyDownHandled=!1,t._blankLine=null,t._onCursorMove=new C.EventEmitter,t._onData=new C.EventEmitter,t._onBinary=new C.EventEmitter,t._onKey=new C.EventEmitter,t._onLineFeed=new C.EventEmitter,t._onRender=new C.EventEmitter,t._onResize=new C.EventEmitter,t._onScroll=new C.EventEmitter,t._onSelectionChange=new C.EventEmitter,t._onTitleChange=new C.EventEmitter,t._onFocus=new C.EventEmitter,t._onBlur=new C.EventEmitter,t.onA11yCharEmitter=new C.EventEmitter,t.onA11yTabEmitter=new C.EventEmitter,t._instantiationService=new B.InstantiationService,t.optionsService=new x.OptionsService(e),t._instantiationService.setService(R.IOptionsService,t.optionsService),t._bufferService=t._instantiationService.createInstance(T.BufferService),t._instantiationService.setService(R.IBufferService,t._bufferService),t._logService=t._instantiationService.createInstance(H.LogService),t._instantiationService.setService(R.ILogService,t._logService),t._coreService=t._instantiationService.createInstance(P.CoreService,function(){return t.scrollToBottom()}),t._instantiationService.setService(R.ICoreService,t._coreService),t._coreService.onData(function(e){return t._onData.fire(e)}),t._coreService.onBinary(function(e){return t._onBinary.fire(e)}),t._coreMouseService=t._instantiationService.createInstance(F.CoreMouseService),t._instantiationService.setService(R.ICoreMouseService,t._coreMouseService),t._dirtyRowService=t._instantiationService.createInstance(I.DirtyRowService),t._instantiationService.setService(R.IDirtyRowService,t._dirtyRowService),t.unicodeService=t._instantiationService.createInstance(q.UnicodeService),t._instantiationService.setService(R.IUnicodeService,t.unicodeService),t._charsetService=t._instantiationService.createInstance(U.CharsetService),t._instantiationService.setService(R.ICharsetService,t._charsetService),t._setupOptionsListeners(),t._setup(),t._writeBuffer=new j.WriteBuffer(function(e){return t._inputHandler.parse(e)}),t}t.Terminal=n},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),i=i(0),i=(s.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},s.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},s.prototype.compositionend=function(){this._finalizeComposition(!0)},s.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},s.prototype._finalizeComposition=function(e){var t,i=this;this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),e?(t={start:this._compositionPosition.start,end:this._compositionPosition.end},this._isSendingComposition=!0,setTimeout(function(){var e;i._isSendingComposition&&(i._isSendingComposition=!1,e=void 0,e=i._isComposing?i._textarea.value.substring(t.start,t.end):i._textarea.value.substring(t.start),i._coreService.triggerDataEvent(e,!0))},0)):(this._isSendingComposition=!1,e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end),this._coreService.triggerDataEvent(e,!0))},s.prototype._handleAnyTextareaChanges=function(){var t=this,i=this._textarea.value;setTimeout(function(){var e;t._isComposing||0<(e=t._textarea.value.replace(i,"")).length&&t._coreService.triggerDataEvent(e,!0)},0)},s.prototype.updateCompositionElements=function(e){var t,i,r,n=this;this._isComposing&&(this._bufferService.buffer.isCursorInViewport&&(r=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),t=this._bufferService.buffer.y*r,i=this._bufferService.buffer.x*this._charSizeService.width,this._compositionView.style.left=i+"px",this._compositionView.style.top=t+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px",r=this._compositionView.getBoundingClientRect(),this._textarea.style.left=i+"px",this._textarea.style.top=t+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"),e||setTimeout(function(){return n.updateCompositionElements(!0)},0))},s.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},r([n(2,i.IBufferService),n(3,i.IOptionsService),n(4,o.ICharSizeService),n(5,i.ICoreService)],s));function s(e,t,i,r,n,o){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=r,this._charSizeService=n,this._coreService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}t.CompositionHelper=i},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var c,a=i(2),l=i(8),h=i(4),i=i(0),h=(c=a.Disposable,n(u,c),u.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},u.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},u.prototype._innerRefresh=function(){0<this._charSizeService.height&&(this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight,e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight),this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px"));var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null},u.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);var t;this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight?(t=this._bufferService.buffer.ydisp*this._currentRowHeight,this._lastScrollTop===t&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)):this._refresh(e)},u.prototype._onScroll=function(e){var t;this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent&&(this._ignoreNextScrollEvent?this._ignoreNextScrollEvent=!1:(t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp,this._scrollLines(t,!0)))},u.prototype._bubbleScroll=function(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||0<t&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},u.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},u.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},u.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(0<this._wheelPartialScroll?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},u.prototype._applyScrollModifier=function(e,t){var i=this._optionsService.options.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},u.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},u.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!=t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},o([s(3,i.IBufferService),s(4,i.IOptionsService),s(5,h.ICharSizeService),s(6,h.IRenderService)],u));function u(e,t,i,r,n,o,s){var a=c.call(this)||this;return a._scrollLines=e,a._viewportElement=t,a._scrollArea=i,a._bufferService=r,a._optionsService=n,a._charSizeService=o,a._renderService=s,a.scrollBarWidth=0,a._currentRowHeight=0,a._lastRecordedBufferLength=0,a._lastRecordedViewportHeight=0,a._lastRecordedBufferHeight=0,a._lastTouchY=0,a._lastScrollTop=0,a._wheelPartialScroll=0,a._refreshAnimationFrame=null,a._ignoreNextScrollEvent=!1,a.scrollBarWidth=a._viewportElement.offsetWidth-a._scrollArea.offsetWidth||15,a.register(l.addDisposableDomListener(a._viewportElement,"scroll",a._onScroll.bind(a))),setTimeout(function(){return a.syncScrollArea()},0),a}t.Viewport=h},function(e,t,i){"use strict";function n(e){return e.replace(/\r?\n/g,"\r")}function o(e,t){return t?"[200~"+e+"[201~":e}function s(e,t,i,r){e=o(e=n(e),i),r.triggerDataEvent(e,!0),t.value=""}function a(e,t,i){var r=i.getBoundingClientRect(),i=e.clientX-r.left-10,r=e.clientY-r.top-10;t.style.position="absolute",t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=r+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position="",t.style.width="",t.style.height="",t.style.left="",t.style.top="",t.style.zIndex=""},200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=n,t.bracketTextForPaste=o,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,r){e.stopPropagation(),e.clipboardData&&s(e.clipboardData.getData("text/plain"),t,i,r)},t.paste=s,t.moveTextAreaUnderMouseCursor=a,t.rightClickHandler=function(e,t,i,r,n){a(e,t,i),n&&!r.isClickInSelection(e)&&r.selectWordAtCursor(e),t.value=r.selectionText,t.select()}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(12),p=i(18),v=i(38),o=i(2),s=i(15),g=i(7),y=i(16),b=i(1),m=i(3),S=i(5),c=i(6),C=i(20),a=i(22),l=i(4),h={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function u(e,t){if(24<e)return t.setWinLines;switch(e){case 1:return t.restoreWin;case 2:return t.minimizeWin;case 3:return t.setWinPosition;case 4:return t.setWinSizePixels;case 5:return t.raiseWin;case 6:return t.lowerWin;case 7:return t.refreshWin;case 8:return t.setWinSizeChars;case 9:return t.maximizeWin;case 10:return t.fullscreenWin;case 11:return t.getWinState;case 13:return t.getWinPosition;case 14:return t.getWinSizePixels;case 15:return t.getScreenSizePixels;case 16:return t.getCellSizePixels;case 18:return t.getWinSizeChars;case 19:return t.getScreenSizeChars;case 20:return t.getIconTitle;case 21:return t.getWinTitle;case 22:return t.pushTitle;case 23:return t.popTitle;case 24:return t.setWinLines}}var w,E=(_.prototype.hook=function(e){this._data=new Uint32Array(0)},_.prototype.put=function(e,t,i){this._data=s.concat(this._data,e.subarray(t,i))},_.prototype.unhook=function(e){if(e){var t=g.utf32ToString(this._data);switch(this._data=new Uint32Array(0),t){case'"q':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r0"q'+d.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r61;1"p'+d.C0.ESC+"\\");case"r":var i=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+i+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":i={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return i-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+i+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},_),n=(w=o.Disposable,n(f,w),Object.defineProperty(f.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){w.prototype.dispose.call(this)},f.prototype.parse=function(e){var t=this._bufferService.buffer,i=t.x,r=t.y;if(this._logService.debug("parsing data",e),this._parseBuffer.length<e.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(e.length,131072))),this._dirtyRowService.clearRange(),131072<e.length)for(var n=0;n<e.length;n+=131072){var o=n+131072<e.length?n+131072:e.length,s="string"==typeof e?this._stringDecoder.decode(e.substring(n,o),this._parseBuffer):this._utf8Decoder.decode(e.subarray(n,o),this._parseBuffer);this._parser.parse(this._parseBuffer,s)}else s=("string"==typeof e?this._stringDecoder:this._utf8Decoder).decode(e,this._parseBuffer),this._parser.parse(this._parseBuffer,s);(t=this._bufferService.buffer).x===i&&t.y===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},f.prototype.print=function(e,t,i){var r=this._bufferService.buffer,n=this._charsetService.charset,o=this._optionsService.options.screenReaderMode,s=this._bufferService.cols,a=this._coreService.decPrivateModes.wraparound,c=this._terminal.insertMode,l=this._curAttrData,h=r.lines.get(r.y+r.ybase);this._dirtyRowService.markDirty(r.y),r.x&&0<i-t&&2===h.getWidth(r.x-1)&&h.setCellFromCodePoint(r.x-1,0,1,l.fg,l.bg);for(var u=t;u<i;++u){var f,_=e[u],d=this._unicodeService.wcwidth(_);if(_<127&&n&&(f=n[String.fromCharCode(_)])&&(_=f.charCodeAt(0)),o&&this._terminal.onA11yCharEmitter.fire(g.stringFromCodePoint(_)),d||!r.x){if(r.x+d-1>=s)if(a)r.x=0,r.y++,r.y===r.scrollBottom+1?(r.y--,this._terminal.scroll(this._eraseAttrData(),!0)):(r.y>=this._bufferService.rows&&(r.y=this._bufferService.rows-1),r.lines.get(r.y).isWrapped=!0),h=r.lines.get(r.y+r.ybase);else if(r.x=s-1,2===d)continue;if(c&&(h.insertCells(r.x,d,r.getNullCell(l),l),2===h.getWidth(s-1)&&h.setCellFromCodePoint(s-1,m.NULL_CELL_CODE,m.NULL_CELL_WIDTH,l.fg,l.bg)),h.setCellFromCodePoint(r.x++,_,d,l.fg,l.bg),0<d)for(;--d;)h.setCellFromCodePoint(r.x++,0,0,l.fg,l.bg)}else h.getWidth(r.x-1)?h.addCodepointToCell(r.x-1,_):h.addCodepointToCell(r.x-2,_)}0<i-t&&(h.loadCell(r.x-1,this._workCell),2===this._workCell.getWidth()||65535<this._workCell.getCode()?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),r.x<s&&0<i-t&&0===h.getWidth(r.x)&&!h.hasContent(r.x)&&h.setCellFromCodePoint(r.x,0,1,l.fg,l.bg),this._dirtyRowService.markDirty(r.y)},f.prototype.addCsiHandler=function(e,t){var i=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.addCsiHandler(e,t):this._parser.addCsiHandler(e,function(e){return!u(e.params[0],i._optionsService.options.windowOptions)||t(e)})},f.prototype.addDcsHandler=function(e,t){return this._parser.addDcsHandler(e,new a.DcsHandler(t))},f.prototype.addEscHandler=function(e,t){return this._parser.addEscHandler(e,t)},f.prototype.addOscHandler=function(e,t){return this._parser.addOscHandler(e,new C.OscHandler(t))},f.prototype.bell=function(){this._onRequestBell.fire()},f.prototype.lineFeed=function(){var e=this._bufferService.buffer;this._dirtyRowService.markDirty(e.y),this._optionsService.options.convertEol&&(e.x=0),e.y++,e.y===e.scrollBottom+1?(e.y--,this._terminal.scroll(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),e.x>=this._bufferService.cols&&e.x--,this._dirtyRowService.markDirty(e.y),this._onLineFeed.fire()},f.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},f.prototype.backspace=function(){this._restrictCursor(),0<this._bufferService.buffer.x&&this._bufferService.buffer.x--},f.prototype.tab=function(){var e;this._bufferService.buffer.x>=this._bufferService.cols||(e=this._bufferService.buffer.x,this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._terminal.onA11yTabEmitter.fire(this._bufferService.buffer.x-e))},f.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},f.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},f.prototype._restrictCursor=function(){this._bufferService.buffer.x=Math.min(this._bufferService.cols-1,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},f.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+t):(this._bufferService.buffer.x=e,this._bufferService.buffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},f.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+e,this._bufferService.buffer.y+t)},f.prototype.cursorUp=function(e){var t=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;0<=t?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1))},f.prototype.cursorDown=function(e){var t=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;0<=t?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1)},f.prototype.cursorForward=function(e){this._moveCursor(e.params[0]||1,0)},f.prototype.cursorBackward=function(e){this._moveCursor(-(e.params[0]||1),0)},f.prototype.cursorNextLine=function(e){this.cursorDown(e),this._bufferService.buffer.x=0},f.prototype.cursorPrecedingLine=function(e){this.cursorUp(e),this._bufferService.buffer.x=0},f.prototype.cursorCharAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},f.prototype.cursorPosition=function(e){this._setCursor(2<=e.length?(e.params[1]||1)-1:0,(e.params[0]||1)-1)},f.prototype.charPosAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},f.prototype.hPositionRelative=function(e){this._moveCursor(e.params[0]||1,0)},f.prototype.linePosAbsolute=function(e){this._setCursor(this._bufferService.buffer.x,(e.params[0]||1)-1)},f.prototype.vPositionRelative=function(e){this._moveCursor(0,e.params[0]||1)},f.prototype.hVPosition=function(e){this.cursorPosition(e)},f.prototype.tabClear=function(e){e=e.params[0];0===e?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===e&&(this._bufferService.buffer.tabs={})},f.prototype.cursorForwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1;t--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},f.prototype.cursorBackwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1,i=this._bufferService.buffer;t--;)i.x=i.prevStop()},f.prototype._eraseInBufferLine=function(e,t,i,r){void 0===r&&(r=!1);e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);e.replaceCells(t,i,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r&&(e.isWrapped=!1)},f.prototype._resetBufferLine=function(e){e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);e.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),e.isWrapped=!1},f.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(),e.params[0]){case 0:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var i=this._bufferService.buffer.lines.length-this._bufferService.rows;0<i&&(this._bufferService.buffer.lines.trimStart(i),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-i,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-i,0),this._onScroll.fire(0))}},f.prototype.eraseInLine=function(e){switch(this._restrictCursor(),e.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},f.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1,i=this._bufferService.buffer;if(!(i.y>i.scrollBottom||i.y<i.scrollTop)){for(var r=i.y+i.ybase,e=this._bufferService.rows-1-i.scrollBottom,n=this._bufferService.rows-1+i.ybase-e+1;t--;)i.lines.splice(n-1,1),i.lines.splice(r,0,i.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(i.y,i.scrollBottom),i.x=0}},f.prototype.deleteLines=function(e){this._restrictCursor();var t=e.params[0]||1,i=this._bufferService.buffer;if(!(i.y>i.scrollBottom||i.y<i.scrollTop)){var r=i.y+i.ybase,n=this._bufferService.rows-1-i.scrollBottom;for(n=this._bufferService.rows-1+i.ybase-n;t--;)i.lines.splice(r,1),i.lines.splice(n,0,i.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(i.y,i.scrollBottom),i.x=0}},f.prototype.insertChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.insertCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},f.prototype.deleteChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.deleteCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},f.prototype.scrollUp=function(e){for(var t=e.params[0]||1,i=this._bufferService.buffer;t--;)i.lines.splice(i.ybase+i.scrollTop,1),i.lines.splice(i.ybase+i.scrollBottom,0,i.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(i.scrollTop,i.scrollBottom)},f.prototype.scrollDown=function(e){for(var t=e.params[0]||1,i=this._bufferService.buffer;t--;)i.lines.splice(i.ybase+i.scrollBottom,1),i.lines.splice(i.ybase+i.scrollTop,0,i.getBlankLine(y.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(i.scrollTop,i.scrollBottom)},f.prototype.scrollLeft=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=t.lines.get(t.ybase+r);n.deleteCells(0,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.scrollRight=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=t.lines.get(t.ybase+r);n.insertCells(0,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.insertColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=this._bufferService.buffer.lines.get(t.ybase+r);n.insertCells(t.x,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.deleteColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=t.lines.get(t.ybase+r);n.deleteCells(t.x,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.eraseChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(e.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},f.prototype.repeatPrecedingCharacter=function(e){if(this._parser.precedingCodepoint){for(var t=e.params[0]||1,i=new Uint32Array(t),r=0;r<t;++r)i[r]=this._parser.precedingCodepoint;this.print(i,0,i.length)}},f.prototype.sendDeviceAttributesPrimary=function(e){0<e.params[0]||(this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c"))},f.prototype.sendDeviceAttributesSecondary=function(e){0<e.params[0]||(this._terminal.is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._terminal.is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},f.prototype.setMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._terminal.insertMode=!0)},f.prototype.setModePrivate=function(e){for(var t,i=0;i<e.length;i++)switch(e.params[i]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,p.DEFAULT_CHARSET),this._charsetService.setgCharset(1,p.DEFAULT_CHARSET),this._charsetService.setgCharset(2,p.DEFAULT_CHARSET),this._charsetService.setgCharset(3,p.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._terminal.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}},f.prototype.resetMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._terminal.insertMode=!1)},f.prototype.resetModePrivate=function(e){for(var t,i=0;i<e.length;i++)switch(e.params[i]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._terminal.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[i]&&this.restoreCursor(),this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}},f.prototype._extractColor=function(e,t,i){var r=[0,0,-1,0,0,0],n=0,o=0;do{if(r[o+n]=e.params[t+o],e.hasSubParams(t+o)){for(var s=e.getSubParams(t+o),a=0;r[o+a+1+(n=5===r[1]?1:n)]=s[a],++a<s.length&&a+o+1+n<r.length;);break}}while(!(5===r[1]&&2<=o+n||2===r[1]&&5<=o+n)&&(r[1]&&(n=1),++o+t<e.length&&o+n<r.length));for(a=2;a<r.length;++a)-1===r[a]&&(r[a]=0);return 38===r[0]?2===r[1]?(i.fg|=50331648,i.fg&=-16777216,i.fg|=c.AttributeData.fromColorRGB([r[3],r[4],r[5]])):5===r[1]&&(i.fg&=-50331904,i.fg|=33554432|255&r[3]):48===r[0]&&(2===r[1]?(i.bg|=50331648,i.bg&=-16777216,i.bg|=c.AttributeData.fromColorRGB([r[3],r[4],r[5]])):5===r[1]&&(i.bg&=-50331904,i.bg|=33554432|255&r[3])),o},f.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=y.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=y.DEFAULT_ATTR_DATA.bg);for(var t,i=e.length,r=this._curAttrData,n=0;n<i;n++)30<=(t=e.params[n])&&t<=37?(r.fg&=-50331904,r.fg|=16777216|t-30):40<=t&&t<=47?(r.bg&=-50331904,r.bg|=16777216|t-40):90<=t&&t<=97?(r.fg&=-50331904,r.fg|=16777224|t-90):100<=t&&t<=107?(r.bg&=-50331904,r.bg|=16777224|t-100):0===t?(r.fg=y.DEFAULT_ATTR_DATA.fg,r.bg=y.DEFAULT_ATTR_DATA.bg):1===t?r.fg|=134217728:3===t?r.bg|=67108864:4===t?r.fg|=268435456:5===t?r.fg|=536870912:7===t?r.fg|=67108864:8===t?r.fg|=1073741824:2===t?r.bg|=134217728:22===t?(r.fg&=-134217729,r.bg&=-134217729):23===t?r.bg&=-67108865:24===t?r.fg&=-268435457:25===t?r.fg&=-536870913:27===t?r.fg&=-67108865:28===t?r.fg&=-1073741825:39===t?(r.fg&=-67108864,r.fg|=16777215&y.DEFAULT_ATTR_DATA.fg):49===t?(r.bg&=-67108864,r.bg|=16777215&y.DEFAULT_ATTR_DATA.bg):38===t||48===t?n+=this._extractColor(e,n,r):100===t?(r.fg&=-67108864,r.fg|=16777215&y.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&y.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t)},f.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var t=this._bufferService.buffer.y+1,i=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+t+";"+i+"R")}},f.prototype.deviceStatusPrivate=function(e){var t;6===e.params[0]&&(t=this._bufferService.buffer.y+1,e=this._bufferService.buffer.x+1,this._coreService.triggerDataEvent(d.C0.ESC+"[?"+t+";"+e+"R"))},f.prototype.softReset=function(e){var t;this._coreService.isCursorHidden=!1,this._terminal.insertMode=!1,null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=y.DEFAULT_ATTR_DATA.clone(),this._bufferService.buffer.x=this._bufferService.buffer.y=0,this._coreService.reset(),this._charsetService.reset()},f.prototype.setCursorStyle=function(e){e=e.params[0]||1;switch(e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}this._optionsService.options.cursorBlink=e%2==1},f.prototype.setScrollRegion=function(e){var t,i=e.params[0]||1;i<(t=e.length<2||(t=e.params[1])>this._bufferService.rows||0===t?this._bufferService.rows:t)&&(this._bufferService.buffer.scrollTop=i-1,this._bufferService.buffer.scrollBottom=t-1,this._setCursor(0,0))},f.prototype.windowOptions=function(e){if(u(e.params[0],this._optionsService.options.windowOptions)){var t,i,r=1<e.length?e.params[1]:0,n=this._instantiationService.getService(l.IRenderService);switch(e.params[0]){case 14:n&&2!==r&&(console.log(n.dimensions),t=n.dimensions.scaledCanvasWidth.toFixed(0),i=n.dimensions.scaledCanvasHeight.toFixed(0),this._coreService.triggerDataEvent(d.C0.ESC+"[4;"+i+";"+t+"t"));break;case 16:n&&(t=n.dimensions.scaledCellWidth.toFixed(0),i=n.dimensions.scaledCellHeight.toFixed(0),this._coreService.triggerDataEvent(d.C0.ESC+"[6;"+i+";"+t+"t"));break;case 18:this._bufferService&&this._coreService.triggerDataEvent(d.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==r&&2!==r||(this._windowTitleStack.push(this._windowTitle),10<this._windowTitleStack.length&&this._windowTitleStack.shift()),0!==r&&1!==r||(this._iconNameStack.push(this._iconName),10<this._iconNameStack.length&&this._iconNameStack.shift());break;case 23:0!==r&&2!==r||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==r&&1!==r||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},f.prototype.saveCursor=function(e){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},f.prototype.restoreCursor=function(e){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},f.prototype.setTitle=function(e){this._windowTitle=e,this._terminal.handleTitle(e)},f.prototype.setIconName=function(e){this._iconName=e},f.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},f.prototype.keypadApplicationMode=function(){var e;this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,null===(e=this._terminal.viewport)||void 0===e||e.syncScrollArea()},f.prototype.keypadNumericMode=function(){var e;this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,null===(e=this._terminal.viewport)||void 0===e||e.syncScrollArea()},f.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,p.DEFAULT_CHARSET)},f.prototype.selectCharset=function(e){2===e.length?"/"!==e[0]&&this._charsetService.setgCharset(h[e[0]],p.CHARSETS[e[1]]||p.DEFAULT_CHARSET):this.selectDefaultCharset()},f.prototype.index=function(){this._restrictCursor();var e=this._bufferService.buffer;this._bufferService.buffer.y++,e.y===e.scrollBottom+1?(e.y--,this._terminal.scroll(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),this._restrictCursor()},f.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},f.prototype.reverseIndex=function(){this._restrictCursor();var e,t=this._bufferService.buffer;t.y===t.scrollTop?(e=t.scrollBottom-t.scrollTop,t.lines.shiftElements(t.y+t.ybase,e,1),t.lines.set(t.y+t.ybase,t.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)):(t.y--,this._restrictCursor())},f.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},f.prototype.reset=function(){this._curAttrData=y.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=y.DEFAULT_ATTR_DATA.clone()},f.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},f.prototype.setgLevel=function(e){this._charsetService.setgLevel(e)},f.prototype.screenAlignmentPattern=function(){var e=new S.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg;var t=this._bufferService.buffer;this._setCursor(0,0);for(var i=0;i<this._bufferService.rows;++i){var r=t.y+t.ybase+i;t.lines.get(r).fill(e),t.lines.get(r).isWrapped=!1}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},f);function f(e,t,i,r,n,o,s,a,c,l,h){void 0===h&&(h=new v.EscapeSequenceParser);var u=w.call(this)||this;u._terminal=e,u._bufferService=t,u._charsetService=i,u._coreService=r,u._dirtyRowService=n,u._logService=o,u._optionsService=s,u._coreMouseService=a,u._unicodeService=c,u._instantiationService=l,u._parser=h,u._parseBuffer=new Uint32Array(4096),u._stringDecoder=new g.StringToUtf32,u._utf8Decoder=new g.Utf8ToUtf32,u._workCell=new S.CellData,u._windowTitle="",u._iconName="",u._windowTitleStack=[],u._iconNameStack=[],u._curAttrData=y.DEFAULT_ATTR_DATA.clone(),u._eraseAttrDataInternal=y.DEFAULT_ATTR_DATA.clone(),u._onRequestRefreshRows=new b.EventEmitter,u._onRequestReset=new b.EventEmitter,u._onRequestBell=new b.EventEmitter,u._onCursorMove=new b.EventEmitter,u._onLineFeed=new b.EventEmitter,u._onScroll=new b.EventEmitter,u.register(u._parser),u._parser.setCsiHandlerFallback(function(e,t){u._logService.debug("Unknown CSI code: ",{identifier:u._parser.identToString(e),params:t.toArray()})}),u._parser.setEscHandlerFallback(function(e){u._logService.debug("Unknown ESC code: ",{identifier:u._parser.identToString(e)})}),u._parser.setExecuteHandlerFallback(function(e){u._logService.debug("Unknown EXECUTE code: ",{code:e})}),u._parser.setOscHandlerFallback(function(e,t,i){u._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})}),u._parser.setDcsHandlerFallback(function(e,t,i){"HOOK"===t&&(i=i.toArray()),u._logService.debug("Unknown DCS code: ",{identifier:u._parser.identToString(e),action:t,payload:i})}),u._parser.setPrintHandler(function(e,t,i){return u.print(e,t,i)}),u._parser.setCsiHandler({final:"@"},function(e){return u.insertChars(e)}),u._parser.setCsiHandler({intermediates:" ",final:"@"},function(e){return u.scrollLeft(e)}),u._parser.setCsiHandler({final:"A"},function(e){return u.cursorUp(e)}),u._parser.setCsiHandler({intermediates:" ",final:"A"},function(e){return u.scrollRight(e)}),u._parser.setCsiHandler({final:"B"},function(e){return u.cursorDown(e)}),u._parser.setCsiHandler({final:"C"},function(e){return u.cursorForward(e)}),u._parser.setCsiHandler({final:"D"},function(e){return u.cursorBackward(e)}),u._parser.setCsiHandler({final:"E"},function(e){return u.cursorNextLine(e)}),u._parser.setCsiHandler({final:"F"},function(e){return u.cursorPrecedingLine(e)}),u._parser.setCsiHandler({final:"G"},function(e){return u.cursorCharAbsolute(e)}),u._parser.setCsiHandler({final:"H"},function(e){return u.cursorPosition(e)}),u._parser.setCsiHandler({final:"I"},function(e){return u.cursorForwardTab(e)}),u._parser.setCsiHandler({final:"J"},function(e){return u.eraseInDisplay(e)}),u._parser.setCsiHandler({prefix:"?",final:"J"},function(e){return u.eraseInDisplay(e)}),u._parser.setCsiHandler({final:"K"},function(e){return u.eraseInLine(e)}),u._parser.setCsiHandler({prefix:"?",final:"K"},function(e){return u.eraseInLine(e)}),u._parser.setCsiHandler({final:"L"},function(e){return u.insertLines(e)}),u._parser.setCsiHandler({final:"M"},function(e){return u.deleteLines(e)}),u._parser.setCsiHandler({final:"P"},function(e){return u.deleteChars(e)}),u._parser.setCsiHandler({final:"S"},function(e){return u.scrollUp(e)}),u._parser.setCsiHandler({final:"T"},function(e){return u.scrollDown(e)}),u._parser.setCsiHandler({final:"X"},function(e){return u.eraseChars(e)}),u._parser.setCsiHandler({final:"Z"},function(e){return u.cursorBackwardTab(e)}),u._parser.setCsiHandler({final:"`"},function(e){return u.charPosAbsolute(e)}),u._parser.setCsiHandler({final:"a"},function(e){return u.hPositionRelative(e)}),u._parser.setCsiHandler({final:"b"},function(e){return u.repeatPrecedingCharacter(e)}),u._parser.setCsiHandler({final:"c"},function(e){return u.sendDeviceAttributesPrimary(e)}),u._parser.setCsiHandler({prefix:">",final:"c"},function(e){return u.sendDeviceAttributesSecondary(e)}),u._parser.setCsiHandler({final:"d"},function(e){return u.linePosAbsolute(e)}),u._parser.setCsiHandler({final:"e"},function(e){return u.vPositionRelative(e)}),u._parser.setCsiHandler({final:"f"},function(e){return u.hVPosition(e)}),u._parser.setCsiHandler({final:"g"},function(e){return u.tabClear(e)}),u._parser.setCsiHandler({final:"h"},function(e){return u.setMode(e)}),u._parser.setCsiHandler({prefix:"?",final:"h"},function(e){return u.setModePrivate(e)}),u._parser.setCsiHandler({final:"l"},function(e){return u.resetMode(e)}),u._parser.setCsiHandler({prefix:"?",final:"l"},function(e){return u.resetModePrivate(e)}),u._parser.setCsiHandler({final:"m"},function(e){return u.charAttributes(e)}),u._parser.setCsiHandler({final:"n"},function(e){return u.deviceStatus(e)}),u._parser.setCsiHandler({prefix:"?",final:"n"},function(e){return u.deviceStatusPrivate(e)}),u._parser.setCsiHandler({intermediates:"!",final:"p"},function(e){return u.softReset(e)}),u._parser.setCsiHandler({intermediates:" ",final:"q"},function(e){return u.setCursorStyle(e)}),u._parser.setCsiHandler({final:"r"},function(e){return u.setScrollRegion(e)}),u._parser.setCsiHandler({final:"s"},function(e){return u.saveCursor(e)}),u._parser.setCsiHandler({final:"t"},function(e){return u.windowOptions(e)}),u._parser.setCsiHandler({final:"u"},function(e){return u.restoreCursor(e)}),u._parser.setCsiHandler({intermediates:"'",final:"}"},function(e){return u.insertColumns(e)}),u._parser.setCsiHandler({intermediates:"'",final:"~"},function(e){return u.deleteColumns(e)}),u._parser.setExecuteHandler(d.C0.BEL,function(){return u.bell()}),u._parser.setExecuteHandler(d.C0.LF,function(){return u.lineFeed()}),u._parser.setExecuteHandler(d.C0.VT,function(){return u.lineFeed()}),u._parser.setExecuteHandler(d.C0.FF,function(){return u.lineFeed()}),u._parser.setExecuteHandler(d.C0.CR,function(){return u.carriageReturn()}),u._parser.setExecuteHandler(d.C0.BS,function(){return u.backspace()}),u._parser.setExecuteHandler(d.C0.HT,function(){return u.tab()}),u._parser.setExecuteHandler(d.C0.SO,function(){return u.shiftOut()}),u._parser.setExecuteHandler(d.C0.SI,function(){return u.shiftIn()}),u._parser.setExecuteHandler(d.C1.IND,function(){return u.index()}),u._parser.setExecuteHandler(d.C1.NEL,function(){return u.nextLine()}),u._parser.setExecuteHandler(d.C1.HTS,function(){return u.tabSet()}),u._parser.setOscHandler(0,new C.OscHandler(function(e){u.setTitle(e),u.setIconName(e)})),u._parser.setOscHandler(1,new C.OscHandler(function(e){return u.setIconName(e)})),u._parser.setOscHandler(2,new C.OscHandler(function(e){return u.setTitle(e)})),u._parser.setEscHandler({final:"7"},function(){return u.saveCursor()}),u._parser.setEscHandler({final:"8"},function(){return u.restoreCursor()}),u._parser.setEscHandler({final:"D"},function(){return u.index()}),u._parser.setEscHandler({final:"E"},function(){return u.nextLine()}),u._parser.setEscHandler({final:"H"},function(){return u.tabSet()}),u._parser.setEscHandler({final:"M"},function(){return u.reverseIndex()}),u._parser.setEscHandler({final:"="},function(){return u.keypadApplicationMode()}),u._parser.setEscHandler({final:">"},function(){return u.keypadNumericMode()}),u._parser.setEscHandler({final:"c"},function(){return u.fullReset()}),u._parser.setEscHandler({final:"n"},function(){return u.setgLevel(2)}),u._parser.setEscHandler({final:"o"},function(){return u.setgLevel(3)}),u._parser.setEscHandler({final:"|"},function(){return u.setgLevel(3)}),u._parser.setEscHandler({final:"}"},function(){return u.setgLevel(2)}),u._parser.setEscHandler({final:"~"},function(){return u.setgLevel(1)}),u._parser.setEscHandler({intermediates:"%",final:"@"},function(){return u.selectDefaultCharset()}),u._parser.setEscHandler({intermediates:"%",final:"G"},function(){return u.selectDefaultCharset()});var f,_=this;for(f in p.CHARSETS)!function(e){_._parser.setEscHandler({intermediates:"(",final:e},function(){return u.selectCharset("("+e)}),_._parser.setEscHandler({intermediates:")",final:e},function(){return u.selectCharset(")"+e)}),_._parser.setEscHandler({intermediates:"*",final:e},function(){return u.selectCharset("*"+e)}),_._parser.setEscHandler({intermediates:"+",final:e},function(){return u.selectCharset("+"+e)}),_._parser.setEscHandler({intermediates:"-",final:e},function(){return u.selectCharset("-"+e)}),_._parser.setEscHandler({intermediates:".",final:e},function(){return u.selectCharset("."+e)}),_._parser.setEscHandler({intermediates:"/",final:e},function(){return u.selectCharset("/"+e)})}(f);return u._parser.setEscHandler({intermediates:"#",final:"8"},function(){return u.screenAlignmentPattern()}),u._parser.setErrorHandler(function(e){return u._logService.error("Parsing error: ",e),e}),u._parser.setDcsHandler({intermediates:"$",final:"q"},new E(u._bufferService,u._coreService,u._logService,u._optionsService)),u}function _(e,t,i,r){this._bufferService=e,this._coreService=t,this._logService=i,this._optionsService=r,this._data=new Uint32Array(0)}t.InputHandler=n},function(e,i,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(i,"__esModule",{value:!0});var o=t(2),s=t(15),a=t(19),c=t(20),l=t(22),h=(u.prototype.setDefault=function(e,t){s.fill(this.table,e<<4|t)},u.prototype.add=function(e,t,i,r){this.table[t<<8|e]=i<<4|r},u.prototype.addMany=function(e,t,i,r){for(var n=0;n<e.length;n++)this.table[t<<8|e[n]]=i<<4|r},u);function u(e){this.table=new Uint8Array(e)}i.TransitionTable=h,i.VT500_TRANSITION_TABLE=function(){function e(e,t){return i.slice(e,t)}var t=new h(4095),i=Array.apply(null,Array(256)).map(function(e,t){return t}),r=e(32,127),n=e(0,24);n.push(25),n.push.apply(n,e(28,32));var o,s=e(0,14);for(o in t.setDefault(1,0),t.addMany(r,0,2,0),s)t.addMany([24,26,153,154],o,3,0),t.addMany(e(128,144),o,3,0),t.addMany(e(144,152),o,3,0),t.add(156,o,0,0),t.add(27,o,11,1),t.add(157,o,4,8),t.addMany([152,158,159],o,0,7),t.add(155,o,11,3),t.add(144,o,11,9);return t.addMany(n,0,3,0),t.addMany(n,1,3,1),t.add(127,1,0,1),t.addMany(n,8,0,8),t.addMany(n,3,3,3),t.add(127,3,0,3),t.addMany(n,4,3,4),t.add(127,4,0,4),t.addMany(n,6,3,6),t.addMany(n,5,3,5),t.add(127,5,0,5),t.addMany(n,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(r,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(e(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(r,7,0,7),t.addMany(n,7,0,7),t.add(156,7,0,0),t.add(127,7,0,7),t.add(91,1,11,3),t.addMany(e(64,127),3,7,0),t.addMany(e(48,60),3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(e(48,60),4,8,4),t.addMany(e(64,127),4,7,0),t.addMany([60,61,62,63],4,0,6),t.addMany(e(32,64),6,0,6),t.add(127,6,0,6),t.addMany(e(64,127),6,0,0),t.addMany(e(32,48),3,9,5),t.addMany(e(32,48),5,9,5),t.addMany(e(48,64),5,0,6),t.addMany(e(64,127),5,7,0),t.addMany(e(32,48),4,9,5),t.addMany(e(32,48),1,9,2),t.addMany(e(32,48),2,9,2),t.addMany(e(48,127),2,10,0),t.addMany(e(48,80),1,10,0),t.addMany(e(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(e(96,127),1,10,0),t.add(80,1,11,9),t.addMany(n,9,0,9),t.add(127,9,0,9),t.addMany(e(28,32),9,0,9),t.addMany(e(32,48),9,9,12),t.addMany(e(48,60),9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(n,11,0,11),t.addMany(e(32,128),11,0,11),t.addMany(e(28,32),11,0,11),t.addMany(n,10,0,10),t.add(127,10,0,10),t.addMany(e(28,32),10,0,10),t.addMany(e(48,60),10,8,10),t.addMany([60,61,62,63],10,0,11),t.addMany(e(32,48),10,9,12),t.addMany(n,12,0,12),t.add(127,12,0,12),t.addMany(e(28,32),12,0,12),t.addMany(e(32,48),12,9,12),t.addMany(e(48,64),12,0,11),t.addMany(e(64,127),12,12,13),t.addMany(e(64,127),10,12,13),t.addMany(e(64,127),9,12,13),t.addMany(n,13,13,13),t.addMany(r,13,13,13),t.add(127,13,0,13),t.addMany([27,156,24,26],13,14,0),t.add(160,0,2,0),t.add(160,8,5,8),t.add(160,6,0,6),t.add(160,11,0,11),t.add(160,13,13,13),t}();var f,n=(f=o.Disposable,n(_,f),_.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var i=0;if(e.prefix){if(1<e.prefix.length)throw new Error("only one byte as prefix supported");if((i=e.prefix.charCodeAt(0))&&i<60||63<i)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(2<e.intermediates.length)throw new Error("only two bytes as intermediates are supported");for(var r=0;r<e.intermediates.length;++r){var n=e.intermediates.charCodeAt(r);if(n<32||47<n)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=n}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(i<<=8)|o},_.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},_.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},_.prototype.setPrintHandler=function(e){this._printHandler=e},_.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},_.prototype.addEscHandler=function(e,t){e=this._identifier(e,[48,126]);void 0===this._escHandlers[e]&&(this._escHandlers[e]=[]);var i=this._escHandlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},_.prototype.setEscHandler=function(e,t){this._escHandlers[this._identifier(e,[48,126])]=[t]},_.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},_.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},_.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},_.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},_.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},_.prototype.addCsiHandler=function(e,t){e=this._identifier(e);void 0===this._csiHandlers[e]&&(this._csiHandlers[e]=[]);var i=this._csiHandlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},_.prototype.setCsiHandler=function(e,t){this._csiHandlers[this._identifier(e)]=[t]},_.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},_.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},_.prototype.addDcsHandler=function(e,t){return this._dcsParser.addHandler(this._identifier(e),t)},_.prototype.setDcsHandler=function(e,t){this._dcsParser.setHandler(this._identifier(e),t)},_.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},_.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},_.prototype.addOscHandler=function(e,t){return this._oscParser.addHandler(e,t)},_.prototype.setOscHandler=function(e,t){this._oscParser.setHandler(e,t)},_.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},_.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},_.prototype.setErrorHandler=function(e){this._errorHandler=e},_.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},_.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},_.prototype.parse=function(e,t){for(var i=0,r=0,n=this.currentState,o=this._oscParser,s=this._dcsParser,a=this._collect,c=this._params,l=this.TRANSITIONS.table,h=0;h<t;++h){switch((r=l[n<<8|((i=e[h])<160?i:160)])>>4){case 2:for(var u=h+1;;++u){if(t<=u||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:h,code:i,currentState:n,collect:a,params:c,abort:!1}).abort)return;break;case 7:for(var f=this._csiHandlers[a<<8|i],_=f?f.length-1:-1;0<=_&&!1===f[_](c);_--);_<0&&this._csiHandlerFb(a<<8|i,c),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:c.addParam(0);break;case 58:c.addSubParam(-1);break;default:c.addDigit(i-48)}}while(++h<t&&47<(i=e[h])&&i<60);h--;break;case 9:a<<=8,a|=i;break;case 10:for(var d=this._escHandlers[a<<8|i],p=d?d.length-1:-1;0<=p&&!1===d[p]();p--);p<0&&this._escHandlerFb(a<<8|i),this.precedingCodepoint=0;break;case 11:c.reset(),c.addParam(0),a=0;break;case 12:s.hook(a<<8|i,c);break;case 13:for(var v=h+1;;++v)if(t<=v||24===(i=e[v])||26===i||27===i||127<i&&i<160){s.put(e,h,v),h=v-1;break}break;case 14:s.unhook(24!==i&&26!==i),27===i&&(r|=1),c.reset(),c.addParam(0),this.precedingCodepoint=a=0;break;case 4:o.start();break;case 5:for(var g=h+1;;g++)if(t<=g||(i=e[g])<32||127<i&&i<=159){o.put(e,h,g),h=g-1;break}break;case 6:o.end(24!==i&&26!==i),27===i&&(r|=1),c.reset(),c.addParam(0),this.precedingCodepoint=a=0}n=15&r}this._collect=a,this.currentState=n},_);function _(e){void 0===e&&(e=i.VT500_TRANSITION_TABLE);var t=f.call(this)||this;return t.TRANSITIONS=e,t.initialState=0,t.currentState=t.initialState,t._params=new a.Params,t._params.addParam(0),t._collect=0,t.precedingCodepoint=0,t._printHandlerFb=function(e,t,i){},t._executeHandlerFb=function(e){},t._csiHandlerFb=function(e,t){},t._escHandlerFb=function(e){},t._errorHandlerFb=function(e){return e},t._printHandler=t._printHandlerFb,t._executeHandlers=Object.create(null),t._csiHandlers=Object.create(null),t._escHandlers=Object.create(null),t._oscParser=new c.OscParser,t._dcsParser=new l.DcsParser,t._errorHandler=t._errorHandlerFb,t.setEscHandler({final:"\\"},function(){}),t}i.EscapeSequenceParser=n},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var l,h=i(40),u=i(46),f=i(47),_=i(48),d=i(27),a=i(2),c=i(4),p=i(0),v=i(23),g=i(1),y=1,c=(l=a.Disposable,n(b,l),Object.defineProperty(b.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){l.prototype.dispose.call(this),this._renderLayers.forEach(function(e){return e.dispose()}),v.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(e){var t=this;this._colors=e,this._renderLayers.forEach(function(e){e.setColors(t._colors),e.reset()})},b.prototype.onResize=function(e,t){var i=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(i.dimensions)}),this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},b.prototype.onSelectionChanged=function(t,i,r){void 0===r&&(r=!1),this._runOperation(function(e){return e.onSelectionChanged(t,i,r)})},b.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},b.prototype._runOperation=function(t){this._renderLayers.forEach(function(e){return t(e)})},b.prototype.renderRows=function(t,i){this._renderLayers.forEach(function(e){return e.onGridChanged(t,i)})},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},b.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},o([s(3,p.IBufferService),s(4,c.ICharSizeService),s(5,p.IOptionsService),s(6,p.ICoreService),s(7,c.ICoreBrowserService)],b));function b(e,t,i,r,n,o,s,a){var c=l.call(this)||this;c._colors=e,c._screenElement=t,c._linkifier=i,c._bufferService=r,c._charSizeService=n,c._optionsService=o,c.coreService=s,c.coreBrowserService=a,c._id=y++,c._onRequestRefreshRows=new g.EventEmitter;n=c._optionsService.options.allowTransparency;return c._characterJoinerRegistry=new d.CharacterJoinerRegistry(c._bufferService),c._renderLayers=[new h.TextRenderLayer(c._screenElement,0,c._colors,c._characterJoinerRegistry,n,c._id,c._bufferService,o),new u.SelectionRenderLayer(c._screenElement,1,c._colors,c._id,c._bufferService,o),new _.LinkRenderLayer(c._screenElement,2,c._colors,c._id,c._linkifier,c._bufferService,o),new f.CursorRenderLayer(c._screenElement,3,c._colors,c._id,c._onRequestRefreshRows,c._bufferService,o,s,a)],c.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},c._devicePixelRatio=window.devicePixelRatio,c._updateDimensions(),c.onOptionsChanged(),c}t.Renderer=c},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var c,l=i(41),o=i(13),h=i(6),_=i(3),d=i(27),u=i(5),n=(c=o.BaseRenderLayer,n(s,c),s.prototype.resize=function(e){c.prototype.resize.call(this,e);var t=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===t||(this._characterWidth=e.scaledCharWidth,this._characterFont=t,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},s.prototype.reset=function(){this._state.clear(),this._clearAll()},s.prototype._forEachCell=function(e,t,i,r){for(var n=e;n<=t;n++)for(var o=n+this._bufferService.buffer.ydisp,s=this._bufferService.buffer.lines.get(o),a=i?i.getJoinedCharacters(o):[],c=0;c<this._bufferService.cols;c++){s.loadCell(c,this._workCell);var l,h=this._workCell,u=!1,f=c;0!==h.getWidth()&&(0<a.length&&c===a[0][0]&&(u=!0,l=a.shift(),h=new d.JoinedCellData(this._workCell,s.translateToString(!0,l[0],l[1]),l[1]-l[0]),f=l[1]-1),!u&&this._isOverlapping(h)&&f<s.length-1&&s.getCodePoint(f+1)===_.NULL_CELL_CODE&&(h.content&=-12582913,h.content|=2<<22),r(h,c,n),c=f)}},s.prototype._drawBackground=function(e,t){var n=this,o=this._ctx,s=this._bufferService.cols,a=0,c=0,l=null;o.save(),this._forEachCell(e,t,null,function(e,t,i){var r=null;e.isInverse()?r=e.isFgDefault()?n._colors.foreground.css:e.isFgRGB()?"rgb("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":n._colors.ansi[e.getFgColor()].css:e.isBgRGB()?r="rgb("+h.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(r=n._colors.ansi[e.getBgColor()].css),null===l&&(a=t,c=i),i!==c?(o.fillStyle=l||"",n._fillCells(a,c,s-a,1),a=t,c=i):l!==r&&(o.fillStyle=l||"",n._fillCells(a,c,t-a,1),a=t,c=i),l=r}),null!==l&&(o.fillStyle=l,this._fillCells(a,c,s-a,1)),o.restore()},s.prototype._drawForeground=function(e,t){var n=this;this._forEachCell(e,t,this._characterJoinerRegistry,function(e,t,i){var r;!e.isInvisible()&&(n._drawChars(e,t,i),e.isUnderline())&&(n._ctx.save(),e.isInverse()?e.isBgDefault()?n._ctx.fillStyle=n._colors.background.css:e.isBgRGB()?n._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":(r=e.getBgColor(),n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),n._ctx.fillStyle=n._colors.ansi[r].css):e.isFgDefault()?n._ctx.fillStyle=n._colors.foreground.css:e.isFgRGB()?n._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":(r=e.getFgColor(),n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),n._ctx.fillStyle=n._colors.ansi[r].css),n._fillBottomLineAtCells(t,i,e.getWidth()),n._ctx.restore())})},s.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;e=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=e},s);function s(e,t,i,r,n,o,s,a){o=c.call(this,e,"text",t,n,i,o,s,a)||this;return o.bufferService=s,o.optionsService=a,o._characterWidth=0,o._characterFont="",o._characterOverlapCache={},o._workCell=new u.CellData,o._state=new l.GridCache,o._characterJoinerRegistry=r,o}t.TextRenderLayer=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.resize=function(e,t){for(var i=0;i<e;i++){this.cache.length<=i&&this.cache.push([]);for(var r=this.cache[i].length;r<t;r++)this.cache[i].push(void 0);this.cache[i].length=t}this.cache.length=e},n.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},n);function n(){this.cache=[]}t.GridCache=r},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(9),s=i(43),a=i(25),c=i(45),l=i(11),h=i(26),u=i(10),f={css:"rgba(0, 0, 0, 0)",rgba:0};function _(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=_;var d,i=(d=s.BaseCharAtlas,n(p,d),p.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},p.prototype.beginFrame=function(){this._drawToCacheCount=0},p.prototype.draw=function(e,t,i,r){if(32===t.code)return!0;if(!this._canCache(t))return!1;var n=_(t),o=this._cacheMap.get(n);if(null!=o)return this._drawFromCache(e,o,i,r),!0;if(this._drawToCacheCount<100){o=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index,o=this._drawToCache(t,o);return this._cacheMap.set(n,o),this._drawFromCache(e,o,i,r),!0}return!1},p.prototype._canCache=function(e){return e.code<256},p.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},p.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},p.prototype._drawFromCache=function(e,t,i,r){var n,o;t.isEmpty||(n=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index),e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,n,o,this._config.scaledCharWidth,this._config.scaledCharHeight,i,r,this._config.scaledCharWidth,this._config.scaledCharHeight))},p.prototype._getColorFromAnsiIndex=function(e){return(e<this._config.colors.ansi.length?this._config.colors.ansi:a.DEFAULT_ANSI_COLORS)[e]},p.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?f:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},p.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?u.color.opaque(this._config.colors.background):e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},p.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var s=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=s.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var i=e.bold?this._config.fontWeightBold:this._config.fontWeight,r=e.italic?"italic":"";this._tmpCtx.font=r+" "+i+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var n=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),r=!1;this._config.allowTransparency||(r=function(e){for(var t=!0,i=s.rgba>>>24,r=s.rgba>>>16&255,n=s.rgba>>>8&255,o=0;o<e.data.length;o+=4)e.data[o]===i&&e.data[o+1]===r&&e.data[o+2]===n?e.data[o+3]=0:t=!1;return t}(n));i=this._toCoordinateX(t),e=this._toCoordinateY(t);this._cacheCtx.putImageData(n,i,e);r={index:t,isEmpty:r,inBitmap:!1};return this._addGlyphToBitmap(r),r},p.prototype._addGlyphToBitmap=function(e){var t=this;"createImageBitmap"in window&&!l.isFirefox&&!l.isSafari&&(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return t._generateBitmap()},100)))},p.prototype._generateBitmap=function(){var i=this,r=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(e){i._bitmap=e;for(var t=0;t<r.length;t++)r[t].inBitmap=!0}),this._bitmapCommitTimeout=null},p);function p(e,t){var i=d.call(this)||this;i._config=t,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=e.createElement("canvas"),i._cacheCanvas.width=1024,i._cacheCanvas.height=1024,i._cacheCtx=h.throwIfFalsy(i._cacheCanvas.getContext("2d",{alpha:!0}));e=e.createElement("canvas");e.width=i._config.scaledCharWidth,e.height=i._config.scaledCharHeight,i._tmpCtx=h.throwIfFalsy(e.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(1024/i._config.scaledCharWidth),i._height=Math.floor(1024/i._config.scaledCharHeight);e=i._width*i._height;return i._cacheMap=new c.LRUMap(e),i._cacheMap.prealloc(e),i}t.DynamicCharAtlas=i;var v,n=(v=s.BaseCharAtlas,n(g,v),g.prototype.draw=function(e,t,i,r){return!1},g);function g(e,t){return v.call(this)||this}t.NoneCharAtlas=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){},n.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},n.prototype._doWarmUp=function(){},n.prototype.beginFrame=function(){},n);function n(){this._didWarmUp=!1}t.BaseCharAtlas=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.clear=function(){this._color={},this._rgba={}},n.prototype.setCss=function(e,t,i){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=i},n.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},n.prototype.setColor=function(e,t,i){this._color[e]||(this._color[e]={}),this._color[e][t]=i},n.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},n);function n(){this._color={},this._rgba={}}t.ColorContrastCache=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype._unlinkNode=function(e){var t=e.prev,i=e.next;e===this._head&&(this._head=i),e===this._tail&&(this._tail=t),null!==t&&(t.next=i),null!==i&&(i.prev=t)},n.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},n.prototype.prealloc=function(e){for(var t=this._nodePool,i=0;i<e;i++)t.push({prev:null,next:null,key:null,value:null})},n.prototype.get=function(e){e=this._map[e];return void 0!==e?(this._unlinkNode(e),this._appendNode(e),e.value):null},n.prototype.peekValue=function(e){e=this._map[e];return void 0!==e?e.value:null},n.prototype.peek=function(){var e=this._head;return null===e?null:e.value},n.prototype.set=function(e,t){var i,r=this._map[e];void 0!==r?(r=this._map[e],this._unlinkNode(r),r.value=t):this.size>=this.capacity?(r=this._head,this._unlinkNode(r),delete this._map[r.key],r.key=e,r.value=t,this._map[e]=r):(0<(i=this._nodePool).length?((r=i.pop()).key=e,r.value=t):r={prev:null,next:null,key:e,value:t},this._map[e]=r,this.size++),this._appendNode(r)},n);function n(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}t.LRUMap=r},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s,n=(s=i(13).BaseRenderLayer,n(o,s),o.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},o.prototype.resize=function(e){s.prototype.resize.call(this,e),this._clearState()},o.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},o.prototype.onSelectionChanged=function(e,t,i){var r,n,o,s,a,c;this._didStateChange(e,t,i,this._bufferService.buffer.ydisp)&&(this._clearAll(),e&&t?(s=e[1]-this._bufferService.buffer.ydisp,c=t[1]-this._bufferService.buffer.ydisp,r=Math.max(s,0),n=Math.min(c,this._bufferService.rows-1),r>=this._bufferService.rows||n<0||(this._ctx.fillStyle=this._colors.selection.css,i?(a=e[0],o=t[0]-a,this._fillCells(a,r,o,n-r+1)):(a=s===r?e[0]:0,s=r===n?t[0]:this._bufferService.cols,this._fillCells(a,r,s-a,1),a=Math.max(n-r-1,0),this._fillCells(0,r+1,this._bufferService.cols,a),r!==n&&(c=c===n?t[0]:this._bufferService.cols,this._fillCells(0,n,c,1))),this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp)):this._clearState())},o.prototype._didStateChange=function(e,t,i,r){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||i!==this._state.columnSelectMode||r!==this._state.ydisp},o.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},o);function o(e,t,i,r,n,o){r=s.call(this,e,"selection",t,!0,i,r,n,o)||this;return r.bufferService=n,r.optionsService=o,r._clearState(),r}t.SelectionRenderLayer=n},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var l,o=i(13),h=i(5),n=(l=o.BaseRenderLayer,n(s,l),s.prototype.resize=function(e){l.prototype.resize.call(this,e),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},s.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},s.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},s.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},s.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=t-this._bufferService.buffer.ydisp;if(i<0||i>=this._bufferService.rows)this._clearCursor();else if(this._bufferService.buffer.lines.get(t).loadCell(this._bufferService.buffer.x,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;t=this._optionsService.options.cursorStyle;return t&&"block"!==t?this._cursorRenderers[t](this._bufferService.buffer.x,i,this._cell):this._renderBlurCursor(this._bufferService.buffer.x,i,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=t,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===this._bufferService.buffer.x&&this._state.y===i&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](this._bufferService.buffer.x,i,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}else this._clearCursor()},s.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},s.prototype._renderBarCursor=function(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.options.cursorWidth),this._ctx.restore()},s.prototype._renderBlockCursor=function(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,i.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(i,e,t),this._ctx.restore()},s.prototype._renderUnderlineCursor=function(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},s.prototype._renderBlurCursor=function(e,t,i){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,i.getWidth(),1),this._ctx.restore()},s);function s(e,t,i,r,n,o,s,a,c){r=l.call(this,e,"cursor",t,!0,i,r,o,s)||this;return r._onRequestRefreshRowsEvent=n,r.bufferService=o,r.optionsService=s,r._coreService=a,r._coreBrowserService=c,r._cell=new h.CellData,r._state={x:0,y:0,isFocused:!1,style:"",width:0},r._cursorRenderers={bar:r._renderBarCursor.bind(r),block:r._renderBlockCursor.bind(r),underline:r._renderUnderlineCursor.bind(r)},r}t.CursorRenderLayer=n;var a=(Object.defineProperty(c.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),c.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},c.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},c.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,0<e)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},600)},e)},c.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},c.prototype.resume=function(){this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},c);function c(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var c,o=i(13),s=i(9),a=i(24),n=(c=o.BaseRenderLayer,n(l,c),l.prototype.resize=function(e){c.prototype.resize.call(this,e),this._state=void 0},l.prototype.reset=function(){this._clearCurrentLink()},l.prototype._clearCurrentLink=function(){var e;this._state&&(this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1),0<(e=this._state.y2-this._state.y1-1)&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0)},l.prototype._onLinkHover=function(e){if(e.fg===s.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&a.is256Color(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},l.prototype._onLinkLeave=function(e){this._clearCurrentLink()},l);function l(e,t,i,r,n,o,s){var a=c.call(this,e,"link",t,!0,i,r,o,s)||this;return a.bufferService=o,a.optionsService=s,n.onLinkHover(function(e){return a._onLinkHover(e)}),n.onLinkLeave(function(e){return a._onLinkLeave(e)}),a}t.LinkRenderLayer=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),i=(Object.defineProperty(r.prototype,"onLinkHover",{get:function(){return this._onLinkHover.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onLinkLeave",{get:function(){return this._onLinkLeave.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!0,configurable:!0}),r.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},r.prototype.linkifyRows=function(e,t){var i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=e,this._rowsToLinkify.end=t):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,e),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,t)),this._mouseZoneManager.clearAll(e,t),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var i=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,e=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,t,i,e,e);r.hasNext();)for(var n=r.next(),o=0;o<this._linkMatchers.length;o++)this._doLinkifyRow(n.range.first,n.content,this._linkMatchers[o]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(e,t,i){if(void 0===i&&(i={}),!t)throw new Error("handler must be defined");i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:i.matchIndex,validationCallback:i.validationCallback,hoverTooltipCallback:i.tooltipCallback,hoverLeaveCallback:i.leaveCallback,willLinkActivate:i.willLinkActivate,priority:i.priority||0};return this._addLinkMatcherToList(i),i.id},r.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;0<=t;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},r.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},r.prototype._doLinkifyRow=function(n,o,s){for(var a,c=this,l=new RegExp(s.regex.source,(s.regex.flags||"")+"g"),h=-1,u=this;null!==(a=l.exec(o))&&"break"!==function(){var t=a["number"!=typeof s.matchIndex?0:s.matchIndex];if(!t)return u._logService.debug("match found without corresponding matchIndex",a,s),"break";if(h=o.indexOf(t,h+1),l.lastIndex=h+t.length,h<0)return"break";var i=u._bufferService.buffer.stringIndexToBufferIndex(n,h);if(i[0]<0)return"break";var e=u._bufferService.buffer.lines.get(i[0]);if(!e)return"break";var e=e.getFg(i[1]),r=e?e>>9&511:void 0;s.validationCallback?s.validationCallback(t,function(e){c._rowsTimeoutId||e&&c._addLink(i[1],i[0]-c._bufferService.buffer.ydisp,t,s,r)}):u._addLink(i[1],i[0]-u._bufferService.buffer.ydisp,t,s,r)}(););},r.prototype._addLink=function(e,t,i,r,n){var o,s,a,c,l,h=this;this._mouseZoneManager&&this._element&&(o=this._unicodeService.getStringCellWidth(i),s=e%this._bufferService.cols,a=t+Math.floor(e/this._bufferService.cols),c=(s+o)%this._bufferService.cols,l=a+Math.floor((s+o)/this._bufferService.cols),0===c&&(c=this._bufferService.cols,l--),this._mouseZoneManager.add(new u(1+s,a+1,c+1,l+1,function(e){if(r.handler)return r.handler(e,i);e=window.open();e?(e.opener=null,e.location.href=i):console.warn("Opening link blocked as opener could not be cleared")},function(){h._onLinkHover.fire(h._createLinkHoverEvent(s,a,c,l,n)),h._element.classList.add("xterm-cursor-pointer")},function(e){h._onLinkTooltip.fire(h._createLinkHoverEvent(s,a,c,l,n)),r.hoverTooltipCallback&&r.hoverTooltipCallback(e,i,{start:{x:s,y:a},end:{x:c,y:l}})},function(){h._onLinkLeave.fire(h._createLinkHoverEvent(s,a,c,l,n)),h._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(e){return!r.willLinkActivate||r.willLinkActivate(e,i)})))},r.prototype._createLinkHoverEvent=function(e,t,i,r,n){return{x1:e,y1:t,x2:i,y2:r,cols:this._bufferService.cols,fg:n}},r._timeBeforeLatency=200,r);function r(e,t,i,r){this._bufferService=e,this._logService=t,this._optionsService=i,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onLinkHover=new n.EventEmitter,this._onLinkLeave=new n.EventEmitter,this._onLinkTooltip=new n.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}t.Linkifier=i;var u=function(e,t,i,r,n,o,s,a,c){this.x1=e,this.y1=t,this.x2=i,this.y2=r,this.clickCallback=n,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=c};t.MouseZone=u},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(11),l=i(51),h=i(5),u=i(1),o=i(4),s=i(0),a=i(28),f=i(52),i=String.fromCharCode(160),_=new RegExp(i,"g"),s=(Object.defineProperty(d.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onRedrawRequest",{get:function(){return this._onRedrawRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){this._removeMouseDownListeners()},d.prototype.reset=function(){this.clearSelection()},d.prototype.disable=function(){this.clearSelection(),this._enabled=!1},d.prototype.enable=function(){this._enabled=!0},Object.defineProperty(d.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var i=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var n=e[1];n<=t[1];n++){var o=i.translateBufferLineToString(n,!0,e[0],t[0]);r.push(o)}}else{var s=e[1]===t[1]?t[0]:void 0;for(r.push(i.translateBufferLineToString(e[1],!0,e[0],s)),n=e[1]+1;n<=t[1]-1;n++){var a=i.lines.get(n),o=i.translateBufferLineToString(n,!0);a&&a.isWrapped?r[r.length-1]+=o:r.push(o)}e[1]!==t[1]&&(a=i.lines.get(t[1]),o=i.translateBufferLineToString(t[1],!0,0,t[0]),a&&a.isWrapped?r[r.length-1]+=o:r.push(o))}return r.map(function(e){return e.replace(_," ")}).join(c.isWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),d.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},d.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),c.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},d.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},d.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;return!!(i&&e&&t)&&this._areCoordsInSelection(t,i,e)},d.prototype._areCoordsInSelection=function(e,t,i){return e[1]>t[1]&&e[1]<i[1]||t[1]===i[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<i[0]||t[1]<i[1]&&e[1]===i[1]&&e[0]<i[0]||t[1]<i[1]&&e[1]===t[1]&&e[0]>=t[0]},d.prototype.selectWordAtCursor=function(e){e=this._getMouseBufferCoords(e);e&&(this._selectWordAt(e,!1),this._model.selectionEnd=void 0,this.refresh(!0))},d.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},d.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},d.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},d.prototype._getMouseBufferCoords=function(e){e=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(e)return e[0]--,e[1]--,e[1]+=this._bufferService.buffer.ydisp,e},d.prototype._getMouseEventScrollAmount=function(e){var t=a.getCoordsRelativeToElement(e,this._screenElement)[1],e=this._bufferService.rows*Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight);return 0<=t&&t<=e?0:(e<t&&(t-=e),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},d.prototype.shouldForceSelection=function(e){return c.isMac?e.altKey&&this._optionsService.options.macOptionClickForcesSelection:e.shiftKey},d.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},d.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},d.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},d.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},d.prototype._onSingleClick=function(e){this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart&&(this._model.selectionEnd=void 0,(e=this._bufferService.buffer.lines.get(this._model.selectionStart[1]))&&e.length!==this._model.selectionStart[0]&&0===e.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++)},d.prototype._onDoubleClick=function(e){e=this._getMouseBufferCoords(e);e&&(this._activeSelectionMode=1,this._selectWordAt(e,!0))},d.prototype._onTripleClick=function(e){e=this._getMouseBufferCoords(e);e&&(this._activeSelectionMode=2,this._selectLineAt(e[1]))},d.prototype.shouldColumnSelect=function(e){return e.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},d.prototype._onMouseMove=function(e){var t;e.stopImmediatePropagation(),this._model.selectionStart&&(t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null,this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd?(2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(0<this._dragScrollAmount?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0)),e=this._bufferService.buffer,this._model.selectionEnd[1]<e.lines.length&&((e=e.lines.get(this._model.selectionEnd[1]))&&0===e.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++),t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)):this.refresh(!0))},d.prototype._dragScroll=function(){var e;this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount&&(this._scrollLines(this._dragScrollAmount,!1),e=this._bufferService.buffer,0<this._dragScrollAmount?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh())},d.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500?!e.altKey||this._bufferService.buffer.ybase!==this._bufferService.buffer.ydisp||(e=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1))&&void 0!==e[0]&&void 0!==e[1]&&(e=f.moveToCellSequence(e[0]-1,e[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys),this._coreService.triggerDataEvent(e,!0)):this.hasSelection&&this._onSelectionChange.fire()},d.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},d.prototype._convertViewportColToCharacterIndex=function(e,t){for(var i=t[0],r=0;t[0]>=r;r++){var n=e.loadCell(r,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:1<n&&t[0]!==r&&(i+=n-1)}return i},d.prototype.setSelection=function(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh()},d.prototype._getWordAt=function(e,t,i,r){if(void 0===i&&(i=!0),void 0===r&&(r=!0),!(e[0]>=this._bufferService.cols)){var n=this._bufferService.buffer,o=n.lines.get(e[1]);if(o){var s=n.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(o,e),c=a,l=e[0]-a,h=0,u=0,f=0,_=0;if(" "===s.charAt(a)){for(;0<a&&" "===s.charAt(a-1);)a--;for(;c<s.length&&" "===s.charAt(c+1);)c++}else{var d=e[0],p=e[0];0===o.getWidth(d)&&(h++,d--),2===o.getWidth(p)&&(u++,p++);var v=o.getString(p).length;for(1<v&&(_+=v-1,c+=v-1);0<d&&0<a&&!this._isCharWordSeparator(o.loadCell(d-1,this._workCell));){o.loadCell(d-1,this._workCell);var g=this._workCell.getChars().length;0===this._workCell.getWidth()?(h++,d--):1<g&&(f+=g-1,a-=g-1),a--,d--}for(;p<o.length&&c+1<s.length&&!this._isCharWordSeparator(o.loadCell(p+1,this._workCell));){o.loadCell(p+1,this._workCell);var y=this._workCell.getChars().length;2===this._workCell.getWidth()?(u++,p++):1<y&&(_+=y-1,c+=y-1),c++,p++}}c++;v=a+l-h+f,l=Math.min(this._bufferService.cols,c-a+h+u-f-_);if(t||""!==s.slice(a,c).trim())return!i||0!==v||32===o.getCodePoint(0)||(i=n.lines.get(e[1]-1))&&o.isWrapped&&32!==i.getCodePoint(this._bufferService.cols-1)&&((i=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1))&&(v-=i=this._bufferService.cols-i.start,l+=i)),!r||v+l!==this._bufferService.cols||32===o.getCodePoint(this._bufferService.cols-1)||(n=n.lines.get(e[1]+1))&&n.isWrapped&&32!==n.getCodePoint(0)&&((e=this._getWordAt([0,e[1]+1],!1,!1,!0))&&(l+=e.length)),{start:v,length:l}}}},d.prototype._selectWordAt=function(e,t){var i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}},d.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var i=e[1];t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}},d.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&0<=this._optionsService.options.wordSeparator.indexOf(e.getChars())},d.prototype._selectLineAt=function(e){e=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,e.first],this._model.selectionEnd=[this._bufferService.cols,e.last],this._model.selectionStartLength=0},r([n(3,o.ICharSizeService),n(4,s.IBufferService),n(5,s.ICoreService),n(6,o.IMouseService),n(7,s.IOptionsService)],d));function d(e,t,i,r,n,o,s,a){var c=this;this._scrollLines=e,this._element=t,this._screenElement=i,this._charSizeService=r,this._bufferService=n,this._coreService=o,this._mouseService=s,this._optionsService=a,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new h.CellData,this._mouseDownTimeStamp=0,this._onLinuxMouseSelection=new u.EventEmitter,this._onRedrawRequest=new u.EventEmitter,this._onSelectionChange=new u.EventEmitter,this._mouseMoveListener=function(e){return c._onMouseMove(e)},this._mouseUpListener=function(e){return c._onMouseUp(e)},this._coreService.onUserInput(function(){c.hasSelection&&c.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(function(e){return c._onTrim(e)}),this._bufferService.buffers.onBufferActivate(function(e){return c._onBufferActivate(e)}),this.enable(),this._model=new l.SelectionModel(this._bufferService),this._activeSelectionMode=0}t.SelectionService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(n.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(this.selectionEnd&&!this.areSelectionValuesReversed())return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd;var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}},enumerable:!0,configurable:!0}),n.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},n.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},n);function n(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}t.SelectionModel=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(12);function y(e,t,i,r){var n=e-b(i,e),o=t-b(i,t);return C(Math.abs(n-o)-function(e,t,i){for(var r=0,n=e-b(i,e),o=t-b(i,t),s=0;s<Math.abs(n-o);s++){var a="A"===c(e,t)?-1:1,a=i.buffer.lines.get(n+a*s);a&&a.isWrapped&&r++}return r}(e,t,i),S(c(e,t),r))}function b(e,t){for(var i=0,r=e.buffer.lines.get(t),n=r&&r.isWrapped;n&&0<=t&&t<e.rows;)i++,n=(r=e.buffer.lines.get(--t))&&r.isWrapped;return i}function c(e,t){return t<e?"A":"B"}function m(e,t,i,r,n,o){for(var s=e,a=t,c="";s!==i||a!==r;)s+=n?1:-1,n&&s>o.cols-1?(c+=o.buffer.translateBufferLineToString(a,!1,e,s),e=s=0,a++):!n&&s<0&&(c+=o.buffer.translateBufferLineToString(a,!1,0,e+1),e=s=o.cols-1,a--);return c+o.buffer.translateBufferLineToString(a,!1,e,s)}function S(e,t){return r.C0.ESC+(t?"O":"[")+e}function C(e,t){e=Math.floor(e);for(var i="",r=0;r<e;r++)i+=t;return i}t.moveToCellSequence=function(e,t,i,r){var n,o,s,a,c,l,h,u,f,_,d=i.buffer.x,p=i.buffer.y;if(!i.buffer.hasScrollback)return h=d,(0===y(u=p,t,f=i,_=r).length?"":C(m(h,u,h,u-b(f,u),!1,f).length,S("D",_)))+y(p,t,i,r)+(n=d,s=e,l=0<y(o=p,a=t,c=i,g=r).length?a-b(c,a):o,h=n,u=o,u=0<y(f=s,o=_=a,a=c,g).length?o-b(a,o):u,C(m(n,l,s,_,"C"==(o=h<f&&u<=o||f<=h&&u<o?"C":"D"),c).length,S(o,g)));if(p===t)return v=e<d?"D":"C",C(Math.abs(d-e),S(v,r));var v=t<p?"D":"C",g=Math.abs(p-t);return C(i.cols-(t<p?e:d)+(g-1)*i.cols+1+((t<p?d:e)-1),S(v,r))}},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});i=i(0),Object.defineProperty(o,"audioContext",{get:function(){if(!o._audioContext){var e=window.AudioContext||window.webkitAudioContext;if(!e)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;o._audioContext=new e}return o._audioContext},enumerable:!0,configurable:!0}),o.prototype.playBellSound=function(){var t,i=o.audioContext;i&&(t=i.createBufferSource(),i.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(e){t.buffer=e,t.connect(i.destination),t.start(0)}))},o.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),i=t.length,r=new Uint8Array(i),n=0;n<i;n++)r[n]=t.charCodeAt(n);return r.buffer},o.prototype._removeMimeType=function(e){return e.split(",")[1]},i=o=r([n(0,i.IOptionsService)],o);function o(e){this._optionsService=e}t.SoundService=i},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var a,c=i(2),l=i(8),h=i(4),i=i(0),h=(a=c.Disposable,n(u,a),u.prototype.dispose=function(){a.prototype.dispose.call(this),this._deactivate()},u.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},u.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var i=0;i<this._zones.length;i++){var r=this._zones[i];(r.y1>e&&r.y1<=t+1||r.y2>e&&r.y2<=t+1||r.y1<e&&r.y2>t+1)&&(this._currentZone&&this._currentZone===r&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}0===this._zones.length&&this._deactivate()}},u.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},u.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},u.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},u.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&((this._currentZone=i).hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},u.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},u.prototype._onMouseDown=function(e){var t;this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive&&null!==(t=this._findZoneEventAt(e))&&void 0!==t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())},u.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},u.prototype._onClick=function(e){var t=this._findZoneEventAt(e),i=this._getSelectionLength();t&&i===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},u.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},u.prototype._findZoneEventAt=function(e){e=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(e)for(var t=e[0],i=e[1],r=0;r<this._zones.length;r++){var n=this._zones[r];if(n.y1===n.y2){if(i===n.y1&&t>=n.x1&&t<n.x2)return n}else if(i===n.y1&&t>=n.x1||i===n.y2&&t<n.x2||i>n.y1&&i<n.y2)return n}},o([s(2,i.IBufferService),s(3,h.IMouseService),s(4,h.ISelectionService)],u));function u(e,t,i,r,n){var o=a.call(this)||this;return o._element=e,o._screenElement=t,o._bufferService=i,o._mouseService=r,o._selectionService=n,o._zones=[],o._areZonesActive=!1,o._lastHoverCoords=[void 0,void 0],o._initialSelectionLength=0,o.register(l.addDisposableDomListener(o._element,"mousedown",function(e){return o._onMouseDown(e)})),o._mouseMoveListener=function(e){return o._onMouseMove(e)},o._mouseLeaveListener=function(e){return o._onMouseLeave(e)},o._clickListener=function(e){return o._onClick(e)},o}t.MouseZoneManager=h},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(17),a=i(11),c=i(29),l=i(8),h=i(2),u=i(30),n=(o=h.Disposable,n(f,o),f.prototype.dispose=function(){o.prototype.dispose.call(this),this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},f.prototype._onBoundaryFocus=function(e,t){var i,r,n,o=e.target,s=this._rowElements[0===t?1:this._rowElements.length-2];o.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===s&&(0===t?(i=o,r=this._rowElements.pop(),this._rowContainer.removeChild(r)):(i=this._rowElements.shift(),r=o,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),r.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t?(n=this._createAccessibilityTreeNode(),this._rowElements.unshift(n),this._rowContainer.insertAdjacentElement("afterbegin",n)):(n=this._createAccessibilityTreeNode(),this._rowElements.push(n),this._rowContainer.appendChild(n)),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation())},f.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},f.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},f.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},f.prototype._onChar=function(e){var t=this;this._liveRegionLineCount<21&&(0<this._charsToConsume.length&&this._charsToConsume.shift()===e||(this._charsToAnnounce+=e),"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=s.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&0<this._liveRegion.textContent.length&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},f.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},f.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},f.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},f.prototype._renderRows=function(e,t){for(var i=this._terminal.buffer,r=i.lines.length.toString(),n=e;n<=t;n++){var o=i.translateBufferLineToString(i.ydisp+n,!0),s=(i.ydisp+n+1).toString(),a=this._rowElements[n];a&&(0===o.length?a.innerHTML="&nbsp;":a.textContent=o,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",r))}this._announceCharacters()},f.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},f.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},f.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},f);function f(e,t){var i=o.call(this)||this;i._terminal=e,i._renderService=t,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._rowContainer=document.createElement("div"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var r=0;r<i._terminal.rows;r++)i._rowElements[r]=i._createAccessibilityTreeNode(),i._rowContainer.appendChild(i._rowElements[r]);return i._topBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,0)},i._bottomBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,1)},i._rowElements[0].addEventListener("focus",i._topBoundaryFocusListener),i._rowElements[i._rowElements.length-1].addEventListener("focus",i._bottomBoundaryFocusListener),i._refreshRowsDimensions(),i._accessibilityTreeRoot.appendChild(i._rowContainer),i._renderRowsDebouncer=new c.RenderDebouncer(i._renderRows.bind(i)),i._refreshRows(),i._liveRegion=document.createElement("div"),i._liveRegion.classList.add("live-region"),i._liveRegion.setAttribute("aria-live","assertive"),i._accessibilityTreeRoot.appendChild(i._liveRegion),i._terminal.element.insertAdjacentElement("afterbegin",i._accessibilityTreeRoot),i.register(i._renderRowsDebouncer),i.register(i._terminal.onResize(function(e){return i._onResize(e.rows)})),i.register(i._terminal.onRender(function(e){return i._refreshRows(e.start,e.end)})),i.register(i._terminal.onScroll(function(){return i._refreshRows()})),i.register(i._terminal.onA11yChar(function(e){return i._onChar(e)})),i.register(i._terminal.onLineFeed(function(){return i._onChar("\n")})),i.register(i._terminal.onA11yTab(function(e){return i._onTab(e)})),i.register(i._terminal.onKey(function(e){return i._onKey(e.key)})),i.register(i._terminal.onBlur(function(){return i._clearLiveRegion()})),i.register(i._renderService.onDimensionsChange(function(){return i._refreshRowsDimensions()})),i._screenDprMonitor=new u.ScreenDprMonitor,i.register(i._screenDprMonitor),i._screenDprMonitor.setListener(function(){return i._refreshRowsDimensions()}),i.register(l.addDisposableDomListener(window,"resize",function(){return i._refreshRowsDimensions()})),i}t.AccessibilityManager=n},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var l,h=i(57),a=i(9),c=i(2),u=i(4),f=i(0),_=i(1),d=i(10),p="xterm-dom-renderer-owner-",v="xterm-rows",g="xterm-selection",y=1,f=(l=c.Disposable,n(b,l),Object.defineProperty(b.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this._element.classList.remove(p+this._terminalClass),this._screenElement.removeChild(this._rowContainer),this._screenElement.removeChild(this._selectionContainer),this._screenElement.removeChild(this._themeStyleElement),this._screenElement.removeChild(this._dimensionsStyleElement),l.prototype.dispose.call(this)},b.prototype._updateDimensions=function(){var t=this;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this._rowElements.forEach(function(e){e.style.width=t.dimensions.canvasWidth+"px",e.style.height=t.dimensions.actualCellHeight+"px",e.style.lineHeight=t.dimensions.actualCellHeight+"px",e.style.overflow="hidden"}),this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var e=this._terminalSelector+" ."+v+" span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=e,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.setColors=function(e){this._colors=e,this._injectCss()},b.prototype._injectCss=function(){var i=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var r=this._terminalSelector+" ."+v+" { color: "+this._colors.foreground.css+"; background-color: "+this._colors.background.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";r+=this._terminalSelector+" span:not(."+h.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+h.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+h.ITALIC_CLASS+" { font-style: italic;}",r+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",r+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",r+=this._terminalSelector+" ."+v+":not(.xterm-focus) ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" ."+v+".xterm-focus ."+h.CURSOR_CLASS+"."+h.CURSOR_BLINK_CLASS+":not(."+h.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" ."+v+".xterm-focus ."+h.CURSOR_CLASS+"."+h.CURSOR_BLINK_CLASS+"."+h.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" ."+v+".xterm-focus ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" ."+v+" ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" ."+v+" ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",r+=this._terminalSelector+" ."+g+" { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" ."+g+" div { position: absolute; background-color: "+this._colors.selection.css+";}",this._colors.ansi.forEach(function(e,t){r+=i._terminalSelector+" .xterm-fg-"+t+" { color: "+e.css+"; }"+i._terminalSelector+" .xterm-bg-"+t+" { background-color: "+e.css+"; }"}),r+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+d.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=r},b.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},b.prototype._refreshRowElements=function(e,t){for(var i=this._rowElements.length;i<=t;i++){var r=document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},b.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},b.prototype.onCharSizeChanged=function(){this._updateDimensions()},b.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},b.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},b.prototype.onSelectionChanged=function(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);var r,n,o,s,a;e&&t&&(a=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(a,0),o=Math.min(r,this._bufferService.rows-1),n>=this._bufferService.rows||o<0||(s=document.createDocumentFragment(),i?s.appendChild(this._createSelectionElement(n,e[0],t[0],o-n+1)):(a=a===n?e[0]:0,e=n===o?t[0]:this._bufferService.cols,s.appendChild(this._createSelectionElement(n,a,e)),s.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,o-n-1)),n!==o&&(t=r===o?t[0]:this._bufferService.cols,s.appendChild(this._createSelectionElement(o,0,t)))),this._selectionContainer.appendChild(s)))},b.prototype._createSelectionElement=function(e,t,i,r){void 0===r&&(r=1);var n=document.createElement("div");return n.style.height=r*this.dimensions.actualCellHeight+"px",n.style.top=e*this.dimensions.actualCellHeight+"px",n.style.left=t*this.dimensions.actualCellWidth+"px",n.style.width=this.dimensions.actualCellWidth*(i-t)+"px",n},b.prototype.onCursorMove=function(){},b.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},b.prototype.clear=function(){this._rowElements.forEach(function(e){return e.innerHTML=""})},b.prototype.renderRows=function(e,t){for(var i=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=this._bufferService.buffer.x,n=this._optionsService.options.cursorBlink,o=e;o<=t;o++){var s=this._rowElements[o];s.innerHTML="";var a=o+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(a),l=this._optionsService.options.cursorStyle;s.appendChild(this._rowFactory.createRow(c,a===i,l,r,n,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(b.prototype,"_terminalSelector",{get:function(){return"."+p+this._terminalClass},enumerable:!0,configurable:!0}),b.prototype.registerCharacterJoiner=function(e){return-1},b.prototype.deregisterCharacterJoiner=function(e){return!1},b.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},b.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},b.prototype._setCellUnderline=function(e,t,i,r,n,o){for(;e!==t||i!==r;){var s=this._rowElements[i];if(!s)return;s=s.children[e];s&&(s.style.textDecoration=o?"underline":"none"),++e>=n&&(e=0,i++)}},o([s(5,u.ICharSizeService),s(6,f.IOptionsService),s(7,f.IBufferService)],b));function b(e,t,i,r,n,o,s,a){var c=l.call(this)||this;return c._colors=e,c._element=t,c._screenElement=i,c._viewportElement=r,c._linkifier=n,c._charSizeService=o,c._optionsService=s,c._bufferService=a,c._terminalClass=y++,c._rowElements=[],c._onRequestRefreshRows=new _.EventEmitter,c._rowContainer=document.createElement("div"),c._rowContainer.classList.add(v),c._rowContainer.style.lineHeight="normal",c._rowContainer.setAttribute("aria-hidden","true"),c._refreshRowElements(c._bufferService.cols,c._bufferService.rows),c._selectionContainer=document.createElement("div"),c._selectionContainer.classList.add(g),c._selectionContainer.setAttribute("aria-hidden","true"),c.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},c._updateDimensions(),c._injectCss(),c._rowFactory=new h.DomRendererRowFactory(document,c._optionsService,c._colors),c._element.classList.add(p+c._terminalClass),c._screenElement.appendChild(c._rowContainer),c._screenElement.appendChild(c._selectionContainer),c._linkifier.onLinkHover(function(e){return c._onLinkHover(e)}),c._linkifier.onLinkLeave(function(e){return c._onLinkLeave(e)}),c}t.DomRenderer=f},function(e,y,t){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var b=t(9),m=t(3),r=t(5),S=t(10);y.BOLD_CLASS="xterm-bold",y.DIM_CLASS="xterm-dim",y.ITALIC_CLASS="xterm-italic",y.UNDERLINE_CLASS="xterm-underline",y.CURSOR_CLASS="xterm-cursor",y.CURSOR_BLINK_CLASS="xterm-cursor-blink",y.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",y.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",y.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";i.prototype.setColors=function(e){this._colors=e},i.prototype.createRow=function(e,t,i,r,n,o,s){for(var a=this._document.createDocumentFragment(),c=0,l=Math.min(e.length,s)-1;0<=l;l--)if(e.loadCell(l,this._workCell).getCode()!==m.NULL_CELL_CODE||t&&l===r){c=l+1;break}for(l=0;l<c;l++){e.loadCell(l,this._workCell);var h=this._workCell.getWidth();if(0!==h){var u=this._document.createElement("span");if(1<h&&(u.style.width=o*h+"px"),t&&l===r)switch(u.classList.add(y.CURSOR_CLASS),n&&u.classList.add(y.CURSOR_BLINK_CLASS),i){case"bar":u.classList.add(y.CURSOR_STYLE_BAR_CLASS);break;case"underline":u.classList.add(y.CURSOR_STYLE_UNDERLINE_CLASS);break;default:u.classList.add(y.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&u.classList.add(y.BOLD_CLASS),this._workCell.isItalic()&&u.classList.add(y.ITALIC_CLASS),this._workCell.isDim()&&u.classList.add(y.DIM_CLASS),this._workCell.isUnderline()&&u.classList.add(y.UNDERLINE_CLASS),this._workCell.isInvisible()?u.textContent=m.WHITESPACE_CELL_CHAR:u.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var f=this._workCell.getFgColor(),_=this._workCell.getFgColorMode(),d=this._workCell.getBgColor(),p=this._workCell.getBgColorMode(),v=!!this._workCell.isInverse();switch(v&&(h=f,f=d,d=h,h=_,_=p,p=h),_){case 16777216:case 33554432:this._workCell.isBold()&&f<8&&this._optionsService.options.drawBoldTextInBrightColors&&(f+=8),this._applyMinimumContrast(u,this._colors.background,this._colors.ansi[f])||u.classList.add("xterm-fg-"+f);break;case 50331648:var g=S.rgba.toColor(f>>16&255,f>>8&255,255&f);this._applyMinimumContrast(u,this._colors.background,g)||this._addStyle(u,"color:#"+C(f.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(u,this._colors.background,this._colors.foreground)||v&&u.classList.add("xterm-fg-"+b.INVERTED_DEFAULT_COLOR)}switch(p){case 16777216:case 33554432:u.classList.add("xterm-bg-"+d);break;case 50331648:this._addStyle(u,"background-color:#"+C(d.toString(16),"0",6));break;case 0:default:v&&u.classList.add("xterm-bg-"+b.INVERTED_DEFAULT_COLOR)}a.appendChild(u)}}return a},i.prototype._applyMinimumContrast=function(e,t,i){if(1===this._optionsService.options.minimumContrastRatio)return!1;var r=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===r&&(r=S.color.ensureContrastRatio(t,i,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=r?r:null)),!!r&&(this._addStyle(e,"color:"+r.css),!0)},i.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},t=i;function i(e,t,i){this._document=e,this._optionsService=t,this._colors=i,this._workCell=new r.CellData}function C(e,t,i){for(;e.length<i;)e=t+e;return e}y.DomRendererRowFactory=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),c={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,r){var n,o={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?a.C0.ESC+"OA":a.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?a.C0.ESC+"OD":a.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?a.C0.ESC+"OC":a.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?a.C0.ESC+"OB":a.C0.ESC+"[B");break;case 8:if(e.shiftKey){o.key=a.C0.BS;break}if(e.altKey){o.key=a.C0.ESC+a.C0.DEL;break}o.key=a.C0.DEL;break;case 9:if(e.shiftKey){o.key=a.C0.ESC+"[Z";break}o.key=a.C0.HT,o.cancel=!0;break;case 13:o.key=a.C0.CR,o.cancel=!0;break;case 27:o.key=a.C0.ESC,o.cancel=!0;break;case 37:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"D",o.key===a.C0.ESC+"[1;3D"&&(o.key=a.C0.ESC+(i?"b":"[1;5D"))):o.key=t?a.C0.ESC+"OD":a.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"C",o.key===a.C0.ESC+"[1;3C"&&(o.key=a.C0.ESC+(i?"f":"[1;5C"))):o.key=t?a.C0.ESC+"OC":a.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"A",i||o.key!==a.C0.ESC+"[1;3A"||(o.key=a.C0.ESC+"[1;5A")):o.key=t?a.C0.ESC+"OA":a.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"B",i||o.key!==a.C0.ESC+"[1;3B"||(o.key=a.C0.ESC+"[1;5B")):o.key=t?a.C0.ESC+"OB":a.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=a.C0.ESC+"[2~");break;case 46:o.key=s?a.C0.ESC+"[3;"+(1+s)+"~":a.C0.ESC+"[3~";break;case 36:o.key=s?a.C0.ESC+"[1;"+(1+s)+"H":t?a.C0.ESC+"OH":a.C0.ESC+"[H";break;case 35:o.key=s?a.C0.ESC+"[1;"+(1+s)+"F":t?a.C0.ESC+"OF":a.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:o.key=a.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:o.key=a.C0.ESC+"[6~";break;case 112:o.key=s?a.C0.ESC+"[1;"+(1+s)+"P":a.C0.ESC+"OP";break;case 113:o.key=s?a.C0.ESC+"[1;"+(1+s)+"Q":a.C0.ESC+"OQ";break;case 114:o.key=s?a.C0.ESC+"[1;"+(1+s)+"R":a.C0.ESC+"OR";break;case 115:o.key=s?a.C0.ESC+"[1;"+(1+s)+"S":a.C0.ESC+"OS";break;case 116:o.key=s?a.C0.ESC+"[15;"+(1+s)+"~":a.C0.ESC+"[15~";break;case 117:o.key=s?a.C0.ESC+"[17;"+(1+s)+"~":a.C0.ESC+"[17~";break;case 118:o.key=s?a.C0.ESC+"[18;"+(1+s)+"~":a.C0.ESC+"[18~";break;case 119:o.key=s?a.C0.ESC+"[19;"+(1+s)+"~":a.C0.ESC+"[19~";break;case 120:o.key=s?a.C0.ESC+"[20;"+(1+s)+"~":a.C0.ESC+"[20~";break;case 121:o.key=s?a.C0.ESC+"[21;"+(1+s)+"~":a.C0.ESC+"[21~";break;case 122:o.key=s?a.C0.ESC+"[23;"+(1+s)+"~":a.C0.ESC+"[23~";break;case 123:o.key=s?a.C0.ESC+"[24;"+(1+s)+"~":a.C0.ESC+"[24~";break;default:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?i&&!r||!e.altKey||e.metaKey?i&&!e.altKey&&!e.ctrlKey&&e.metaKey?65===e.keyCode&&(o.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&48<=e.keyCode&&1===e.key.length?o.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(o.key=a.C0.US):(n=(n=c[e.keyCode])&&n[e.shiftKey?1:0])?o.key=a.C0.ESC+n:65<=e.keyCode&&e.keyCode<=90&&(n=e.ctrlKey?e.keyCode-64:e.keyCode+32,o.key=a.C0.ESC+String.fromCharCode(n)):65<=e.keyCode&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=a.C0.NUL:51<=e.keyCode&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=a.C0.DEL:219===e.keyCode?o.key=a.C0.ESC:220===e.keyCode?o.key=a.C0.FS:221===e.keyCode&&(o.key=a.C0.GS)}return o}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(3);t.updateWindowsModeWrappedState=function(e){var t=null===(t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))||void 0===t?void 0:t.get(e.cols-1),e=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);e&&t&&(e.isWrapped=t[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&t[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var a,c=i(29),l=i(1),h=i(2),u=i(30),f=i(8),_=i(0),i=i(4),i=(a=h.Disposable,n(d,a),Object.defineProperty(d.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!0,configurable:!0}),d.prototype._onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},d.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t,this._rowCount)},d.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._onRender.fire({start:e,end:t})},d.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},d.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},d.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},d.prototype.dispose=function(){this._renderer.dispose(),a.prototype.dispose.call(this)},d.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRefreshRows(function(e){return t.refreshRows(e.start,e.end)}),this.refreshRows(0,this._rowCount-1)},d.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},d.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},d.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},d.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},d.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},d.prototype.onBlur=function(){this._renderer.onBlur()},d.prototype.onFocus=function(){this._renderer.onFocus()},d.prototype.onSelectionChanged=function(e,t,i){this._renderer.onSelectionChanged(e,t,i)},d.prototype.onCursorMove=function(){this._renderer.onCursorMove()},d.prototype.clear=function(){this._renderer.clear()},d.prototype.registerCharacterJoiner=function(e){return this._renderer.registerCharacterJoiner(e)},d.prototype.deregisterCharacterJoiner=function(e){return this._renderer.deregisterCharacterJoiner(e)},o([s(3,_.IOptionsService),s(4,i.ICharSizeService)],d));function d(e,t,i,r,n){var o,s=a.call(this)||this;return s._renderer=e,s._rowCount=t,s.screenElement=i,s.optionsService=r,s.charSizeService=n,s._isPaused=!1,s._needsFullRefresh=!1,s._canvasWidth=0,s._canvasHeight=0,s._onDimensionsChange=new l.EventEmitter,s._onRender=new l.EventEmitter,s._onRefreshRequest=new l.EventEmitter,s._renderDebouncer=new c.RenderDebouncer(function(e,t){return s._renderRows(e,t)}),s.register(s._renderDebouncer),s._screenDprMonitor=new u.ScreenDprMonitor,s._screenDprMonitor.setListener(function(){return s.onDevicePixelRatioChange()}),s.register(s._screenDprMonitor),s.register(r.onOptionChange(function(){return s._renderer.onOptionsChanged()})),s.register(n.onCharSizeChange(function(){return s.onCharSizeChanged()})),s._renderer.onRequestRefreshRows(function(e){return s.refreshRows(e.start,e.end)}),s.register(f.addDisposableDomListener(window,"resize",function(){return s.onDevicePixelRatioChange()})),"IntersectionObserver"in window&&((o=new IntersectionObserver(function(e){return s._onIntersectionChange(e[e.length-1])},{threshold:0})).observe(i),s.register({dispose:function(){return o.disconnect()}})),s}t.RenderService=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),i=t(11),s=t(31);n.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",n.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:n.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:i.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var r=["cols","rows"],i=(Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!0,configurable:!0}),a.prototype.setOption=function(e,t){if(!(e in n.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');if(-1!==r.indexOf(e))throw new Error('Option "'+e+'" can only be set in the constructor');this.options[e]!==t&&(t=this._sanitizeAndValidateOption(e,t),this.options[e]!==t&&(this.options[e]=t,this._onOptionChange.fire(e)))},a.prototype._sanitizeAndValidateOption=function(e,t){switch(e){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t=t||n.DEFAULT_OPTIONS[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(e+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+t)}return t},a.prototype.getOption=function(e){if(!(e in n.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');return this.options[e]},a);function a(i){var r=this;this._onOptionChange=new o.EventEmitter,this.options=s.clone(n.DEFAULT_OPTIONS),Object.keys(i).forEach(function(e){var t;e in r.options&&(t=i[e],r.options[e]=t)})}n.OptionsService=i},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(1),o=(Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return 0<this.width&&0<this.height},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!0,configurable:!0}),a.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},r([n(2,o.IOptionsService)],a));function a(e,t,i){this.document=e,this.parentElement=t,this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=new s.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}t.CharSizeService=o;var c=(l.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},l);function l(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(64);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;Object.defineProperty(a.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),a.prototype.resize=function(e,t){this.cols=e,this.rows=t},a.prototype.reset=function(){this.buffers=new s.BufferSet(this._optionsService,this)},o=r([n(0,o.IOptionsService)],a);function a(e){this._optionsService=e,this.cols=Math.max(e.options.cols,t.MINIMUM_COLS),this.rows=Math.max(e.options.rows,t.MINIMUM_ROWS),this.buffers=new s.BufferSet(e,this)}t.BufferService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(65),n=i(1),i=(Object.defineProperty(o.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),o.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},o.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},o.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},o.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},o);function o(e,t){this.optionsService=e,this.bufferService=t,this._onBufferActivate=new n.EventEmitter,this._normal=new r.Buffer(!0,e,t),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,e,t),this._activeBuffer=this._normal,this.setupTabStops()}t.BufferSet=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(66),D=i(16),n=i(5),s=i(3),T=i(67),o=i(68),a=i(18);t.MAX_BUFFER_SIZE=4294967295;c.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg):(this._nullCell.fg=0,this._nullCell.bg=0),this._nullCell},c.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0),this._whitespaceCell},c.prototype.getBlankLine=function(e,t){return new D.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(c.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return 0<=e&&e<this._rows},enumerable:!0,configurable:!0}),c.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;e+=this._optionsService.options.scrollback;return e>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:e},c.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=D.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},c.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},c.prototype.resize=function(e,t){var i=this.getNullCell(D.DEFAULT_ATTR_DATA),r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),0<this.lines.length){if(this._cols<e)for(var n=0;n<this.lines.length;n++)this.lines.get(n).resize(e,i);var o,s=0;if(this._rows<t)for(var a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(!this._optionsService.options.windowsMode&&0<this.ybase&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,0<this.ydisp&&this.ydisp--):this.lines.push(new D.BufferLine(e,i)));else for(a=this._rows;t<a;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));r<this.lines.maxLength&&(0<(o=this.lines.length-r)&&(this.lines.trimStart(o),this.ybase=Math.max(this.ybase-o,0),this.ydisp=Math.max(this.ydisp-o,0),this.savedY=Math.max(this.savedY-o,0)),this.lines.maxLength=r),this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(n=0;n<this.lines.length;n++)this.lines.get(n).resize(e,i);this._cols=e,this._rows=t},Object.defineProperty(c.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!0,configurable:!0}),c.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},c.prototype._reflowLarger=function(e,t){var i=T.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(D.DEFAULT_ATTR_DATA));0<i.length&&(i=T.reflowLargerCreateNewLayout(this.lines,i),T.reflowLargerApplyNewLayout(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved))},c.prototype._reflowLargerAdjustViewport=function(e,t,i){for(var r=this.getNullCell(D.DEFAULT_ATTR_DATA),n=i;0<n--;)0===this.ybase?(0<this.y&&this.y--,this.lines.length<t&&this.lines.push(new D.BufferLine(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)},c.prototype._reflowSmaller=function(e,t){for(var i=this.getNullCell(D.DEFAULT_ATTR_DATA),r=[],n=0,o=this.lines.length-1;0<=o;o--){var s=this.lines.get(o);if(!(!s||!s.isWrapped&&s.getTrimmedLength()<=e)){for(var a=[s];s.isWrapped&&0<o;)s=this.lines.get(--o),a.unshift(s);var c=this.ybase+this.y;if(!(o<=c&&c<o+a.length)){for(var l=a[a.length-1].getTrimmedLength(),h=T.reflowSmallerGetNewLineLengths(a,this._cols,e),u=h.length-a.length,c=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+u):Math.max(0,this.lines.length-this.lines.maxLength+u),f=[],_=0;_<u;_++){var d=this.getBlankLine(D.DEFAULT_ATTR_DATA,!0);f.push(d)}0<f.length&&(r.push({start:o+a.length+n,newLines:f}),n+=f.length),a.push.apply(a,f);var p=h.length-1,v=h[p];0===v&&(v=h[--p]);for(var g=a.length-u-1,y=l;0<=g;){var b=Math.min(y,v);a[p].copyCellsFrom(a[g],y-b,v-b,b,!0),0==(v-=b)&&(v=h[--p]),0==(y-=b)&&(g--,b=Math.max(g,0),y=T.getWrappedLineTrimmedLength(a,b,this._cols))}for(_=0;_<a.length;_++)h[_]<e&&a[_].setCell(h[_],i);for(var m=u-c;0<m--;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+n)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+u,this.ybase+t-1)}}}if(0<r.length){for(var S=[],C=[],_=0;_<this.lines.length;_++)C.push(this.lines.get(_));var w=this.lines.length,E=w-1,L=0,A=r[L];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+n);var R=0;for(_=Math.min(this.lines.maxLength-1,w+n-1);0<=_;_--)if(A&&A.start>E+R){for(var x=A.newLines.length-1;0<=x;x--)this.lines.set(_--,A.newLines[x]);_++,S.push({index:E+1,amount:A.newLines.length}),R+=A.newLines.length,A=r[++L]}else this.lines.set(_,C[E--]);var k=0;for(_=S.length-1;0<=_;_--)S[_].index+=k,this.lines.onInsertEmitter.fire(S[_]),k+=S[_].amount;w=Math.max(0,w+n-this.lines.maxLength);0<w&&this.lines.onTrimEmitter.fire(w)}},c.prototype.stringIndexToBufferIndex=function(e,t,i){for(void 0===i&&(i=!1);t;){var r=this.lines.get(e);if(!r)return[-1,-1];for(var n=i?r.getTrimmedLength():r.length,o=0;o<n;++o)if(r.get(o)[s.CHAR_DATA_WIDTH_INDEX]&&(t-=r.get(o)[s.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},c.prototype.translateBufferLineToString=function(e,t,i,r){void 0===i&&(i=0);e=this.lines.get(e);return e?e.translateToString(t,i,r):""},c.prototype.getWrappedRangeForLine=function(e){for(var t=e,i=e;0<t&&this.lines.get(t).isWrapped;)t--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:t,last:i}},c.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},c.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&0<e;);return e>=this._cols?this._cols-1:e<0?0:e},c.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},c.prototype.addMarker=function(e){var t=this,i=new o.Marker(e);return this.markers.push(i),i.register(this.lines.onTrim(function(e){i.line-=e,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(function(e){i.line>=e.index&&(i.line+=e.amount)})),i.register(this.lines.onDelete(function(e){i.line>=e.index&&i.line<e.index+e.amount&&i.dispose(),i.line>e.index&&(i.line-=e.amount)})),i.register(i.onDispose(function(){return t._removeMarker(i)})),i},c.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},c.prototype.iterator=function(e,t,i,r,n){return new l(this,e,t,i,r,n)},i=c;function c(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=D.DEFAULT_ATTR_DATA.clone(),this.savedCharset=a.DEFAULT_CHARSET,this.markers=[],this._nullCell=n.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),this._whitespaceCell=n.CellData.fromCharData([0,s.WHITESPACE_CELL_CHAR,s.WHITESPACE_CELL_WIDTH,s.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}t.Buffer=i;var l=(h.prototype.hasNext=function(){return this._current<this._endIndex},h.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",i=e.first;i<=e.last;++i)t+=this._buffer.translateBufferLineToString(i,this._trimRight);return this._current=e.last+1,{range:e,content:t}},h);function h(e,t,i,r,n,o){void 0===i&&(i=0),void 0===r&&(r=e.lines.length),void 0===n&&(n=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=r,this._startOverscan=n,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}t.BufferStringIterator=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),i=(Object.defineProperty(n.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),i=0;i<Math.min(e,this.length);i++)t[i]=this._array[this._getCyclicIndex(i)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),n.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},n.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},n.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},n.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(n.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!0,configurable:!0}),n.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},n.prototype.splice=function(e,t){for(var i,r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(var o=e;o<this._length-t;o++)this._array[this._getCyclicIndex(o)]=this._array[this._getCyclicIndex(o+t)];this._length-=t}for(o=this._length-1;e<=o;o--)this._array[this._getCyclicIndex(o+r.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o<r.length;o++)this._array[this._getCyclicIndex(e+o)]=r[o];this._length+r.length>this._maxLength?(i=this._length+r.length-this._maxLength,this._startIndex+=i,this._length=this._maxLength,this.onTrimEmitter.fire(i)):this._length+=r.length},n.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},n.prototype.shiftElements=function(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(0<i){for(var r=t-1;0<=r;r--)this.set(e+r+i,this.get(e+r));var n=e+t+i-this._length;if(0<n)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<t;r++)this.set(e+r+i,this.get(e+r))}},n.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},n);function n(e){this._maxLength=e,this.onDeleteEmitter=new r.EventEmitter,this.onInsertEmitter=new r.EventEmitter,this.onTrimEmitter=new r.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}t.CircularList=i},function(e,t,i){"use strict";function y(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();var r=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),t=2===e[t+1].getWidth(0);return r&&t?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.reflowLargerGetLinesToRemove=function(e,t,i,r,n){for(var o=[],s=0;s<e.length-1;s++){var a=s,c=e.get(++a);if(c.isWrapped){for(var l=[e.get(s)];a<e.length&&c.isWrapped;)l.push(c),c=e.get(++a);if(s<=r&&r<a)s+=l.length-1;else{for(var h=0,u=y(l,h,t),f=1,_=0;f<l.length;){var d=y(l,f,t),p=Math.min(d-_,i-u);l[h].copyCellsFrom(l[f],_,u,p,!1),(u+=p)===i&&(h++,u=0),(_+=p)===d&&(f++,_=0),0===u&&0!==h&&2===l[h-1].getWidth(i-1)&&(l[h].copyCellsFrom(l[h-1],i-1,u++,1,!1),l[h-1].setCell(i-1,n))}l[h].replaceCells(u,i,n);for(var v=0,g=l.length-1;0<g&&(h<g||0===l[g].getTrimmedLength());g--)v++;0<v&&(o.push(s+l.length-v),o.push(v)),s+=l.length-1}}}return o},t.reflowLargerCreateNewLayout=function(e,t){for(var i,r=[],n=0,o=t[n],s=0,a=0;a<e.length;a++)o===a?(i=t[++n],e.onDeleteEmitter.fire({index:a-s,amount:i}),a+=i-1,s+=i,o=t[++n]):r.push(a);return{layout:r,countRemoved:s}},t.reflowLargerApplyNewLayout=function(e,t){for(var i=[],r=0;r<t.length;r++)i.push(e.get(t[r]));for(r=0;r<i.length;r++)e.set(r,i[r]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(i,r,e){for(var t=[],n=i.map(function(e,t){return y(i,t,r)}).reduce(function(e,t){return e+t}),o=0,s=0,a=0;a<n;){if(n-a<e){t.push(n-a);break}o+=e;var c=y(i,s,r);c<o&&(o-=c,s++);c=2===i[s].getWidth(o-1);c&&o--;c=c?e-1:e;t.push(c),a+=c}return t},t.getWrappedLineTrimmedLength=y},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(1),n=(o=i(2).Disposable,n(a,o),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),a.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},a._nextId=1,a);function a(e){var t=o.call(this)||this;return t.line=e,t._id=a._nextId++,t.isDisposed=!1,t._onDispose=new s.EventEmitter,t}t.Marker=n},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),s=i(28),o=(a.prototype.getCoords=function(e,t,i,r,n){return s.getCoords(e,t,i,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,n)},a.prototype.getRawByteCoords=function(e,t,i,r){r=this.getCoords(e,t,i,r);return s.getRawByteCoords(r)},r([n(0,o.IRenderService),n(1,o.ICharSizeService)],a));function a(e,t){this._renderService=e,this._charSizeService=t}t.MouseService=o},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(1),a=i(31),c=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,origin:!1,wraparound:!0}),o=(Object.defineProperty(l.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),l.prototype.reset=function(){this.decPrivateModes=a.clone(c)},l.prototype.triggerDataEvent=function(e,t){var i;void 0===t&&(t=!1),this._optionsService.options.disableStdin||((i=this._bufferService.buffer).ybase!==i.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e))},l.prototype.triggerBinaryEvent=function(e){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},r([n(1,o.IBufferService),n(2,o.ILogService),n(3,o.IOptionsService)],l));function l(e,t,i,r){this._scrollToBottom=e,this._bufferService=t,this._logService=i,this._optionsService=r,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=new s.EventEmitter,this._onUserInput=new s.EventEmitter,this._onBinary=new s.EventEmitter,this.decPrivateModes=a.clone(c)}t.CoreService=o},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var r=Array(e),n=0,t=0;t<i;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)r[n]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var s,a=i(0);(i=s=t.LogLevel||(t.LogLevel={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF";var c={debug:s.DEBUG,info:s.INFO,warn:s.WARN,error:s.ERROR,off:s.OFF},a=(l.prototype._updateLogLevel=function(){this._logLevel=c[this._optionsService.options.logLevel]},l.prototype._evalLazyOptionalParams=function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())},l.prototype._log=function(e,t,i){this._evalLazyOptionalParams(i),e.call.apply(e,o([console,"xterm.js: "+t],i))},l.prototype.debug=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.DEBUG&&this._log(console.log,e,t)},l.prototype.info=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.INFO&&this._log(console.info,e,t)},l.prototype.warn=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.WARN&&this._log(console.warn,e,t)},l.prototype.error=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.ERROR&&this._log(console.error,e,t)},r([n(0,a.IOptionsService)],l));function l(e){var t=this;this._optionsService=e,this._updateLogLevel(),this._optionsService.onOptionChange(function(e){"logLevel"===e&&t._updateLogLevel()})}t.LogService=a},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});i=i(0),Object.defineProperty(o.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),o.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},o.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},o.prototype.markRangeDirty=function(e,t){var i;t<e&&(i=e,e=t,t=i),e<this._start&&(this._start=e),t>this._end&&(this._end=t)},o.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},i=r([n(0,i.IBufferService)],o);function o(e){this._bufferService=e,this.clearRange()}t.DirtyRowService=i},function(e,t,i){"use strict";var l=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var r=Array(e),n=0,t=0;t<i;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)r[n]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),h=i(14),n=(o.prototype.set=function(e,t){var i=this._entries.get(e);return this._entries.set(e,t),i},o.prototype.forEach=function(i){this._entries.forEach(function(e,t){return i(t,e)})},o.prototype.has=function(e){return this._entries.has(e)},o.prototype.get=function(e){return this._entries.get(e)},o);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var i=0,r=e;i<r.length;i++){var n=r[i],o=n[0],n=n[1];this.set(o,n)}}t.ServiceCollection=n;s.prototype.setService=function(e,t){this._services.set(e,t)},s.prototype.getService=function(e){return this._services.get(e)},s.prototype.createInstance=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var r=h.getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),n=[],o=0,s=r;o<s.length;o++){var a=s[o],c=this._services.get(a.id);if(!c)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");n.push(c)}r=0<r.length?r[0].index:t.length;if(t.length!==r)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(r+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,l([void 0],l(t,n))))},i=s;function s(){this._services=new n,this._services.set(r.IInstantiationService,this)}t.InstantiationService=i},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(1),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,!(e.shift=!1))}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}var l=String.fromCharCode,h={DEFAULT:function(e){e=[c(e,!1)+32,e.col+32,e.row+32];return 255<e[0]||255<e[1]||255<e[2]?"":""+l(e[0])+l(e[1])+l(e[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+c(e,!0)+";"+e.col+";"+e.row+t}},o=(u.prototype.addProtocol=function(e,t){this._protocols[e]=t},u.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(u.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!0,configurable:!0}),u.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(u.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!0,configurable:!0}),u.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},u.prototype.explainEvents=function(e){return{DOWN:!!(1&e),UP:!!(2&e),DRAG:!!(4&e),MOVE:!!(8&e),WHEEL:!!(16&e)}},u.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},r([n(0,o.IBufferService),n(1,o.ICoreService)],u));function u(e,t){var i=this;this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null,Object.keys(a).forEach(function(e){return i.addProtocol(e,a[e])}),Object.keys(h).forEach(function(e){return i.addEncoding(e,h[e])}),this.reset()}t.CoreMouseService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.writeSync=function(e){if(this._writeBuffer.length){for(var t=this._bufferOffset;t<this._writeBuffer.length;++t){var i=this._writeBuffer[t],r=this._callbacks[t];this._action(i),r&&r()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(e)},n.prototype.write=function(e,t){var i=this;if(5e7<this._pendingData)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return i._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},n.prototype._innerWrite=function(){for(var e=this,t=Date.now();this._writeBuffer.length>this._bufferOffset;){var i=this._writeBuffer[this._bufferOffset],r=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(i),this._pendingData-=i.length,r&&r(),12<=Date.now()-t)break}this._writeBuffer.length>this._bufferOffset?(50<this._bufferOffset&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return e._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},n);function n(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}t.WriteBuffer=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(Object.defineProperty(n.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!0,configurable:!0}),n);function n(e){this._textarea=e}t.CoreBrowserService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),n=i(78),i=(Object.defineProperty(o.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!0,configurable:!0}),o.prototype.register=function(e){this._providers[e.version]=e},o.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},o.prototype.getStringCellWidth=function(e){for(var t=0,i=e.length,r=0;r<i;++r){var n=e.charCodeAt(r);if(55296<=n&&n<=56319){if(++r>=i)return t+this.wcwidth(n);var o=e.charCodeAt(r);56320<=o&&o<=57343?n=1024*(n-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(n)}return t},o);function o(){this._providers=Object.create(null),this._active="",this._onChange=new r.EventEmitter;var e=new n.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}t.UnicodeService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=i(15),o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],i=(a.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?r[e]:function(e,t){var i,r=0,n=t.length-1;if(!(e<t[0][0]||e>t[n][1]))for(;r<=n;)if(e>t[i=r+n>>1][1])r=1+i;else{if(!(e<t[i][0]))return 1;n=i-1}}(e,s)?0:131072<=e&&e<=196605||196608<=e&&e<=262141?2:1},a);function a(){if(this.version="6",!r){r=new Uint8Array(65536),n.fill(r,1),r[0]=0,n.fill(r,0,1,32),n.fill(r,0,127,160),n.fill(r,2,4352,4448),r[9001]=2,r[9002]=2,n.fill(r,2,11904,42192),r[12351]=1,n.fill(r,2,44032,55204),n.fill(r,2,63744,64256),n.fill(r,2,65040,65050),n.fill(r,2,65072,65136),n.fill(r,2,65280,65377),n.fill(r,2,65504,65511);for(var e=0;e<o.length;++e)n.fill(r,0,o[e][0],o[e][1]+1)}}t.UnicodeV6=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.reset=function(){this.charset=void 0,this.charsets=[],this.glevel=0},n.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},n.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},n);function n(){this.charsets=[],this.glevel=0}t.CharsetService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){for(var e=this._addons.length-1;0<=e;e--)this._addons[e].instance.dispose()},n.prototype.loadAddon=function(e,t){var i=this,r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=function(){return i._wrappedAddonDispose(r)},t.activate(e)},n.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,i=0;i<this._addons.length;i++)if(this._addons[i]===e){t=i;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},n);function n(){this._addons=[]}t.AddonManager=r}],n.c=r,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32);function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,r})
\ No newline at end of file
1 +!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i,r=t();for(i in r)("object"==typeof exports?exports:e)[i]=r[i]}}(window,function(){return r={},n.m=i=[function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(14);t.IBufferService=i.createDecorator("BufferService"),t.ICoreMouseService=i.createDecorator("CoreMouseService"),t.ICoreService=i.createDecorator("CoreService"),t.ICharsetService=i.createDecorator("CharsetService"),t.IDirtyRowService=i.createDecorator("DirtyRowService"),t.IInstantiationService=i.createDecorator("InstantiationService"),t.ILogService=i.createDecorator("LogService"),t.IOptionsService=i.createDecorator("OptionsService"),t.IUnicodeService=i.createDecorator("UnicodeService")},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(Object.defineProperty(n.prototype,"event",{get:function(){var i=this;return this._event||(this._event=function(t){return i._listeners.push(t),{dispose:function(){if(!i._disposed)for(var e=0;e<i._listeners.length;e++)if(i._listeners[e]===t)return void i._listeners.splice(e,1)}}}),this._event},enumerable:!0,configurable:!0}),n.prototype.fire=function(e,t){for(var i=[],r=0;r<this._listeners.length;r++)i.push(this._listeners[r]);for(r=0;r<i.length;r++)i[r].call(void 0,e,t)},n.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},n);function n(){this._listeners=[],this._disposed=!1}t.EventEmitter=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){this._isDisposed=!0,this._disposables.forEach(function(e){return e.dispose()}),this._disposables.length=0},n.prototype.register=function(e){this._disposables.push(e)},n.prototype.unregister=function(e){e=this._disposables.indexOf(e);-1!==e&&this._disposables.splice(e,1)},n);function n(){this._disposables=[],this._isDisposed=!1}t.Disposable=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_COLOR=256,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i=i(14);t.ICharSizeService=i.createDecorator("CharSizeService"),t.ICoreBrowserService=i.createDecorator("CoreBrowserService"),t.IMouseService=i.createDecorator("MouseService"),t.IRenderService=i.createDecorator("RenderService"),t.ISelectionService=i.createDecorator("SelectionService"),t.ISoundService=i.createDecorator("SoundService")},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(7),a=i(3),n=(o=i(6).AttributeData,n(c,o),c.fromCharData=function(e){var t=new c;return t.setFromCharData(e),t},c.prototype.isCombined=function(){return 2097152&this.content},c.prototype.getWidth=function(){return this.content>>22},c.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?s.stringFromCodePoint(2097151&this.content):""},c.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},c.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t,i,r=!1;2<e[a.CHAR_DATA_CHAR_INDEX].length?r=!0:2===e[a.CHAR_DATA_CHAR_INDEX].length?55296<=(t=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0))&&t<=56319&&56320<=(i=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1))&&i<=57343?this.content=1024*(t-55296)+i-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:r=!0:this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22,r&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},c.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},c);function c(){var e=null!==o&&o.apply(this,arguments)||this;return e.content=0,e.fg=0,e.bg=0,e.combinedData="",e}t.CellData=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},n.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},n.prototype.clone=function(){var e=new n;return e.fg=this.fg,e.bg=this.bg,e},n.prototype.isInverse=function(){return 67108864&this.fg},n.prototype.isBold=function(){return 134217728&this.fg},n.prototype.isUnderline=function(){return 268435456&this.fg},n.prototype.isBlink=function(){return 536870912&this.fg},n.prototype.isInvisible=function(){return 1073741824&this.fg},n.prototype.isItalic=function(){return 67108864&this.bg},n.prototype.isDim=function(){return 134217728&this.bg},n.prototype.getFgColorMode=function(){return 50331648&this.fg},n.prototype.getBgColorMode=function(){return 50331648&this.bg},n.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},n.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},n.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},n.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},n.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},n.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},n.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},n.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},n.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},n);function n(){this.fg=0,this.bg=0}t.AttributeData=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringFromCodePoint=function(e){return 65535<e?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=e.length);for(var r="",n=t;n<i;++n){var o=e[n];65535<o?(o-=65536,r+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):r+=String.fromCharCode(o)}return r};var r=(n.prototype.clear=function(){this._interim=0},n.prototype.decode=function(e,t){var i=e.length;if(!i)return 0;var r=0,n=0;this._interim&&(56320<=(s=e.charCodeAt(n++))&&s<=57343?t[r++]=1024*(this._interim-55296)+s-56320+65536:(t[r++]=this._interim,t[r++]=s),this._interim=0);for(var o=n;o<i;++o){var s,a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=i)return this._interim=a,r;56320<=(s=e.charCodeAt(o))&&s<=57343?t[r++]=1024*(a-55296)+s-56320+65536:(t[r++]=a,t[r++]=s)}else t[r++]=a}return r},n);function n(){this._interim=0}t.StringToUtf32=r;o.prototype.clear=function(){this.interim.fill(0)},o.prototype.decode=function(e,t){var i=e.length;if(!i)return 0;var r,n,o,s,a=0,c=0,l=0;if(this.interim[0]){var h=!1,u=this.interim[0];u&=192==(224&u)?31:224==(240&u)?15:7;for(var f=0,_=void 0;(_=63&this.interim[++f])&&f<4;)u<<=6,u|=_;for(var d=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,p=d-f;l<p;){if(i<=l)return 0;if(128!=(192&(_=e[l++]))){l--,h=!0;break}u<<=6,u|=63&(this.interim[f++]=_)}h||(2==d?u<128?l--:t[a++]=u:3==d?u<2048||55296<=u&&u<=57343||(t[a++]=u):u<65536||1114111<u||(t[a++]=u)),this.interim.fill(0)}for(var v=i-4,g=l;g<i;){for(;!(!(g<v)||128&(r=e[g])||128&(n=e[g+1])||128&(o=e[g+2])||128&(s=e[g+3]));)t[a++]=r,t[a++]=n,t[a++]=o,t[a++]=s,g+=4;if((r=e[g++])<128)t[a++]=r;else if(192==(224&r)){if(i<=g)return this.interim[0]=r,a;128==(192&(n=e[g++]))?(c=(31&r)<<6|63&n)<128?g--:t[a++]=c:g--}else if(224==(240&r)){if(i<=g)return this.interim[0]=r,a;if(128==(192&(n=e[g++]))){if(i<=g)return this.interim[0]=r,this.interim[1]=n,a;128==(192&(o=e[g++]))?(c=(15&r)<<12|(63&n)<<6|63&o)<2048||55296<=c&&c<=57343||(t[a++]=c):g--}else g--}else if(240==(248&r)){if(i<=g)return this.interim[0]=r,a;if(128==(192&(n=e[g++]))){if(i<=g)return this.interim[0]=r,this.interim[1]=n,a;if(128==(192&(o=e[g++]))){if(i<=g)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,a;128==(192&(s=e[g++]))?(c=(7&r)<<18|(63&n)<<12|(63&o)<<6|63&s)<65536||1114111<c||(t[a++]=c):g--}else g--}else g--}}return a},r=o;function o(){this.interim=new Uint8Array(3)}t.Utf8ToUtf32=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,i,r){e.addEventListener(t,i,r);var n=!1;return{dispose:function(){n&&(n=!0,e.removeEventListener(t,i,r))}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,i){"use strict";var a,h,n,r;function o(e){e=e.toString(16);return e.length<2?"0"+e:e}function u(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function s(e,t,i){for(var r=e>>24&255,n=e>>16&255,o=e>>8&255,s=t>>24&255,a=t>>16&255,c=t>>8&255,l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));l<i&&(0<s||0<a||0<c);)s-=Math.max(0,Math.ceil(.1*s)),a-=Math.max(0,Math.ceil(.1*a)),c-=Math.max(0,Math.ceil(.1*c)),l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));return(s<<24|a<<16|c<<8|255)>>>0}function c(e,t,i){for(var r=e>>24&255,n=e>>16&255,o=e>>8&255,s=t>>24&255,a=t>>16&255,c=t>>8&255,l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));l<i&&(s<255||a<255||c<255);)s=Math.min(255,s+Math.ceil(.1*(255-s))),a=Math.min(255,a+Math.ceil(.1*(255-a))),c=Math.min(255,c+Math.ceil(.1*(255-c))),l=u(h.relativeLuminance2(s,c,a),h.relativeLuminance2(r,n,o));return(s<<24|a<<16|c<<8|255)>>>0}function l(e,t,i){e/=255,t/=255,i/=255;return.2126*(e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((.055+t)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4))}Object.defineProperty(t,"__esModule",{value:!0}),(r=a=t.channels||(t.channels={})).toCss=function(e,t,i,r){return void 0!==r?"#"+o(e)+o(t)+o(i)+o(r):"#"+o(e)+o(t)+o(i)},r.toRgba=function(e,t,i,r){return(e<<24|t<<16|i<<8|(r=void 0===r?255:r))>>>0},(r=t.color||(t.color={})).blend=function(e,t){var i=(255&t.rgba)/255;if(1==i)return{css:t.css,rgba:t.rgba};var r=t.rgba>>24&255,n=t.rgba>>16&255,o=t.rgba>>8&255,s=e.rgba>>24&255,t=e.rgba>>16&255,e=e.rgba>>8&255,s=s+Math.round((r-s)*i),t=t+Math.round((n-t)*i),i=e+Math.round((o-e)*i);return{css:a.toCss(s,t,i),rgba:a.toRgba(s,t,i)}},r.ensureContrastRatio=function(e,t,i){i=n.ensureContrastRatio(e.rgba,t.rgba,i);if(i)return n.toColor(i>>24&255,i>>16&255,i>>8&255)},r.opaque=function(e){var t=(255|e.rgba)>>>0,i=n.toChannels(t),r=i[0],e=i[1],i=i[2];return{css:a.toCss(r,e,i),rgba:t}},(t.css||(t.css={})).toColor=function(e){return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0}},(r=h=t.rgb||(t.rgb={})).relativeLuminance=function(e){return l(e>>16&255,e>>8&255,255&e)},r.relativeLuminance2=l,(r=n=t.rgba||(t.rgba={})).ensureContrastRatio=function(e,t,i){var r=h.relativeLuminance(e>>8),n=h.relativeLuminance(t>>8);if(u(r,n)<i)return(n<r?s:c)(e,t,i)},r.reduceLuminance=s,r.increaseLuminance=c,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,t,i){return{css:a.toCss(e,t,i),rgba:a.toRgba(e,t,i)}},t.toPaddedHex=o,t.contrastRatio=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="undefined"==typeof navigator,n=r?"node":navigator.userAgent,r=r?"node":navigator.platform;function o(e,t){return 0<=e.indexOf(t)}t.isFirefox=!!~n.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(n),t.isMac=o(["Macintosh","MacIntel","MacPPC","Mac68K"],r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=o(["Windows","Win16","Win32","WinCE"],r),t.isLinux=0<=r.indexOf("Linux")},function(e,t,i){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.C0||(t.C0={})).NUL="\0",r.SOH="",r.STX="",r.ETX="",r.EOT="",r.ENQ="",r.ACK="",r.BEL="",r.BS="\b",r.HT="\t",r.LF="\n",r.VT="\v",r.FF="\f",r.CR="\r",r.SO="",r.SI="",r.DLE="",r.DC1="",r.DC2="",r.DC3="",r.DC4="",r.NAK="",r.SYN="",r.ETB="",r.CAN="",r.EM="",r.SUB="",r.ESC="",r.FS="",r.GS="",r.RS="",r.US="",r.SP=" ",r.DEL="",(t=t.C1||(t.C1={})).PAD="€",t.HOP="",t.BPH="‚",t.NBH="ƒ",t.IND="„",t.NEL="…",t.SSA="†",t.ESA="‡",t.HTS="ˆ",t.HTJ="‰",t.VTS="Š",t.PLD="‹",t.PLU="Œ",t.RI="",t.SS2="Ž",t.SS3="",t.DCS="",t.PU1="‘",t.PU2="’",t.STS="“",t.CCH="”",t.MW="•",t.SPA="–",t.EPA="—",t.SOS="˜",t.SGCI="™",t.SCI="š",t.CSI="›",t.ST="œ",t.OSC="",t.PM="ž",t.APC="Ÿ"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(3),a=i(9),r=i(23),o=i(6),n=i(26),c=i(10),i=(l.prototype.dispose=function(){var e;this._container.removeChild(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},l.prototype._initCanvas=function(){this._ctx=n.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},l.prototype.onOptionsChanged=function(){},l.prototype.onBlur=function(){},l.prototype.onFocus=function(){},l.prototype.onCursorMove=function(){},l.prototype.onGridChanged=function(e,t){},l.prototype.onSelectionChanged=function(e,t,i){void 0===i&&(i=!1)},l.prototype.setColors=function(e){this._refreshCharAtlas(e)},l.prototype._setTransparency=function(e){var t;e!==this._alpha&&(t=this._canvas,this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1))},l.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=r.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},l.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},l.prototype._fillCells=function(e,t,i,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight)},l.prototype._fillBottomLineAtCells=function(e,t,i){void 0===i&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},l.prototype._fillLeftLineAtCell=function(e,t,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},l.prototype._strokeRectAtCell=function(e,t,i,r){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,r*this._scaledCellHeight-window.devicePixelRatio)},l.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},l.prototype._clearCells=function(e,t,i,r){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,r*this._scaledCellHeight))},l.prototype._fillCharTrueColor=function(e,t,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(i),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},l.prototype._drawChars=function(e,t,i){var r,n,o=this._getContrastColor(e);o||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,i,o):(e.isInverse()?(r=e.isBgDefault()?a.INVERTED_DEFAULT_COLOR:e.getBgColor(),n=e.isFgDefault()?a.INVERTED_DEFAULT_COLOR:e.getFgColor()):(n=e.isBgDefault()?s.DEFAULT_COLOR:e.getBgColor(),r=e.isFgDefault()?s.DEFAULT_COLOR:e.getFgColor()),r+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||s.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||s.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=n,this._currentGlyphIdentifier.fg=r,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,i))},l.prototype._drawUncachedChars=function(e,t,i,r){var n;this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse()?r?this._ctx.fillStyle=r.css:e.isBgDefault()?this._ctx.fillStyle=c.color.opaque(this._colors.background).css:e.isBgRGB()?this._ctx.fillStyle="rgb("+o.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":(n=e.getBgColor(),this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&n<8&&(n+=8),this._ctx.fillStyle=this._colors.ansi[n].css):r?this._ctx.fillStyle=r.css:e.isFgDefault()?this._ctx.fillStyle=this._colors.foreground.css:e.isFgRGB()?this._ctx.fillStyle="rgb("+o.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":(r=e.getFgColor(),this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),this._ctx.fillStyle=this._colors.ansi[r].css),this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=a.DIM_OPACITY),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},l.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},l.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},l.prototype._getContrastColor=function(e){if(1!==this._optionsService.options.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var i=e.getFgColor(),r=e.getFgColorMode(),n=e.getBgColor(),o=e.getBgColorMode(),s=!!e.isInverse(),a=!!e.isInverse();s&&(t=i,i=n,n=t,t=r,r=o,o=t);n=this._resolveBackgroundRgba(o,n,s),a=this._resolveForegroundRgba(r,i,s,a),a=c.rgba.ensureContrastRatio(n,a,this._optionsService.options.minimumContrastRatio);if(a){a={css:c.channels.toCss(a>>24&255,a>>16&255,a>>8&255),rgba:a};return this._colors.contrastCache.setColor(e.bg,e.fg,a),a}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},l.prototype._resolveBackgroundRgba=function(e,t,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return(i?this._colors.foreground:this._colors.background).rgba}},l.prototype._resolveForegroundRgba=function(e,t,i,r){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&r&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return(i?this._colors.background:this._colors.foreground).rgba}},l);function l(e,t,i,r,n,o,s,a){this._container=e,this._alpha=r,this._colors=n,this._rendererId=o,this._bufferService=s,this._optionsService=a,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}t.BaseRenderLayer=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function(e,t,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");var r;r=n,i=i,(e=e)[o]===e?e[s].push({id:r,index:i}):(e[s]=[{id:r,index:i}],e[o]=e)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},function(e,t,i){"use strict";function n(e,t,i,r){if(void 0===i&&(i=0),void 0===r&&(r=e.length),i>=e.length)return e;i=(e.length+i)%e.length,r=r>=e.length?e.length:(e.length+r)%e.length;for(var n=i;n<r;++n)e[n]=t;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.fill=function(e,t,i,r){return e.fill?e.fill(t,i,r):n(e,t,i,r)},t.fillFallback=n,t.concat=function(e,t){var i=new e.constructor(e.length+t.length);return i.set(e),i.set(t,e.length),i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(7),a=i(3),c=i(5),i=i(6);t.DEFAULT_ATTR_DATA=Object.freeze(new i.AttributeData);r.prototype.get=function(e){var t=this._data[3*e+0],i=2097151&t;return[this._data[3*e+1],2097152&t?this._combined[e]:i?s.stringFromCodePoint(i):"",t>>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]},r.prototype.set=function(e,t){this._data[3*e+1]=t[a.CHAR_DATA_ATTR_INDEX],1<t[a.CHAR_DATA_CHAR_INDEX].length?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[a.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[a.CHAR_DATA_WIDTH_INDEX]<<22},r.prototype.getWidth=function(e){return this._data[3*e+0]>>22},r.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},r.prototype.getFg=function(e){return this._data[3*e+1]},r.prototype.getBg=function(e){return this._data[3*e+2]},r.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},r.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},r.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},r.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?s.stringFromCodePoint(2097151&t):""},r.prototype.loadCell=function(e,t){var i=3*e;return t.content=this._data[0+i],t.fg=this._data[1+i],t.bg=this._data[2+i],2097152&t.content&&(t.combinedData=this._combined[e]),t},r.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},r.prototype.setCellFromCodePoint=function(e,t,i,r,n){this._data[3*e+0]=t|i<<22,this._data[3*e+1]=r,this._data[3*e+2]=n},r.prototype.addCodepointToCell=function(e,t){var i=this._data[3*e+0];2097152&i?this._combined[e]+=s.stringFromCodePoint(t):(2097151&i?(this._combined[e]=s.stringFromCodePoint(2097151&i)+s.stringFromCodePoint(t),i&=-2097152,i|=2097152):i=t|1<<22,this._data[3*e+0]=i)},r.prototype.insertCells=function(e,t,i,r){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0),t<this.length-e){for(var n=new c.CellData,o=this.length-e-t-1;0<=o;--o)this.setCell(e+t+o,this.loadCell(e+o,n));for(o=0;o<t;++o)this.setCell(e+o,i)}else for(o=e;o<this.length;++o)this.setCell(o,i);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0)},r.prototype.deleteCells=function(e,t,i,r){if(e%=this.length,t<this.length-e){for(var n=new c.CellData,o=0;o<this.length-e-t;++o)this.setCell(e+o,this.loadCell(e+t+o,n));for(o=this.length-t;o<this.length;++o)this.setCell(o,i)}else for(o=e;o<this.length;++o)this.setCell(o,i);e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0),0!==this.getWidth(e)||this.hasContent(e)||this.setCellFromCodePoint(e,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0)},r.prototype.replaceCells=function(e,t,i,r){for(e&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0),t<this.length&&2===this.getWidth(t-1)&&this.setCellFromCodePoint(t,0,1,(null===r||void 0===r?void 0:r.fg)||0,(null===r||void 0===r?void 0:r.bg)||0);e<t&&e<this.length;)this.setCell(e++,i)},r.prototype.resize=function(e,t){if(e!==this.length){if(e>this.length){var i=new Uint32Array(3*e);this.length&&(3*e<this._data.length?i.set(this._data.subarray(0,3*e)):i.set(this._data)),this._data=i;for(var r=this.length;r<e;++r)this.setCell(r,t)}else if(e){(i=new Uint32Array(3*e)).set(this._data.subarray(0,3*e)),this._data=i;for(var n=Object.keys(this._combined),r=0;r<n.length;r++){var o=parseInt(n[r],10);e<=o&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},r.prototype.fill=function(e){this._combined={};for(var t=0;t<this.length;++t)this.setCell(t,e)},r.prototype.copyFrom=function(e){for(var t in this.length!==e.length?this._data=new Uint32Array(e._data):this._data.set(e._data),this.length=e.length,this._combined={},e._combined)this._combined[t]=e._combined[t];this.isWrapped=e.isWrapped},r.prototype.clone=function(){var e,t=new r(0);for(e in t._data=new Uint32Array(this._data),t.length=this.length,this._combined)t._combined[e]=this._combined[e];return t.isWrapped=this.isWrapped,t},r.prototype.getTrimmedLength=function(){for(var e=this.length-1;0<=e;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},r.prototype.copyCellsFrom=function(e,t,i,r,n){var o=e._data;if(n)for(var s=r-1;0<=s;s--)for(var a=0;a<3;a++)this._data[3*(i+s)+a]=o[3*(t+s)+a];else for(s=0;s<r;s++)for(a=0;a<3;a++)this._data[3*(i+s)+a]=o[3*(t+s)+a];for(var c=Object.keys(e._combined),a=0;a<c.length;a++){var l=parseInt(c[a],10);t<=l&&(this._combined[l-t+i]=e._combined[l])}},r.prototype.translateToString=function(e,t,i){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===i&&(i=this.length),e&&(i=Math.min(i,this.getTrimmedLength()));for(var r="";t<i;){var n=this._data[3*t+0],o=2097151&n;r+=2097152&n?this._combined[t]:o?s.stringFromCodePoint(o):a.WHITESPACE_CELL_CHAR,t+=n>>22||1}return r},i=r;function r(e,t,i){void 0===i&&(i=!1),this.isWrapped=i,this._combined={},this._data=new Uint32Array(3*e);for(var r=t||c.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),n=0;n<e;++n)this.setCell(n,r);this.length=e}t.BufferLine=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(o.fromArray=function(e){var t=new o;if(!e.length)return t;for(var i=e[0]instanceof Array?1:0;i<e.length;++i){var r=e[i];if(r instanceof Array)for(var n=0;n<r.length;++n)t.addSubParam(r[n]);else t.addParam(r)}return t},o.prototype.clone=function(){var e=new o(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e},o.prototype.toArray=function(){for(var e=[],t=0;t<this.length;++t){e.push(this.params[t]);var i=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];0<r-i&&e.push(Array.prototype.slice.call(this._subParams,i,r))}return e},o.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},o.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=2147483647<e?2147483647:e}},o.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=2147483647<e?2147483647:e,this._subParamsIdx[this.length-1]++}},o.prototype.hasSubParams=function(e){return 0<(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)},o.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,e=255&this._subParamsIdx[e];return 0<e-t?this._subParams.subarray(t,e):null},o.prototype.getSubParamsAll=function(){for(var e={},t=0;t<this.length;++t){var i=this._subParamsIdx[t]>>8,r=255&this._subParamsIdx[t];0<r-i&&(e[t]=this._subParams.slice(i,r))}return e},o.prototype.addDigit=function(e){var t,i,r;this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits||(r=(i=this._digitIsSub?this._subParams:this.params)[t-1],i[t-1]=~r?Math.min(10*r+e,2147483647):e)},o);function o(e,t){if(void 0===e&&(e=32),void 0===t&&(t=32),this.maxLength=e,256<(this.maxSubParamsLength=t))throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}t.Params=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(21),o=i(7),i=(n.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var i=this._handlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},n.prototype.setHandler=function(e,t){this._handlers[e]=[t]},n.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},n.prototype.setHandlerFallback=function(e){this._handlerFb=e},n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.reset=function(){2===this._state&&this.end(!1),this._id=-1,this._state=0},n.prototype._start=function(){var e=this._handlers[this._id];if(e)for(var t=e.length-1;0<=t;t--)e[t].start();else this._handlerFb(this._id,"START")},n.prototype._put=function(e,t,i){var r=this._handlers[this._id];if(r)for(var n=r.length-1;0<=n;n--)r[n].put(e,t,i);else this._handlerFb(this._id,"PUT",o.utf32ToString(e,t,i))},n.prototype._end=function(e){var t=this._handlers[this._id];if(t){for(var i=t.length-1;0<=i&&!1===t[i].end(e);i--);for(i--;0<=i;i--)t[i].end(!1)}else this._handlerFb(this._id,"END",e)},n.prototype.start=function(){this.reset(),this._id=-1,this._state=1},n.prototype.put=function(e,t,i){if(3!==this._state){if(1===this._state)for(;t<i;){var r=e[t++];if(59===r){this._state=2,this._start();break}if(r<48||57<r)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+r-48}2===this._state&&0<i-t&&this._put(e,t,i)}},n.prototype.end=function(e){0!==this._state&&(3!==this._state&&(1===this._state&&this._start(),this._end(e)),this._id=-1,this._state=0)},n);function n(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}t.OscParser=i;s.prototype.start=function(){this._data="",this._hitLimit=!1},s.prototype.put=function(e,t,i){this._hitLimit||(this._data+=o.utf32ToString(e,t,i),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},s.prototype.end=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},i=s;function s(e){this._handler=e,this._data="",this._hitLimit=!1}t.OscHandler=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=1e7},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7),r=i(19),o=i(21),s=[],i=(a.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},a.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var i=this._handlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},a.prototype.setHandler=function(e,t){this._handlers[e]=[t]},a.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},a.prototype.setHandlerFallback=function(e){this._handlerFb=e},a.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=s,this._ident=0},a.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||s,this._active.length)for(var i=this._active.length-1;0<=i;i--)this._active[i].hook(t);else this._handlerFb(this._ident,"HOOK",t)},a.prototype.put=function(e,t,i){if(this._active.length)for(var r=this._active.length-1;0<=r;r--)this._active[r].put(e,t,i);else this._handlerFb(this._ident,"PUT",n.utf32ToString(e,t,i))},a.prototype.unhook=function(e){if(this._active.length){for(var t=this._active.length-1;0<=t&&!1===this._active[t].unhook(e);t--);for(t--;0<=t;t--)this._active[t].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",e);this._active=s,this._ident=0},a);function a(){this._handlers=Object.create(null),this._active=s,this._ident=0,this._handlerFb=function(){}}t.DcsParser=i;c.prototype.hook=function(e){this._params=e.clone(),this._data="",this._hitLimit=!1},c.prototype.put=function(e,t,i){this._hitLimit||(this._data+=n.utf32ToString(e,t,i),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.unhook=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data,this._params||new r.Params)),this._params=void 0,this._data="",this._hitLimit=!1,t},i=c;function c(e){this._handler=e,this._data="",this._hitLimit=!1}t.DcsHandler=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(24),h=i(42),u=[];t.acquireCharAtlas=function(e,t,i,r,n){for(var o=l.generateConfig(r,n,e,i),s=0;s<u.length;s++){var a=(c=u[s]).ownedBy.indexOf(t);if(0<=a){if(l.configEquals(c.config,o))return c.atlas;1===c.ownedBy.length?(c.atlas.dispose(),u.splice(s,1)):c.ownedBy.splice(a,1);break}}for(s=0;s<u.length;s++){var c=u[s];if(l.configEquals(c.config,o))return c.ownedBy.push(t),c.atlas}i={atlas:new h.DynamicCharAtlas(document,o),config:o,ownedBy:[t]};return u.push(i),i.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<u.length;t++){var i=u[t].ownedBy.indexOf(e);if(-1!==i){1===u[t].ownedBy.length?(u[t].atlas.dispose(),u.splice(t,1)):u[t].ownedBy.splice(i,1);break}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(3);t.generateConfig=function(e,t,i,r){r={foreground:r.foreground,background:r.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:r.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:i.fontFamily,fontSize:i.fontSize,fontWeight:i.fontWeight,fontWeightBold:i.fontWeightBold,allowTransparency:i.allowTransparency,colors:r}},t.configEquals=function(e,t){for(var i=0;i<e.colors.ansi.length;i++)if(e.colors.ansi[i].rgba!==t.colors.ansi[i].rgba)return!1;return e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background},t.is256Color=function(e){return e<r.DEFAULT_COLOR}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=t(10),r=t(44),n=a.css.toColor("#ffffff"),o=a.css.toColor("#000000"),s=a.css.toColor("#ffffff"),c=a.css.toColor("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=function(){for(var e=[a.css.toColor("#2e3436"),a.css.toColor("#cc0000"),a.css.toColor("#4e9a06"),a.css.toColor("#c4a000"),a.css.toColor("#3465a4"),a.css.toColor("#75507b"),a.css.toColor("#06989a"),a.css.toColor("#d3d7cf"),a.css.toColor("#555753"),a.css.toColor("#ef2929"),a.css.toColor("#8ae234"),a.css.toColor("#fce94f"),a.css.toColor("#729fcf"),a.css.toColor("#ad7fa8"),a.css.toColor("#34e2e2"),a.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],i=0;i<216;i++){var r=t[i/36%6|0],n=t[i/6%6|0],o=t[i%6];e.push({css:a.channels.toCss(r,n,o),rgba:a.channels.toRgba(r,n,o)})}for(i=0;i<24;i++){var s=8+10*i;e.push({css:a.channels.toCss(s,s,s),rgba:a.channels.toRgba(s,s,s)})}return e}();h.prototype.onOptionsChange=function(e){"minimumContrastRatio"===e&&this._contrastCache.clear()},h.prototype.setTheme=function(e){void 0===e&&(e={}),this.colors.foreground=this._parseColor(e.foreground,n),this.colors.background=this._parseColor(e.background,o),this.colors.cursor=this._parseColor(e.cursor,s,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,c,!0),this.colors.selection=this._parseColor(e.selection,l,!0),this.colors.selectionOpaque=a.color.blend(this.colors.background,this.colors.selection),this.colors.ansi[0]=this._parseColor(e.black,i.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,i.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,i.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,i.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,i.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,i.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,i.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,i.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,i.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,i.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,i.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,i.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,i.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,i.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,i.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},h.prototype._parseColor=function(e,t,i){if(void 0===i&&(i=this.allowTransparency),void 0===e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;if(255===r[3])return{css:this._ctx.fillStyle,rgba:a.channels.toRgba(r[0],r[1],r[2],r[3])};if(!i)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t;r=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(e){return Number(e)}),i=r[0],e=r[1],t=r[2],r=r[3],r=Math.round(255*r);return{rgba:a.channels.toRgba(i,e,t,r),css:a.channels.toCss(i,e,t,r)}},t=h;function h(e,t){this.allowTransparency=t;e=e.createElement("canvas");e.width=1,e.height=1;e=e.getContext("2d");if(!e)throw new Error("Could not get rendering context");this._ctx=e,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new r.ColorContrastCache,this.colors={foreground:n,background:o,cursor:s,cursorAccent:c,selection:l,selectionOpaque:a.color.blend(o,l),ansi:i.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}i.ColorManager=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(6),f=i(3),a=i(5),n=(o=s.AttributeData,n(c,o),c.prototype.isCombined=function(){return 2097152},c.prototype.getWidth=function(){return this._width},c.prototype.getChars=function(){return this.combinedData},c.prototype.getCode=function(){return 2097151},c.prototype.setFromCharData=function(e){throw new Error("not implemented")},c.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},c);function c(e,t,i){var r=o.call(this)||this;return r.content=0,r.combinedData="",r.fg=e.fg,r.bg=e.bg,r.combinedData=t,r._width=i,r}t.JoinedCellData=n;h.prototype.registerCharacterJoiner=function(e){e={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(e),e.id},h.prototype.deregisterCharacterJoiner=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},h.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||0===t.length)return[];for(var i=[],r=t.translateToString(!0),n=0,o=0,s=0,a=t.getFg(0),c=t.getBg(0),l=0;l<t.getTrimmedLength();l++)if(t.loadCell(l,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==a||this._workCell.bg!==c){if(1<l-n)for(var h=this._getJoinedRanges(r,s,o,t,n),u=0;u<h.length;u++)i.push(h[u]);n=l,s=o,a=this._workCell.fg,c=this._workCell.bg}o+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(1<this._bufferService.cols-n)for(h=this._getJoinedRanges(r,s,o,t,n),u=0;u<h.length;u++)i.push(h[u]);return i},h.prototype._getJoinedRanges=function(e,t,i,r,n){for(var o=e.substring(t,i),s=this._characterJoiners[0].handler(o),a=1;a<this._characterJoiners.length;a++)for(var c=this._characterJoiners[a].handler(o),l=0;l<c.length;l++)h._mergeRanges(s,c[l]);return this._stringRangesToCellRanges(s,r,n),s},h.prototype._stringRangesToCellRanges=function(e,t,i){var r=0,n=!1,o=0,s=e[r];if(s){for(var a=i;a<this._bufferService.cols;a++){var c=t.getWidth(a),l=t.getString(a).length||f.WHITESPACE_CELL_CHAR.length;if(0!==c){if(!n&&s[0]<=o&&(s[0]=a,n=!0),s[1]<=o){if(s[1]=a,!(s=e[++r]))break;n=s[0]<=o&&(s[0]=a,!0)}o+=l}}s&&(s[1]=this._bufferService.cols)}},h._mergeRanges=function(e,t){for(var i=!1,r=0;r<e.length;r++){var n=e[r];if(i){if(t[1]<=n[0])return e[r-1][1]=t[1],e;if(t[1]<=n[1])return e[r-1][1]=Math.max(t[1],n[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=n[0])return e.splice(r,0,t),e;if(t[1]<=n[1])return n[0]=Math.min(t[0],n[0]),e;t[0]<n[1]&&(n[0]=Math.min(t[0],n[0]),i=!0)}}return i?e[e.length-1][1]=t[1]:e.push(t),e},n=h;function h(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}t.CharacterJoinerRegistry=n},function(e,t,i){"use strict";function c(e,t){t=t.getBoundingClientRect();return[e.clientX-t.left,e.clientY-t.top]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoordsRelativeToElement=c,t.getCoords=function(e,t,i,r,n,o,s,a){if(n){t=c(e,t);if(t)return t[0]=Math.ceil((t[0]+(a?o/2:0))/o),t[1]=Math.ceil(t[1]/s),t[0]=Math.min(Math.max(t[0],1),i+(a?1:0)),t[1]=Math.min(Math.max(t[1],1),r),t}},t.getRawByteCoords=function(e){if(e)return{x:e[0]+32,y:e[1]+32}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},n.prototype.refresh=function(e,t,i){var r=this;this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return r._innerRefresh()}))},n.prototype._innerRefresh=function(){void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount&&(this._rowStart=Math.max(this._rowStart,0),this._rowEnd=Math.min(this._rowEnd,this._rowCount-1),this._renderCallback(this._rowStart,this._rowEnd),this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0)},n);function n(e){this._renderCallback=e}t.RenderDebouncer=r},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,n=(o=i(2).Disposable,n(s,o),s.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener&&(t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr())},this._updateDpr()},s.prototype.dispose=function(){o.prototype.dispose.call(this),this.clearListener()},s.prototype._updateDpr=function(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},s.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},s);function s(){var e=null!==o&&o.apply(this,arguments)||this;return e._currentDevicePixelRatio=window.devicePixelRatio,e}t.ScreenDprMonitor=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function e(t,i){if(void 0===i&&(i=5),"object"!=typeof t)return t;var r,n=Array.isArray(t)?[]:{};for(r in t)n[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return n}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(5),n=i(33),o=i(17),s=i(80),i=(Object.defineProperty(a.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onData",{get:function(){return this._core.onData},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parser",{get:function(){return this._parser||(this._parser=new h(this._core)),this._parser},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"unicode",{get:function(){return new u(this._core)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"buffer",{get:function(){return new c(this._core.buffer)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),a.prototype.blur=function(){this._core.blur()},a.prototype.focus=function(){this._core.focus()},a.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},a.prototype.open=function(e){this._core.open(e)},a.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},a.prototype.registerLinkMatcher=function(e,t,i){return this._core.registerLinkMatcher(e,t,i)},a.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},a.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},a.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},a.prototype.registerMarker=function(e){return this._verifyIntegers(e),this._core.addMarker(e)},a.prototype.addMarker=function(e){return this.registerMarker(e)},a.prototype.hasSelection=function(){return this._core.hasSelection()},a.prototype.select=function(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)},a.prototype.getSelection=function(){return this._core.getSelection()},a.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},a.prototype.clearSelection=function(){this._core.clearSelection()},a.prototype.selectAll=function(){this._core.selectAll()},a.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},a.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},a.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},a.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},a.prototype.scrollToTop=function(){this._core.scrollToTop()},a.prototype.scrollToBottom=function(){this._core.scrollToBottom()},a.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},a.prototype.clear=function(){this._core.clear()},a.prototype.write=function(e,t){this._core.write(e,t)},a.prototype.writeUtf8=function(e,t){this._core.write(e,t)},a.prototype.writeln=function(e,t){this._core.write(e),this._core.write("\r\n",t)},a.prototype.paste=function(e){this._core.paste(e)},a.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},a.prototype.setOption=function(e,t){this._core.optionsService.setOption(e,t)},a.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},a.prototype.reset=function(){this._core.reset()},a.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(a,"strings",{get:function(){return o},enumerable:!0,configurable:!0}),a.prototype._verifyIntegers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.forEach(function(e){if(e===1/0||isNaN(e)||e%1!=0)throw new Error("This API only accepts integers")})},a);function a(e){this._core=new n.Terminal(e),this._addonManager=new s.AddonManager}t.Terminal=i;var c=(Object.defineProperty(p.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!0,configurable:!0}),p.prototype.getLine=function(e){e=this._buffer.lines.get(e);if(e)return new l(e)},p.prototype.getNullCell=function(){return new r.CellData},p),l=(Object.defineProperty(d.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"length",{get:function(){return this._line.length},enumerable:!0,configurable:!0}),d.prototype.getCell=function(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new r.CellData)},d.prototype.translateToString=function(e,t,i){return this._line.translateToString(e,t,i)},d),h=(_.prototype.registerCsiHandler=function(e,t){return this._core.addCsiHandler(e,function(e){return t(e.toArray())})},_.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},_.prototype.registerDcsHandler=function(e,i){return this._core.addDcsHandler(e,function(e,t){return i(e,t.toArray())})},_.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},_.prototype.registerEscHandler=function(e,t){return this._core.addEscHandler(e,t)},_.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},_.prototype.registerOscHandler=function(e,t){return this._core.addOscHandler(e,t)},_.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},_),u=(f.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(f.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!0,configurable:!0}),f);function f(e){this._core=e}function _(e){this._core=e}function d(e){this._line=e}function p(e){this._buffer=e}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(34),a=i(35),c=i(36),h=i(12),l=i(37),u=i(39),f=i(49),_=i(50),d=i(11),p=i(8),v=i(17),g=i(53),y=i(54),b=i(55),m=i(56),S=i(58),C=i(1),w=i(16),E=i(59),L=i(25),A=i(60),R=i(0),x=i(61),k=i(4),D=i(62),T=i(63),O=i(2),M=i(69),P=i(70),H=i(71),I=i(72),B=i(73),F=i(74),j=i(75),W=i(76),q=i(77),U=i(79),N="undefined"!=typeof window?window.document:null,n=(o=O.Disposable,n(z,o),Object.defineProperty(z.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onA11yChar",{get:function(){return this.onA11yCharEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onA11yTab",{get:function(){return this.onA11yTabEmitter.event},enumerable:!0,configurable:!0}),z.prototype.dispose=function(){var e;this._isDisposed||(o.prototype.dispose.call(this),null===(e=this._windowsMode)||void 0===e||e.dispose(),this._windowsMode=void 0,null===(e=this._renderService)||void 0===e||e.dispose(),this._customKeyEventHandler=null,this.write=function(){},null===(e=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===e||e.removeChild(this.element))},z.prototype._setup=function(){var i=this;this._customKeyEventHandler=null,this.insertMode=!1,this.bracketedPasteMode=!1,this._userScrolling=!1,this._inputHandler?this._inputHandler.reset():(this._inputHandler=new l.InputHandler(this,this._bufferService,this._charsetService,this._coreService,this._dirtyRowService,this._logService,this.optionsService,this._coreMouseService,this.unicodeService,this._instantiationService),this._inputHandler.onRequestBell(function(){return i.bell()}),this._inputHandler.onRequestRefreshRows(function(e,t){return i.refresh(e,t)}),this._inputHandler.onRequestReset(function(){return i.reset()}),this._inputHandler.onCursorMove(function(){return i._onCursorMove.fire()}),this._inputHandler.onLineFeed(function(){return i._onLineFeed.fire()}),this.register(this._inputHandler)),this.linkifier||(this.linkifier=new f.Linkifier(this._bufferService,this._logService,this.optionsService,this.unicodeService)),this.options.windowsMode&&this._enableWindowsMode()},z.prototype._enableWindowsMode=function(){var e,t=this;this._windowsMode||((e=[]).push(this.onLineFeed(E.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.addCsiHandler({final:"H"},function(){return E.updateWindowsModeWrappedState(t._bufferService),!1})),this._windowsMode={dispose:function(){e.forEach(function(e){return e.dispose()})}})},Object.defineProperty(z.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!0,configurable:!0}),z.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},z.prototype._setupOptionsListeners=function(){var r=this;this.optionsService.onOptionChange(function(e){var t,i;switch(e){case"fontFamily":case"fontSize":null===(t=r._renderService)||void 0===t||t.clear(),null===(t=r._charSizeService)||void 0===t||t.measure();break;case"cursorBlink":case"cursorStyle":r.refresh(r.buffer.y,r.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":r._renderService&&(r._renderService.clear(),r._renderService.onResize(r.cols,r.rows),r.refresh(0,r.rows-1));break;case"rendererType":r._renderService&&(r._renderService.setRenderer(r._createRenderer()),r._renderService.onResize(r.cols,r.rows));break;case"scrollback":r.buffers.resize(r.cols,r.rows),null===(t=r.viewport)||void 0===t||t.syncScrollArea();break;case"screenReaderMode":r.optionsService.options.screenReaderMode?!r._accessibilityManager&&r._renderService&&(r._accessibilityManager=new b.AccessibilityManager(r,r._renderService)):(null===(i=r._accessibilityManager)||void 0===i||i.dispose(),r._accessibilityManager=null);break;case"tabStopWidth":r.buffers.setupTabStops();break;case"theme":r._setTheme(r.optionsService.options.theme);break;case"windowsMode":r.optionsService.options.windowsMode?r._enableWindowsMode():(null===(i=r._windowsMode)||void 0===i||i.dispose(),r._windowsMode=void 0)}})},z.prototype._onTextAreaFocus=function(e){this.sendFocus&&this._coreService.triggerDataEvent(h.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this.showCursor(),this._onFocus.fire()},z.prototype.blur=function(){return this.textarea.blur()},z.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this._coreService.triggerDataEvent(h.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},z.prototype._initGlobal=function(){var t=this;this._bindKeys(),this.register(p.addDisposableDomListener(this.element,"copy",function(e){t.hasSelection()&&c.copyHandler(e,t._selectionService)}));function e(e){return c.handlePasteEvent(e,t.textarea,t.bracketedPasteMode,t._coreService)}this.register(p.addDisposableDomListener(this.textarea,"paste",e)),this.register(p.addDisposableDomListener(this.element,"paste",e)),d.isFirefox?this.register(p.addDisposableDomListener(this.element,"mousedown",function(e){2===e.button&&c.rightClickHandler(e,t.textarea,t.screenElement,t._selectionService,t.options.rightClickSelectsWord)})):this.register(p.addDisposableDomListener(this.element,"contextmenu",function(e){c.rightClickHandler(e,t.textarea,t.screenElement,t._selectionService,t.options.rightClickSelectsWord)})),d.isLinux&&this.register(p.addDisposableDomListener(this.element,"auxclick",function(e){1===e.button&&c.moveTextAreaUnderMouseCursor(e,t.textarea,t.screenElement)}))},z.prototype._bindKeys=function(){var t=this;this.register(p.addDisposableDomListener(this.textarea,"keyup",function(e){return t._keyUp(e)},!0)),this.register(p.addDisposableDomListener(this.textarea,"keydown",function(e){return t._keyDown(e)},!0)),this.register(p.addDisposableDomListener(this.textarea,"keypress",function(e){return t._keyPress(e)},!0)),this.register(p.addDisposableDomListener(this.textarea,"compositionstart",function(){return t._compositionHelper.compositionstart()})),this.register(p.addDisposableDomListener(this.textarea,"compositionupdate",function(e){return t._compositionHelper.compositionupdate(e)})),this.register(p.addDisposableDomListener(this.textarea,"compositionend",function(){return t._compositionHelper.compositionend()})),this.register(this.onRender(function(){return t._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(e){return t._queueLinkification(e.start,e.end)}))},z.prototype.open=function(e){var i=this;if(!e)throw new Error("Terminal requires a parent element.");N.body.contains(e)||this._logService.warn("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);var t=N.createDocumentFragment();this._viewportElement=N.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this._viewportScrollArea=N.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=N.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=N.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement),this.textarea=N.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",v.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(p.addDisposableDomListener(this.textarea,"focus",function(e){return i._onTextAreaFocus(e)})),this.register(p.addDisposableDomListener(this.textarea,"blur",function(){return i._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);e=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(k.ICoreBrowserService,e),this._charSizeService=this._instantiationService.createInstance(D.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(k.ICharSizeService,this._charSizeService),this._compositionView=N.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(t),this._theme=this.options.theme||this._theme,this.options.theme=void 0,this._colorManager=new L.ColorManager(N,this.options.allowTransparency),this.optionsService.onOptionChange(function(e){return i._colorManager.onOptionsChange(e)}),this._colorManager.setTheme(this._theme);t=this._createRenderer();this._renderService=this._instantiationService.createInstance(A.RenderService,t,this.rows,this.screenElement),this._instantiationService.setService(k.IRenderService,this._renderService),this._renderService.onRender(function(e){return i._onRender.fire(e)}),this.onResize(function(e){return i._renderService.resize(e.cols,e.rows)}),this._soundService=this._instantiationService.createInstance(g.SoundService),this._instantiationService.setService(k.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(M.MouseService),this._instantiationService.setService(k.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(a.Viewport,function(e,t){return i.scrollLines(e,t)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this.viewport),this.register(this.onCursorMove(function(){return i._renderService.onCursorMove()})),this.register(this.onResize(function(){return i._renderService.onResize(i.cols,i.rows)})),this.register(this.onBlur(function(){return i._renderService.onBlur()})),this.register(this.onFocus(function(){return i._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return i.viewport.syncScrollArea()})),this._selectionService=this._instantiationService.createInstance(_.SelectionService,function(e,t){return i.scrollLines(e,t)},this.element,this.screenElement),this._instantiationService.setService(k.ISelectionService,this._selectionService),this.register(this._selectionService.onSelectionChange(function(){return i._onSelectionChange.fire()})),this.register(this._selectionService.onRedrawRequest(function(e){return i._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(e){i.textarea.value=e,i.textarea.focus(),i.textarea.select()})),this.register(this.onScroll(function(){i.viewport.syncScrollArea(),i._selectionService.refresh()})),this.register(p.addDisposableDomListener(this._viewportElement,"scroll",function(){return i._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return i._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.register(p.addDisposableDomListener(this.element,"mousedown",function(e){return i._selectionService.onMouseDown(e)})),this.mouseEvents?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new b.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},z.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(u.Renderer,this._colorManager.colors,this.screenElement,this.linkifier);case"dom":return this._instantiationService.createInstance(m.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},z.prototype._setTheme=function(e){var t;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(e=this._renderService)||void 0===e||e.setColors(this._colorManager.colors),null===(e=this.viewport)||void 0===e||e.onThemeChange(this._colorManager.colors)},z.prototype.bindMouse=function(){var o=this,n=this,t=this.element;function i(e){var t,i,r;if(t=n._mouseService.getRawByteCoords(e,n.screenElement,n.cols,n.rows)){switch(e.overrideType||e.type){case"mousemove":r=32,void 0===e.buttons?(i=3,void 0!==e.button&&(i=e.button<3?e.button:3)):i=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":r=0,i=e.button<3?e.button:3;break;case"mousedown":r=1,i=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(r=e.deltaY<0?0:1),i=4;break;default:return}return!(void 0===r||void 0===i||4<i)&&n._coreMouseService.triggerMouseEvent({col:t.x-33,row:t.y-33,button:i,action:r,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}}function r(e){return i(e),e.buttons||(o._document.removeEventListener("mouseup",l.mouseup),l.mousedrag&&o._document.removeEventListener("mousemove",l.mousedrag)),o.cancel(e)}function s(e){return i(e),e.preventDefault(),o.cancel(e)}function a(e){e.buttons&&i(e)}function c(e){e.buttons||i(e)}var l={mouseup:null,wheel:null,mousedrag:null,mousemove:null};this._coreMouseService.onProtocolChange(function(e){(o.mouseEvents=e)?("debug"===o.optionsService.options.logLevel&&o._logService.debug("Binding to mouse events:",o._coreMouseService.explainEvents(e)),o.element.classList.add("enable-mouse-events"),o._selectionService.disable()):(o._logService.debug("Unbinding from mouse events."),o.element.classList.remove("enable-mouse-events"),o._selectionService.enable()),8&e?l.mousemove||(t.addEventListener("mousemove",c),l.mousemove=c):(t.removeEventListener("mousemove",l.mousemove),l.mousemove=null),16&e?l.wheel||(t.addEventListener("wheel",s),l.wheel=s):(t.removeEventListener("wheel",l.wheel),l.wheel=null),2&e?l.mouseup||(l.mouseup=r):(o._document.removeEventListener("mouseup",l.mouseup),l.mouseup=null),4&e?l.mousedrag||(l.mousedrag=a):(o._document.removeEventListener("mousemove",l.mousedrag),l.mousedrag=null)}),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(p.addDisposableDomListener(t,"mousedown",function(e){if(e.preventDefault(),o.focus(),o.mouseEvents&&!o._selectionService.shouldForceSelection(e))return i(e),l.mouseup&&o._document.addEventListener("mouseup",l.mouseup),l.mousedrag&&o._document.addEventListener("mousemove",l.mousedrag),o.cancel(e)})),this.register(p.addDisposableDomListener(t,"wheel",function(e){if(!l.wheel&&!o.buffer.hasScrollback){var t=o.viewport.getLinesScrolled(e);if(0!==t){for(var i=h.C0.ESC+(o._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B"),r="",n=0;n<Math.abs(t);n++)r+=i;o._coreService.triggerDataEvent(r,!0)}}})),this.register(p.addDisposableDomListener(t,"wheel",function(e){if(!l.wheel)return o.viewport.onWheel(e)?void 0:o.cancel(e)})),this.register(p.addDisposableDomListener(t,"touchstart",function(e){if(!o.mouseEvents)return o.viewport.onTouchStart(e),o.cancel(e)})),this.register(p.addDisposableDomListener(t,"touchmove",function(e){if(!o.mouseEvents)return o.viewport.onTouchMove(e)?void 0:o.cancel(e)}))},z.prototype.refresh=function(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)},z.prototype._queueLinkification=function(e,t){var i;null===(i=this.linkifier)||void 0===i||i.linkifyRows(e,t)},z.prototype.updateCursorStyle=function(e){this._selectionService&&this._selectionService.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},z.prototype.showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},z.prototype.scroll=function(e,t){var i;void 0===t&&(t=!1),(i=this._blankLine)&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=this.buffer.getBlankLine(e,t),this._blankLine=i),i.isWrapped=t;var r,e=this.buffer.ybase+this.buffer.scrollTop,t=this.buffer.ybase+this.buffer.scrollBottom;0===this.buffer.scrollTop?(r=this.buffer.lines.isFull,t===this.buffer.lines.length-1?r?this.buffer.lines.recycle().copyFrom(i):this.buffer.lines.push(i.clone()):this.buffer.lines.splice(t+1,0,i.clone()),r?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)):(r=t-e+1,this.buffer.lines.shiftElements(e+1,r-1,-1),this.buffer.lines.set(t,i.clone())),this._userScrolling||(this.buffer.ydisp=this.buffer.ybase),this._dirtyRowService.markRangeDirty(this.buffer.scrollTop,this.buffer.scrollBottom),this._onScroll.fire(this.buffer.ydisp)},z.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this._userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this._userScrolling=!1);var i=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),i!==this.buffer.ydisp&&(t||this._onScroll.fire(this.buffer.ydisp),this.refresh(0,this.rows-1))},z.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},z.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},z.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},z.prototype.scrollToLine=function(e){e-=this.buffer.ydisp;0!=e&&this.scrollLines(e)},z.prototype.paste=function(e){c.paste(e,this.textarea,this.bracketedPasteMode,this._coreService)},z.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},z.prototype.addEscHandler=function(e,t){return this._inputHandler.addEscHandler(e,t)},z.prototype.addDcsHandler=function(e,t){return this._inputHandler.addDcsHandler(e,t)},z.prototype.addCsiHandler=function(e,t){return this._inputHandler.addCsiHandler(e,t)},z.prototype.addOscHandler=function(e,t){return this._inputHandler.addOscHandler(e,t)},z.prototype.registerLinkMatcher=function(e,t,i){i=this.linkifier.registerLinkMatcher(e,t,i);return this.refresh(0,this.rows-1),i},z.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},z.prototype.registerCharacterJoiner=function(e){e=this._renderService.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),e},z.prototype.deregisterCharacterJoiner=function(e){this._renderService.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(z.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),z.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},z.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},z.prototype.select=function(e,t,i){this._selectionService.setSelection(e,t,i)},z.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},z.prototype.getSelectionPosition=function(){if(this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},z.prototype.clearSelection=function(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()},z.prototype.selectAll=function(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()},z.prototype.selectLines=function(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)},z.prototype._keyDown=function(e){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=S.evaluateKeyboardEvent(e,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3!==t.type&&2!==t.type)return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(t.key!==h.C0.ETX&&t.key!==h.C0.CR||(this.textarea.value=""),this._onKey.fire({key:t.key,domEvent:e}),this.showCursor(),this._coreService.triggerDataEvent(t.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(e,!0)));var i=this.rows-1;return this.scrollLines(2===t.type?-i:i),this.cancel(e,!0)},z.prototype._isThirdLevelShift=function(e,t){e=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?e:e&&(!t.keyCode||47<t.keyCode)},z.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(16===e.keyCode||17===e.keyCode||18===e.keyCode||this.focus(),this.updateCursorStyle(e))},z.prototype._keyPress=function(e){var t;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this.showCursor(),this._coreService.triggerDataEvent(t,!0),0))},z.prototype.bell=function(){var e=this;this._soundBell()&&this._soundService.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},z.prototype.resize=function(e,t){var i;isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<T.MINIMUM_COLS&&(e=T.MINIMUM_COLS),t<T.MINIMUM_ROWS&&(t=T.MINIMUM_ROWS),this.buffers.resize(e,t),this._bufferService.resize(e,t),this.buffers.setupTabStops(this.cols),null===(i=this._charSizeService)||void 0===i||i.measure(),null===(i=this.viewport)||void 0===i||i.syncScrollArea(!0),this.refresh(0,this.rows-1),this._onResize.fire({cols:e,rows:t})):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure())},z.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(w.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},z.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},z.prototype.handleTitle=function(e){this._onTitleChange.fire(e)},z.prototype.reset=function(){var e;this.options.rows=this.rows,this.options.cols=this.cols;var t=this._customKeyEventHandler,i=this._userScrolling;this._setup(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset(),null===(e=this._selectionService)||void 0===e||e.reset(),this._customKeyEventHandler=t,this._userScrolling=i,this.refresh(0,this.rows-1),null===(i=this.viewport)||void 0===i||i.syncScrollArea()},z.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},z.prototype._visualBell=function(){return!1},z.prototype._soundBell=function(){return"sound"===this.options.bellStyle},z.prototype.write=function(e,t){this._writeBuffer.write(e,t)},z.prototype.writeSync=function(e){this._writeBuffer.writeSync(e)},z);function z(e){void 0===e&&(e={});var t=o.call(this)||this;return t.browser=d,t.mouseEvents=0,t._keyDownHandled=!1,t._blankLine=null,t._onCursorMove=new C.EventEmitter,t._onData=new C.EventEmitter,t._onBinary=new C.EventEmitter,t._onKey=new C.EventEmitter,t._onLineFeed=new C.EventEmitter,t._onRender=new C.EventEmitter,t._onResize=new C.EventEmitter,t._onScroll=new C.EventEmitter,t._onSelectionChange=new C.EventEmitter,t._onTitleChange=new C.EventEmitter,t._onFocus=new C.EventEmitter,t._onBlur=new C.EventEmitter,t.onA11yCharEmitter=new C.EventEmitter,t.onA11yTabEmitter=new C.EventEmitter,t._instantiationService=new B.InstantiationService,t.optionsService=new x.OptionsService(e),t._instantiationService.setService(R.IOptionsService,t.optionsService),t._bufferService=t._instantiationService.createInstance(T.BufferService),t._instantiationService.setService(R.IBufferService,t._bufferService),t._logService=t._instantiationService.createInstance(H.LogService),t._instantiationService.setService(R.ILogService,t._logService),t._coreService=t._instantiationService.createInstance(P.CoreService,function(){return t.scrollToBottom()}),t._instantiationService.setService(R.ICoreService,t._coreService),t._coreService.onData(function(e){return t._onData.fire(e)}),t._coreService.onBinary(function(e){return t._onBinary.fire(e)}),t._coreMouseService=t._instantiationService.createInstance(F.CoreMouseService),t._instantiationService.setService(R.ICoreMouseService,t._coreMouseService),t._dirtyRowService=t._instantiationService.createInstance(I.DirtyRowService),t._instantiationService.setService(R.IDirtyRowService,t._dirtyRowService),t.unicodeService=t._instantiationService.createInstance(q.UnicodeService),t._instantiationService.setService(R.IUnicodeService,t.unicodeService),t._charsetService=t._instantiationService.createInstance(U.CharsetService),t._instantiationService.setService(R.ICharsetService,t._charsetService),t._setupOptionsListeners(),t._setup(),t._writeBuffer=new j.WriteBuffer(function(e){return t._inputHandler.parse(e)}),t}t.Terminal=n},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),i=i(0),i=(s.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},s.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},s.prototype.compositionend=function(){this._finalizeComposition(!0)},s.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},s.prototype._finalizeComposition=function(e){var t,i=this;this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),e?(t={start:this._compositionPosition.start,end:this._compositionPosition.end},this._isSendingComposition=!0,setTimeout(function(){var e;i._isSendingComposition&&(i._isSendingComposition=!1,e=void 0,e=i._isComposing?i._textarea.value.substring(t.start,t.end):i._textarea.value.substring(t.start),i._coreService.triggerDataEvent(e,!0))},0)):(this._isSendingComposition=!1,e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end),this._coreService.triggerDataEvent(e,!0))},s.prototype._handleAnyTextareaChanges=function(){var t=this,i=this._textarea.value;setTimeout(function(){var e;t._isComposing||0<(e=t._textarea.value.replace(i,"")).length&&t._coreService.triggerDataEvent(e,!0)},0)},s.prototype.updateCompositionElements=function(e){var t,i,r,n=this;this._isComposing&&(this._bufferService.buffer.isCursorInViewport&&(r=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),t=this._bufferService.buffer.y*r,i=this._bufferService.buffer.x*this._charSizeService.width,this._compositionView.style.left=i+"px",this._compositionView.style.top=t+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px",r=this._compositionView.getBoundingClientRect(),this._textarea.style.left=i+"px",this._textarea.style.top=t+"px",this._textarea.style.width=r.width+"px",this._textarea.style.height=r.height+"px",this._textarea.style.lineHeight=r.height+"px"),e||setTimeout(function(){return n.updateCompositionElements(!0)},0))},s.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},r([n(2,i.IBufferService),n(3,i.IOptionsService),n(4,o.ICharSizeService),n(5,i.ICoreService)],s));function s(e,t,i,r,n,o){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=r,this._charSizeService=n,this._coreService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}t.CompositionHelper=i},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var c,a=i(2),l=i(8),h=i(4),i=i(0),h=(c=a.Disposable,n(u,c),u.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},u.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},u.prototype._innerRefresh=function(){0<this._charSizeService.height&&(this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight,e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight),this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px"));var e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null},u.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);var t;this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight?(t=this._bufferService.buffer.ydisp*this._currentRowHeight,this._lastScrollTop===t&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)):this._refresh(e)},u.prototype._onScroll=function(e){var t;this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent&&(this._ignoreNextScrollEvent?this._ignoreNextScrollEvent=!1:(t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp,this._scrollLines(t,!0)))},u.prototype._bubbleScroll=function(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||0<t&&i<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},u.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return 0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},u.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},u.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(0<this._wheelPartialScroll?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},u.prototype._applyScrollModifier=function(e,t){var i=this._optionsService.options.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},u.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},u.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!=t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},o([s(3,i.IBufferService),s(4,i.IOptionsService),s(5,h.ICharSizeService),s(6,h.IRenderService)],u));function u(e,t,i,r,n,o,s){var a=c.call(this)||this;return a._scrollLines=e,a._viewportElement=t,a._scrollArea=i,a._bufferService=r,a._optionsService=n,a._charSizeService=o,a._renderService=s,a.scrollBarWidth=0,a._currentRowHeight=0,a._lastRecordedBufferLength=0,a._lastRecordedViewportHeight=0,a._lastRecordedBufferHeight=0,a._lastTouchY=0,a._lastScrollTop=0,a._wheelPartialScroll=0,a._refreshAnimationFrame=null,a._ignoreNextScrollEvent=!1,a.scrollBarWidth=a._viewportElement.offsetWidth-a._scrollArea.offsetWidth||15,a.register(l.addDisposableDomListener(a._viewportElement,"scroll",a._onScroll.bind(a))),setTimeout(function(){return a.syncScrollArea()},0),a}t.Viewport=h},function(e,t,i){"use strict";function n(e){return e.replace(/\r?\n/g,"\r")}function o(e,t){return t?"[200~"+e+"[201~":e}function s(e,t,i,r){e=o(e=n(e),i),r.triggerDataEvent(e,!0),t.value=""}function a(e,t,i){var r=i.getBoundingClientRect(),i=e.clientX-r.left-10,r=e.clientY-r.top-10;t.style.position="absolute",t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=r+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position="",t.style.width="",t.style.height="",t.style.left="",t.style.top="",t.style.zIndex=""},200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=n,t.bracketTextForPaste=o,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,r){e.stopPropagation(),e.clipboardData&&s(e.clipboardData.getData("text/plain"),t,i,r)},t.paste=s,t.moveTextAreaUnderMouseCursor=a,t.rightClickHandler=function(e,t,i,r,n){a(e,t,i),n&&!r.isClickInSelection(e)&&r.selectWordAtCursor(e),t.value=r.selectionText,t.select()}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(12),p=i(18),v=i(38),o=i(2),s=i(15),g=i(7),y=i(16),b=i(1),m=i(3),S=i(5),c=i(6),C=i(20),a=i(22),l=i(4),h={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function u(e,t){if(24<e)return t.setWinLines;switch(e){case 1:return t.restoreWin;case 2:return t.minimizeWin;case 3:return t.setWinPosition;case 4:return t.setWinSizePixels;case 5:return t.raiseWin;case 6:return t.lowerWin;case 7:return t.refreshWin;case 8:return t.setWinSizeChars;case 9:return t.maximizeWin;case 10:return t.fullscreenWin;case 11:return t.getWinState;case 13:return t.getWinPosition;case 14:return t.getWinSizePixels;case 15:return t.getScreenSizePixels;case 16:return t.getCellSizePixels;case 18:return t.getWinSizeChars;case 19:return t.getScreenSizeChars;case 20:return t.getIconTitle;case 21:return t.getWinTitle;case 22:return t.pushTitle;case 23:return t.popTitle;case 24:return t.setWinLines}}var w,E=(_.prototype.hook=function(e){this._data=new Uint32Array(0)},_.prototype.put=function(e,t,i){this._data=s.concat(this._data,e.subarray(t,i))},_.prototype.unhook=function(e){if(e){var t=g.utf32ToString(this._data);switch(this._data=new Uint32Array(0),t){case'"q':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r0"q'+d.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r61;1"p'+d.C0.ESC+"\\");case"r":var i=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+i+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":i={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return i-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+i+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},_),n=(w=o.Disposable,n(f,w),Object.defineProperty(f.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){w.prototype.dispose.call(this)},f.prototype.parse=function(e){var t=this._bufferService.buffer,i=t.x,r=t.y;if(this._logService.debug("parsing data",e),this._parseBuffer.length<e.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(e.length,131072))),this._dirtyRowService.clearRange(),131072<e.length)for(var n=0;n<e.length;n+=131072){var o=n+131072<e.length?n+131072:e.length,s="string"==typeof e?this._stringDecoder.decode(e.substring(n,o),this._parseBuffer):this._utf8Decoder.decode(e.subarray(n,o),this._parseBuffer);this._parser.parse(this._parseBuffer,s)}else s=("string"==typeof e?this._stringDecoder:this._utf8Decoder).decode(e,this._parseBuffer),this._parser.parse(this._parseBuffer,s);(t=this._bufferService.buffer).x===i&&t.y===r||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},f.prototype.print=function(e,t,i){var r=this._bufferService.buffer,n=this._charsetService.charset,o=this._optionsService.options.screenReaderMode,s=this._bufferService.cols,a=this._coreService.decPrivateModes.wraparound,c=this._terminal.insertMode,l=this._curAttrData,h=r.lines.get(r.y+r.ybase);this._dirtyRowService.markDirty(r.y),r.x&&0<i-t&&2===h.getWidth(r.x-1)&&h.setCellFromCodePoint(r.x-1,0,1,l.fg,l.bg);for(var u=t;u<i;++u){var f,_=e[u],d=this._unicodeService.wcwidth(_);if(_<127&&n&&(f=n[String.fromCharCode(_)])&&(_=f.charCodeAt(0)),o&&this._terminal.onA11yCharEmitter.fire(g.stringFromCodePoint(_)),d||!r.x){if(r.x+d-1>=s)if(a)r.x=0,r.y++,r.y===r.scrollBottom+1?(r.y--,this._terminal.scroll(this._eraseAttrData(),!0)):(r.y>=this._bufferService.rows&&(r.y=this._bufferService.rows-1),r.lines.get(r.y).isWrapped=!0),h=r.lines.get(r.y+r.ybase);else if(r.x=s-1,2===d)continue;if(c&&(h.insertCells(r.x,d,r.getNullCell(l),l),2===h.getWidth(s-1)&&h.setCellFromCodePoint(s-1,m.NULL_CELL_CODE,m.NULL_CELL_WIDTH,l.fg,l.bg)),h.setCellFromCodePoint(r.x++,_,d,l.fg,l.bg),0<d)for(;--d;)h.setCellFromCodePoint(r.x++,0,0,l.fg,l.bg)}else h.getWidth(r.x-1)?h.addCodepointToCell(r.x-1,_):h.addCodepointToCell(r.x-2,_)}0<i-t&&(h.loadCell(r.x-1,this._workCell),2===this._workCell.getWidth()||65535<this._workCell.getCode()?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),r.x<s&&0<i-t&&0===h.getWidth(r.x)&&!h.hasContent(r.x)&&h.setCellFromCodePoint(r.x,0,1,l.fg,l.bg),this._dirtyRowService.markDirty(r.y)},f.prototype.addCsiHandler=function(e,t){var i=this;return"t"!==e.final||e.prefix||e.intermediates?this._parser.addCsiHandler(e,t):this._parser.addCsiHandler(e,function(e){return!u(e.params[0],i._optionsService.options.windowOptions)||t(e)})},f.prototype.addDcsHandler=function(e,t){return this._parser.addDcsHandler(e,new a.DcsHandler(t))},f.prototype.addEscHandler=function(e,t){return this._parser.addEscHandler(e,t)},f.prototype.addOscHandler=function(e,t){return this._parser.addOscHandler(e,new C.OscHandler(t))},f.prototype.bell=function(){this._onRequestBell.fire()},f.prototype.lineFeed=function(){var e=this._bufferService.buffer;this._dirtyRowService.markDirty(e.y),this._optionsService.options.convertEol&&(e.x=0),e.y++,e.y===e.scrollBottom+1?(e.y--,this._terminal.scroll(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),e.x>=this._bufferService.cols&&e.x--,this._dirtyRowService.markDirty(e.y),this._onLineFeed.fire()},f.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},f.prototype.backspace=function(){this._restrictCursor(),0<this._bufferService.buffer.x&&this._bufferService.buffer.x--},f.prototype.tab=function(){var e;this._bufferService.buffer.x>=this._bufferService.cols||(e=this._bufferService.buffer.x,this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._terminal.onA11yTabEmitter.fire(this._bufferService.buffer.x-e))},f.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},f.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},f.prototype._restrictCursor=function(){this._bufferService.buffer.x=Math.min(this._bufferService.cols-1,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},f.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+t):(this._bufferService.buffer.x=e,this._bufferService.buffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},f.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+e,this._bufferService.buffer.y+t)},f.prototype.cursorUp=function(e){var t=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;0<=t?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1))},f.prototype.cursorDown=function(e){var t=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;0<=t?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1)},f.prototype.cursorForward=function(e){this._moveCursor(e.params[0]||1,0)},f.prototype.cursorBackward=function(e){this._moveCursor(-(e.params[0]||1),0)},f.prototype.cursorNextLine=function(e){this.cursorDown(e),this._bufferService.buffer.x=0},f.prototype.cursorPrecedingLine=function(e){this.cursorUp(e),this._bufferService.buffer.x=0},f.prototype.cursorCharAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},f.prototype.cursorPosition=function(e){this._setCursor(2<=e.length?(e.params[1]||1)-1:0,(e.params[0]||1)-1)},f.prototype.charPosAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},f.prototype.hPositionRelative=function(e){this._moveCursor(e.params[0]||1,0)},f.prototype.linePosAbsolute=function(e){this._setCursor(this._bufferService.buffer.x,(e.params[0]||1)-1)},f.prototype.vPositionRelative=function(e){this._moveCursor(0,e.params[0]||1)},f.prototype.hVPosition=function(e){this.cursorPosition(e)},f.prototype.tabClear=function(e){e=e.params[0];0===e?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===e&&(this._bufferService.buffer.tabs={})},f.prototype.cursorForwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1;t--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},f.prototype.cursorBackwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1,i=this._bufferService.buffer;t--;)i.x=i.prevStop()},f.prototype._eraseInBufferLine=function(e,t,i,r){void 0===r&&(r=!1);e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);e.replaceCells(t,i,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r&&(e.isWrapped=!1)},f.prototype._resetBufferLine=function(e){e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);e.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),e.isWrapped=!1},f.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(),e.params[0]){case 0:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);t<this._bufferService.rows;t++)this._resetBufferLine(t);this._dirtyRowService.markDirty(t);break;case 1:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var i=this._bufferService.buffer.lines.length-this._bufferService.rows;0<i&&(this._bufferService.buffer.lines.trimStart(i),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-i,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-i,0),this._onScroll.fire(0))}},f.prototype.eraseInLine=function(e){switch(this._restrictCursor(),e.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},f.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1,i=this._bufferService.buffer;if(!(i.y>i.scrollBottom||i.y<i.scrollTop)){for(var r=i.y+i.ybase,e=this._bufferService.rows-1-i.scrollBottom,n=this._bufferService.rows-1+i.ybase-e+1;t--;)i.lines.splice(n-1,1),i.lines.splice(r,0,i.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(i.y,i.scrollBottom),i.x=0}},f.prototype.deleteLines=function(e){this._restrictCursor();var t=e.params[0]||1,i=this._bufferService.buffer;if(!(i.y>i.scrollBottom||i.y<i.scrollTop)){var r=i.y+i.ybase,n=this._bufferService.rows-1-i.scrollBottom;for(n=this._bufferService.rows-1+i.ybase-n;t--;)i.lines.splice(r,1),i.lines.splice(n,0,i.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(i.y,i.scrollBottom),i.x=0}},f.prototype.insertChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.insertCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},f.prototype.deleteChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.deleteCells(this._bufferService.buffer.x,e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},f.prototype.scrollUp=function(e){for(var t=e.params[0]||1,i=this._bufferService.buffer;t--;)i.lines.splice(i.ybase+i.scrollTop,1),i.lines.splice(i.ybase+i.scrollBottom,0,i.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(i.scrollTop,i.scrollBottom)},f.prototype.scrollDown=function(e){for(var t=e.params[0]||1,i=this._bufferService.buffer;t--;)i.lines.splice(i.ybase+i.scrollBottom,1),i.lines.splice(i.ybase+i.scrollTop,0,i.getBlankLine(y.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(i.scrollTop,i.scrollBottom)},f.prototype.scrollLeft=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=t.lines.get(t.ybase+r);n.deleteCells(0,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.scrollRight=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=t.lines.get(t.ybase+r);n.insertCells(0,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.insertColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=this._bufferService.buffer.lines.get(t.ybase+r);n.insertCells(t.x,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.deleteColumns=function(e){var t=this._bufferService.buffer;if(!(t.y>t.scrollBottom||t.y<t.scrollTop)){for(var i=e.params[0]||1,r=t.scrollTop;r<=t.scrollBottom;++r){var n=t.lines.get(t.ybase+r);n.deleteCells(t.x,i,t.getNullCell(this._eraseAttrData()),this._eraseAttrData()),n.isWrapped=!1}this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)}},f.prototype.eraseChars=function(e){this._restrictCursor();var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.y+this._bufferService.buffer.ybase);t&&(t.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(e.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},f.prototype.repeatPrecedingCharacter=function(e){if(this._parser.precedingCodepoint){for(var t=e.params[0]||1,i=new Uint32Array(t),r=0;r<t;++r)i[r]=this._parser.precedingCodepoint;this.print(i,0,i.length)}},f.prototype.sendDeviceAttributesPrimary=function(e){0<e.params[0]||(this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c"))},f.prototype.sendDeviceAttributesSecondary=function(e){0<e.params[0]||(this._terminal.is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._terminal.is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},f.prototype.setMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._terminal.insertMode=!0)},f.prototype.setModePrivate=function(e){for(var t,i=0;i<e.length;i++)switch(e.params[i]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,p.DEFAULT_CHARSET),this._charsetService.setgCharset(1,p.DEFAULT_CHARSET),this._charsetService.setgCharset(2,p.DEFAULT_CHARSET),this._charsetService.setgCharset(3,p.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._terminal.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}},f.prototype.resetMode=function(e){for(var t=0;t<e.length;t++)4===e.params[t]&&(this._terminal.insertMode=!1)},f.prototype.resetModePrivate=function(e){for(var t,i=0;i<e.length;i++)switch(e.params[i]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._terminal.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===e.params[i]&&this.restoreCursor(),this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}},f.prototype._extractColor=function(e,t,i){var r=[0,0,-1,0,0,0],n=0,o=0;do{if(r[o+n]=e.params[t+o],e.hasSubParams(t+o)){for(var s=e.getSubParams(t+o),a=0;r[o+a+1+(n=5===r[1]?1:n)]=s[a],++a<s.length&&a+o+1+n<r.length;);break}}while(!(5===r[1]&&2<=o+n||2===r[1]&&5<=o+n)&&(r[1]&&(n=1),++o+t<e.length&&o+n<r.length));for(a=2;a<r.length;++a)-1===r[a]&&(r[a]=0);return 38===r[0]?2===r[1]?(i.fg|=50331648,i.fg&=-16777216,i.fg|=c.AttributeData.fromColorRGB([r[3],r[4],r[5]])):5===r[1]&&(i.fg&=-50331904,i.fg|=33554432|255&r[3]):48===r[0]&&(2===r[1]?(i.bg|=50331648,i.bg&=-16777216,i.bg|=c.AttributeData.fromColorRGB([r[3],r[4],r[5]])):5===r[1]&&(i.bg&=-50331904,i.bg|=33554432|255&r[3])),o},f.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=y.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=y.DEFAULT_ATTR_DATA.bg);for(var t,i=e.length,r=this._curAttrData,n=0;n<i;n++)30<=(t=e.params[n])&&t<=37?(r.fg&=-50331904,r.fg|=16777216|t-30):40<=t&&t<=47?(r.bg&=-50331904,r.bg|=16777216|t-40):90<=t&&t<=97?(r.fg&=-50331904,r.fg|=16777224|t-90):100<=t&&t<=107?(r.bg&=-50331904,r.bg|=16777224|t-100):0===t?(r.fg=y.DEFAULT_ATTR_DATA.fg,r.bg=y.DEFAULT_ATTR_DATA.bg):1===t?r.fg|=134217728:3===t?r.bg|=67108864:4===t?r.fg|=268435456:5===t?r.fg|=536870912:7===t?r.fg|=67108864:8===t?r.fg|=1073741824:2===t?r.bg|=134217728:22===t?(r.fg&=-134217729,r.bg&=-134217729):23===t?r.bg&=-67108865:24===t?r.fg&=-268435457:25===t?r.fg&=-536870913:27===t?r.fg&=-67108865:28===t?r.fg&=-1073741825:39===t?(r.fg&=-67108864,r.fg|=16777215&y.DEFAULT_ATTR_DATA.fg):49===t?(r.bg&=-67108864,r.bg|=16777215&y.DEFAULT_ATTR_DATA.bg):38===t||48===t?n+=this._extractColor(e,n,r):100===t?(r.fg&=-67108864,r.fg|=16777215&y.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&y.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t)},f.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var t=this._bufferService.buffer.y+1,i=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+t+";"+i+"R")}},f.prototype.deviceStatusPrivate=function(e){var t;6===e.params[0]&&(t=this._bufferService.buffer.y+1,e=this._bufferService.buffer.x+1,this._coreService.triggerDataEvent(d.C0.ESC+"[?"+t+";"+e+"R"))},f.prototype.softReset=function(e){var t;this._coreService.isCursorHidden=!1,this._terminal.insertMode=!1,null===(t=this._terminal.viewport)||void 0===t||t.syncScrollArea(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=y.DEFAULT_ATTR_DATA.clone(),this._bufferService.buffer.x=this._bufferService.buffer.y=0,this._coreService.reset(),this._charsetService.reset()},f.prototype.setCursorStyle=function(e){e=e.params[0]||1;switch(e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}e=e%2==1;this._optionsService.options.cursorBlink=e},f.prototype.setScrollRegion=function(e){var t,i=e.params[0]||1;i<(t=e.length<2||(t=e.params[1])>this._bufferService.rows||0===t?this._bufferService.rows:t)&&(this._bufferService.buffer.scrollTop=i-1,this._bufferService.buffer.scrollBottom=t-1,this._setCursor(0,0))},f.prototype.windowOptions=function(e){if(u(e.params[0],this._optionsService.options.windowOptions)){var t,i,r=1<e.length?e.params[1]:0,n=this._instantiationService.getService(l.IRenderService);switch(e.params[0]){case 14:n&&2!==r&&(console.log(n.dimensions),t=n.dimensions.scaledCanvasWidth.toFixed(0),i=n.dimensions.scaledCanvasHeight.toFixed(0),this._coreService.triggerDataEvent(d.C0.ESC+"[4;"+i+";"+t+"t"));break;case 16:n&&(t=n.dimensions.scaledCellWidth.toFixed(0),i=n.dimensions.scaledCellHeight.toFixed(0),this._coreService.triggerDataEvent(d.C0.ESC+"[6;"+i+";"+t+"t"));break;case 18:this._bufferService&&this._coreService.triggerDataEvent(d.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==r&&2!==r||(this._windowTitleStack.push(this._windowTitle),10<this._windowTitleStack.length&&this._windowTitleStack.shift()),0!==r&&1!==r||(this._iconNameStack.push(this._iconName),10<this._iconNameStack.length&&this._iconNameStack.shift());break;case 23:0!==r&&2!==r||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==r&&1!==r||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},f.prototype.saveCursor=function(e){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},f.prototype.restoreCursor=function(e){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},f.prototype.setTitle=function(e){this._windowTitle=e,this._terminal.handleTitle(e)},f.prototype.setIconName=function(e){this._iconName=e},f.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},f.prototype.keypadApplicationMode=function(){var e;this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,null===(e=this._terminal.viewport)||void 0===e||e.syncScrollArea()},f.prototype.keypadNumericMode=function(){var e;this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,null===(e=this._terminal.viewport)||void 0===e||e.syncScrollArea()},f.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,p.DEFAULT_CHARSET)},f.prototype.selectCharset=function(e){2===e.length?"/"!==e[0]&&this._charsetService.setgCharset(h[e[0]],p.CHARSETS[e[1]]||p.DEFAULT_CHARSET):this.selectDefaultCharset()},f.prototype.index=function(){this._restrictCursor();var e=this._bufferService.buffer;this._bufferService.buffer.y++,e.y===e.scrollBottom+1?(e.y--,this._terminal.scroll(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),this._restrictCursor()},f.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},f.prototype.reverseIndex=function(){this._restrictCursor();var e,t=this._bufferService.buffer;t.y===t.scrollTop?(e=t.scrollBottom-t.scrollTop,t.lines.shiftElements(t.y+t.ybase,e,1),t.lines.set(t.y+t.ybase,t.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(t.scrollTop,t.scrollBottom)):(t.y--,this._restrictCursor())},f.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},f.prototype.reset=function(){this._curAttrData=y.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=y.DEFAULT_ATTR_DATA.clone()},f.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},f.prototype.setgLevel=function(e){this._charsetService.setgLevel(e)},f.prototype.screenAlignmentPattern=function(){var e=new S.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg;var t=this._bufferService.buffer;this._setCursor(0,0);for(var i=0;i<this._bufferService.rows;++i){var r=t.y+t.ybase+i;t.lines.get(r).fill(e),t.lines.get(r).isWrapped=!1}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},f);function f(e,t,i,r,n,o,s,a,c,l,h){void 0===h&&(h=new v.EscapeSequenceParser);var u=w.call(this)||this;u._terminal=e,u._bufferService=t,u._charsetService=i,u._coreService=r,u._dirtyRowService=n,u._logService=o,u._optionsService=s,u._coreMouseService=a,u._unicodeService=c,u._instantiationService=l,u._parser=h,u._parseBuffer=new Uint32Array(4096),u._stringDecoder=new g.StringToUtf32,u._utf8Decoder=new g.Utf8ToUtf32,u._workCell=new S.CellData,u._windowTitle="",u._iconName="",u._windowTitleStack=[],u._iconNameStack=[],u._curAttrData=y.DEFAULT_ATTR_DATA.clone(),u._eraseAttrDataInternal=y.DEFAULT_ATTR_DATA.clone(),u._onRequestRefreshRows=new b.EventEmitter,u._onRequestReset=new b.EventEmitter,u._onRequestBell=new b.EventEmitter,u._onCursorMove=new b.EventEmitter,u._onLineFeed=new b.EventEmitter,u._onScroll=new b.EventEmitter,u.register(u._parser),u._parser.setCsiHandlerFallback(function(e,t){u._logService.debug("Unknown CSI code: ",{identifier:u._parser.identToString(e),params:t.toArray()})}),u._parser.setEscHandlerFallback(function(e){u._logService.debug("Unknown ESC code: ",{identifier:u._parser.identToString(e)})}),u._parser.setExecuteHandlerFallback(function(e){u._logService.debug("Unknown EXECUTE code: ",{code:e})}),u._parser.setOscHandlerFallback(function(e,t,i){u._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})}),u._parser.setDcsHandlerFallback(function(e,t,i){"HOOK"===t&&(i=i.toArray()),u._logService.debug("Unknown DCS code: ",{identifier:u._parser.identToString(e),action:t,payload:i})}),u._parser.setPrintHandler(function(e,t,i){return u.print(e,t,i)}),u._parser.setCsiHandler({final:"@"},function(e){return u.insertChars(e)}),u._parser.setCsiHandler({intermediates:" ",final:"@"},function(e){return u.scrollLeft(e)}),u._parser.setCsiHandler({final:"A"},function(e){return u.cursorUp(e)}),u._parser.setCsiHandler({intermediates:" ",final:"A"},function(e){return u.scrollRight(e)}),u._parser.setCsiHandler({final:"B"},function(e){return u.cursorDown(e)}),u._parser.setCsiHandler({final:"C"},function(e){return u.cursorForward(e)}),u._parser.setCsiHandler({final:"D"},function(e){return u.cursorBackward(e)}),u._parser.setCsiHandler({final:"E"},function(e){return u.cursorNextLine(e)}),u._parser.setCsiHandler({final:"F"},function(e){return u.cursorPrecedingLine(e)}),u._parser.setCsiHandler({final:"G"},function(e){return u.cursorCharAbsolute(e)}),u._parser.setCsiHandler({final:"H"},function(e){return u.cursorPosition(e)}),u._parser.setCsiHandler({final:"I"},function(e){return u.cursorForwardTab(e)}),u._parser.setCsiHandler({final:"J"},function(e){return u.eraseInDisplay(e)}),u._parser.setCsiHandler({prefix:"?",final:"J"},function(e){return u.eraseInDisplay(e)}),u._parser.setCsiHandler({final:"K"},function(e){return u.eraseInLine(e)}),u._parser.setCsiHandler({prefix:"?",final:"K"},function(e){return u.eraseInLine(e)}),u._parser.setCsiHandler({final:"L"},function(e){return u.insertLines(e)}),u._parser.setCsiHandler({final:"M"},function(e){return u.deleteLines(e)}),u._parser.setCsiHandler({final:"P"},function(e){return u.deleteChars(e)}),u._parser.setCsiHandler({final:"S"},function(e){return u.scrollUp(e)}),u._parser.setCsiHandler({final:"T"},function(e){return u.scrollDown(e)}),u._parser.setCsiHandler({final:"X"},function(e){return u.eraseChars(e)}),u._parser.setCsiHandler({final:"Z"},function(e){return u.cursorBackwardTab(e)}),u._parser.setCsiHandler({final:"`"},function(e){return u.charPosAbsolute(e)}),u._parser.setCsiHandler({final:"a"},function(e){return u.hPositionRelative(e)}),u._parser.setCsiHandler({final:"b"},function(e){return u.repeatPrecedingCharacter(e)}),u._parser.setCsiHandler({final:"c"},function(e){return u.sendDeviceAttributesPrimary(e)}),u._parser.setCsiHandler({prefix:">",final:"c"},function(e){return u.sendDeviceAttributesSecondary(e)}),u._parser.setCsiHandler({final:"d"},function(e){return u.linePosAbsolute(e)}),u._parser.setCsiHandler({final:"e"},function(e){return u.vPositionRelative(e)}),u._parser.setCsiHandler({final:"f"},function(e){return u.hVPosition(e)}),u._parser.setCsiHandler({final:"g"},function(e){return u.tabClear(e)}),u._parser.setCsiHandler({final:"h"},function(e){return u.setMode(e)}),u._parser.setCsiHandler({prefix:"?",final:"h"},function(e){return u.setModePrivate(e)}),u._parser.setCsiHandler({final:"l"},function(e){return u.resetMode(e)}),u._parser.setCsiHandler({prefix:"?",final:"l"},function(e){return u.resetModePrivate(e)}),u._parser.setCsiHandler({final:"m"},function(e){return u.charAttributes(e)}),u._parser.setCsiHandler({final:"n"},function(e){return u.deviceStatus(e)}),u._parser.setCsiHandler({prefix:"?",final:"n"},function(e){return u.deviceStatusPrivate(e)}),u._parser.setCsiHandler({intermediates:"!",final:"p"},function(e){return u.softReset(e)}),u._parser.setCsiHandler({intermediates:" ",final:"q"},function(e){return u.setCursorStyle(e)}),u._parser.setCsiHandler({final:"r"},function(e){return u.setScrollRegion(e)}),u._parser.setCsiHandler({final:"s"},function(e){return u.saveCursor(e)}),u._parser.setCsiHandler({final:"t"},function(e){return u.windowOptions(e)}),u._parser.setCsiHandler({final:"u"},function(e){return u.restoreCursor(e)}),u._parser.setCsiHandler({intermediates:"'",final:"}"},function(e){return u.insertColumns(e)}),u._parser.setCsiHandler({intermediates:"'",final:"~"},function(e){return u.deleteColumns(e)}),u._parser.setExecuteHandler(d.C0.BEL,function(){return u.bell()}),u._parser.setExecuteHandler(d.C0.LF,function(){return u.lineFeed()}),u._parser.setExecuteHandler(d.C0.VT,function(){return u.lineFeed()}),u._parser.setExecuteHandler(d.C0.FF,function(){return u.lineFeed()}),u._parser.setExecuteHandler(d.C0.CR,function(){return u.carriageReturn()}),u._parser.setExecuteHandler(d.C0.BS,function(){return u.backspace()}),u._parser.setExecuteHandler(d.C0.HT,function(){return u.tab()}),u._parser.setExecuteHandler(d.C0.SO,function(){return u.shiftOut()}),u._parser.setExecuteHandler(d.C0.SI,function(){return u.shiftIn()}),u._parser.setExecuteHandler(d.C1.IND,function(){return u.index()}),u._parser.setExecuteHandler(d.C1.NEL,function(){return u.nextLine()}),u._parser.setExecuteHandler(d.C1.HTS,function(){return u.tabSet()}),u._parser.setOscHandler(0,new C.OscHandler(function(e){u.setTitle(e),u.setIconName(e)})),u._parser.setOscHandler(1,new C.OscHandler(function(e){return u.setIconName(e)})),u._parser.setOscHandler(2,new C.OscHandler(function(e){return u.setTitle(e)})),u._parser.setEscHandler({final:"7"},function(){return u.saveCursor()}),u._parser.setEscHandler({final:"8"},function(){return u.restoreCursor()}),u._parser.setEscHandler({final:"D"},function(){return u.index()}),u._parser.setEscHandler({final:"E"},function(){return u.nextLine()}),u._parser.setEscHandler({final:"H"},function(){return u.tabSet()}),u._parser.setEscHandler({final:"M"},function(){return u.reverseIndex()}),u._parser.setEscHandler({final:"="},function(){return u.keypadApplicationMode()}),u._parser.setEscHandler({final:">"},function(){return u.keypadNumericMode()}),u._parser.setEscHandler({final:"c"},function(){return u.fullReset()}),u._parser.setEscHandler({final:"n"},function(){return u.setgLevel(2)}),u._parser.setEscHandler({final:"o"},function(){return u.setgLevel(3)}),u._parser.setEscHandler({final:"|"},function(){return u.setgLevel(3)}),u._parser.setEscHandler({final:"}"},function(){return u.setgLevel(2)}),u._parser.setEscHandler({final:"~"},function(){return u.setgLevel(1)}),u._parser.setEscHandler({intermediates:"%",final:"@"},function(){return u.selectDefaultCharset()}),u._parser.setEscHandler({intermediates:"%",final:"G"},function(){return u.selectDefaultCharset()});var f,_=this;for(f in p.CHARSETS)!function(e){_._parser.setEscHandler({intermediates:"(",final:e},function(){return u.selectCharset("("+e)}),_._parser.setEscHandler({intermediates:")",final:e},function(){return u.selectCharset(")"+e)}),_._parser.setEscHandler({intermediates:"*",final:e},function(){return u.selectCharset("*"+e)}),_._parser.setEscHandler({intermediates:"+",final:e},function(){return u.selectCharset("+"+e)}),_._parser.setEscHandler({intermediates:"-",final:e},function(){return u.selectCharset("-"+e)}),_._parser.setEscHandler({intermediates:".",final:e},function(){return u.selectCharset("."+e)}),_._parser.setEscHandler({intermediates:"/",final:e},function(){return u.selectCharset("/"+e)})}(f);return u._parser.setEscHandler({intermediates:"#",final:"8"},function(){return u.screenAlignmentPattern()}),u._parser.setErrorHandler(function(e){return u._logService.error("Parsing error: ",e),e}),u._parser.setDcsHandler({intermediates:"$",final:"q"},new E(u._bufferService,u._coreService,u._logService,u._optionsService)),u}function _(e,t,i,r){this._bufferService=e,this._coreService=t,this._logService=i,this._optionsService=r,this._data=new Uint32Array(0)}t.InputHandler=n},function(e,i,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(i,"__esModule",{value:!0});var o=t(2),s=t(15),a=t(19),c=t(20),l=t(22),h=(u.prototype.setDefault=function(e,t){s.fill(this.table,e<<4|t)},u.prototype.add=function(e,t,i,r){this.table[t<<8|e]=i<<4|r},u.prototype.addMany=function(e,t,i,r){for(var n=0;n<e.length;n++)this.table[t<<8|e[n]]=i<<4|r},u);function u(e){this.table=new Uint8Array(e)}i.TransitionTable=h,i.VT500_TRANSITION_TABLE=function(){function e(e,t){return i.slice(e,t)}var t=new h(4095),i=Array.apply(null,Array(256)).map(function(e,t){return t}),r=e(32,127),n=e(0,24);n.push(25),n.push.apply(n,e(28,32));var o,s=e(0,14);for(o in t.setDefault(1,0),t.addMany(r,0,2,0),s)t.addMany([24,26,153,154],o,3,0),t.addMany(e(128,144),o,3,0),t.addMany(e(144,152),o,3,0),t.add(156,o,0,0),t.add(27,o,11,1),t.add(157,o,4,8),t.addMany([152,158,159],o,0,7),t.add(155,o,11,3),t.add(144,o,11,9);return t.addMany(n,0,3,0),t.addMany(n,1,3,1),t.add(127,1,0,1),t.addMany(n,8,0,8),t.addMany(n,3,3,3),t.add(127,3,0,3),t.addMany(n,4,3,4),t.add(127,4,0,4),t.addMany(n,6,3,6),t.addMany(n,5,3,5),t.add(127,5,0,5),t.addMany(n,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(r,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(e(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(r,7,0,7),t.addMany(n,7,0,7),t.add(156,7,0,0),t.add(127,7,0,7),t.add(91,1,11,3),t.addMany(e(64,127),3,7,0),t.addMany(e(48,60),3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(e(48,60),4,8,4),t.addMany(e(64,127),4,7,0),t.addMany([60,61,62,63],4,0,6),t.addMany(e(32,64),6,0,6),t.add(127,6,0,6),t.addMany(e(64,127),6,0,0),t.addMany(e(32,48),3,9,5),t.addMany(e(32,48),5,9,5),t.addMany(e(48,64),5,0,6),t.addMany(e(64,127),5,7,0),t.addMany(e(32,48),4,9,5),t.addMany(e(32,48),1,9,2),t.addMany(e(32,48),2,9,2),t.addMany(e(48,127),2,10,0),t.addMany(e(48,80),1,10,0),t.addMany(e(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(e(96,127),1,10,0),t.add(80,1,11,9),t.addMany(n,9,0,9),t.add(127,9,0,9),t.addMany(e(28,32),9,0,9),t.addMany(e(32,48),9,9,12),t.addMany(e(48,60),9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(n,11,0,11),t.addMany(e(32,128),11,0,11),t.addMany(e(28,32),11,0,11),t.addMany(n,10,0,10),t.add(127,10,0,10),t.addMany(e(28,32),10,0,10),t.addMany(e(48,60),10,8,10),t.addMany([60,61,62,63],10,0,11),t.addMany(e(32,48),10,9,12),t.addMany(n,12,0,12),t.add(127,12,0,12),t.addMany(e(28,32),12,0,12),t.addMany(e(32,48),12,9,12),t.addMany(e(48,64),12,0,11),t.addMany(e(64,127),12,12,13),t.addMany(e(64,127),10,12,13),t.addMany(e(64,127),9,12,13),t.addMany(n,13,13,13),t.addMany(r,13,13,13),t.add(127,13,0,13),t.addMany([27,156,24,26],13,14,0),t.add(160,0,2,0),t.add(160,8,5,8),t.add(160,6,0,6),t.add(160,11,0,11),t.add(160,13,13,13),t}();var f,n=(f=o.Disposable,n(_,f),_.prototype._identifier=function(e,t){void 0===t&&(t=[64,126]);var i=0;if(e.prefix){if(1<e.prefix.length)throw new Error("only one byte as prefix supported");if((i=e.prefix.charCodeAt(0))&&i<60||63<i)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(2<e.intermediates.length)throw new Error("only two bytes as intermediates are supported");for(var r=0;r<e.intermediates.length;++r){var n=e.intermediates.charCodeAt(r);if(n<32||47<n)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=n}}if(1!==e.final.length)throw new Error("final must be a single byte");var o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return(i<<=8)|o},_.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},_.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},_.prototype.setPrintHandler=function(e){this._printHandler=e},_.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},_.prototype.addEscHandler=function(e,t){e=this._identifier(e,[48,126]);void 0===this._escHandlers[e]&&(this._escHandlers[e]=[]);var i=this._escHandlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},_.prototype.setEscHandler=function(e,t){this._escHandlers[this._identifier(e,[48,126])]=[t]},_.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},_.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},_.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},_.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},_.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},_.prototype.addCsiHandler=function(e,t){e=this._identifier(e);void 0===this._csiHandlers[e]&&(this._csiHandlers[e]=[]);var i=this._csiHandlers[e];return i.push(t),{dispose:function(){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}}},_.prototype.setCsiHandler=function(e,t){this._csiHandlers[this._identifier(e)]=[t]},_.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},_.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},_.prototype.addDcsHandler=function(e,t){return this._dcsParser.addHandler(this._identifier(e),t)},_.prototype.setDcsHandler=function(e,t){this._dcsParser.setHandler(this._identifier(e),t)},_.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},_.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},_.prototype.addOscHandler=function(e,t){return this._oscParser.addHandler(e,t)},_.prototype.setOscHandler=function(e,t){this._oscParser.setHandler(e,t)},_.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},_.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},_.prototype.setErrorHandler=function(e){this._errorHandler=e},_.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},_.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},_.prototype.parse=function(e,t){for(var i=0,r=0,n=this.currentState,o=this._oscParser,s=this._dcsParser,a=this._collect,c=this._params,l=this.TRANSITIONS.table,h=0;h<t;++h){switch((r=l[n<<8|((i=e[h])<160?i:160)])>>4){case 2:for(var u=h+1;;++u){if(t<=u||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}if(++u>=t||(i=e[u])<32||126<i&&i<160){this._printHandler(e,h,u),h=u-1;break}}break;case 3:this._executeHandlers[i]?this._executeHandlers[i]():this._executeHandlerFb(i),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:h,code:i,currentState:n,collect:a,params:c,abort:!1}).abort)return;break;case 7:for(var f=this._csiHandlers[a<<8|i],_=f?f.length-1:-1;0<=_&&!1===f[_](c);_--);_<0&&this._csiHandlerFb(a<<8|i,c),this.precedingCodepoint=0;break;case 8:do{switch(i){case 59:c.addParam(0);break;case 58:c.addSubParam(-1);break;default:c.addDigit(i-48)}}while(++h<t&&47<(i=e[h])&&i<60);h--;break;case 9:a<<=8,a|=i;break;case 10:for(var d=this._escHandlers[a<<8|i],p=d?d.length-1:-1;0<=p&&!1===d[p]();p--);p<0&&this._escHandlerFb(a<<8|i),this.precedingCodepoint=0;break;case 11:c.reset(),c.addParam(0),a=0;break;case 12:s.hook(a<<8|i,c);break;case 13:for(var v=h+1;;++v)if(t<=v||24===(i=e[v])||26===i||27===i||127<i&&i<160){s.put(e,h,v),h=v-1;break}break;case 14:s.unhook(24!==i&&26!==i),27===i&&(r|=1),c.reset(),c.addParam(0),a=0,this.precedingCodepoint=0;break;case 4:o.start();break;case 5:for(var g=h+1;;g++)if(t<=g||(i=e[g])<32||127<i&&i<=159){o.put(e,h,g),h=g-1;break}break;case 6:o.end(24!==i&&26!==i),27===i&&(r|=1),c.reset(),c.addParam(0),a=0,this.precedingCodepoint=0}n=15&r}this._collect=a,this.currentState=n},_);function _(e){void 0===e&&(e=i.VT500_TRANSITION_TABLE);var t=f.call(this)||this;return t.TRANSITIONS=e,t.initialState=0,t.currentState=t.initialState,t._params=new a.Params,t._params.addParam(0),t._collect=0,t.precedingCodepoint=0,t._printHandlerFb=function(e,t,i){},t._executeHandlerFb=function(e){},t._csiHandlerFb=function(e,t){},t._escHandlerFb=function(e){},t._errorHandlerFb=function(e){return e},t._printHandler=t._printHandlerFb,t._executeHandlers=Object.create(null),t._csiHandlers=Object.create(null),t._escHandlers=Object.create(null),t._oscParser=new c.OscParser,t._dcsParser=new l.DcsParser,t._errorHandler=t._errorHandlerFb,t.setEscHandler({final:"\\"},function(){}),t}i.EscapeSequenceParser=n},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var l,h=i(40),u=i(46),f=i(47),_=i(48),d=i(27),a=i(2),c=i(4),p=i(0),v=i(23),g=i(1),y=1,c=(l=a.Disposable,n(b,l),Object.defineProperty(b.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){l.prototype.dispose.call(this),this._renderLayers.forEach(function(e){return e.dispose()}),v.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(e){var t=this;this._colors=e,this._renderLayers.forEach(function(e){e.setColors(t._colors),e.reset()})},b.prototype.onResize=function(e,t){var i=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(i.dimensions)}),this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(e){return e.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(e){return e.onFocus()})},b.prototype.onSelectionChanged=function(t,i,r){void 0===r&&(r=!1),this._runOperation(function(e){return e.onSelectionChanged(t,i,r)})},b.prototype.onCursorMove=function(){this._runOperation(function(e){return e.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(e){return e.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(e){return e.reset()})},b.prototype._runOperation=function(t){this._renderLayers.forEach(function(e){return t(e)})},b.prototype.renderRows=function(t,i){this._renderLayers.forEach(function(e){return e.onGridChanged(t,i)})},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},b.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},o([s(3,p.IBufferService),s(4,c.ICharSizeService),s(5,p.IOptionsService),s(6,p.ICoreService),s(7,c.ICoreBrowserService)],b));function b(e,t,i,r,n,o,s,a){var c=l.call(this)||this;c._colors=e,c._screenElement=t,c._linkifier=i,c._bufferService=r,c._charSizeService=n,c._optionsService=o,c.coreService=s,c.coreBrowserService=a,c._id=y++,c._onRequestRefreshRows=new g.EventEmitter;n=c._optionsService.options.allowTransparency;return c._characterJoinerRegistry=new d.CharacterJoinerRegistry(c._bufferService),c._renderLayers=[new h.TextRenderLayer(c._screenElement,0,c._colors,c._characterJoinerRegistry,n,c._id,c._bufferService,o),new u.SelectionRenderLayer(c._screenElement,1,c._colors,c._id,c._bufferService,o),new _.LinkRenderLayer(c._screenElement,2,c._colors,c._id,c._linkifier,c._bufferService,o),new f.CursorRenderLayer(c._screenElement,3,c._colors,c._id,c._onRequestRefreshRows,c._bufferService,o,s,a)],c.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},c._devicePixelRatio=window.devicePixelRatio,c._updateDimensions(),c.onOptionsChanged(),c}t.Renderer=c},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var c,l=i(41),o=i(13),h=i(6),_=i(3),d=i(27),u=i(5),n=(c=o.BaseRenderLayer,n(s,c),s.prototype.resize=function(e){c.prototype.resize.call(this,e);var t=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===t||(this._characterWidth=e.scaledCharWidth,this._characterFont=t,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},s.prototype.reset=function(){this._state.clear(),this._clearAll()},s.prototype._forEachCell=function(e,t,i,r){for(var n=e;n<=t;n++)for(var o=n+this._bufferService.buffer.ydisp,s=this._bufferService.buffer.lines.get(o),a=i?i.getJoinedCharacters(o):[],c=0;c<this._bufferService.cols;c++){s.loadCell(c,this._workCell);var l,h=this._workCell,u=!1,f=c;0!==h.getWidth()&&(0<a.length&&c===a[0][0]&&(u=!0,l=a.shift(),h=new d.JoinedCellData(this._workCell,s.translateToString(!0,l[0],l[1]),l[1]-l[0]),f=l[1]-1),!u&&this._isOverlapping(h)&&f<s.length-1&&s.getCodePoint(f+1)===_.NULL_CELL_CODE&&(h.content&=-12582913,h.content|=2<<22),r(h,c,n),c=f)}},s.prototype._drawBackground=function(e,t){var n=this,o=this._ctx,s=this._bufferService.cols,a=0,c=0,l=null;o.save(),this._forEachCell(e,t,null,function(e,t,i){var r=null;e.isInverse()?r=e.isFgDefault()?n._colors.foreground.css:e.isFgRGB()?"rgb("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":n._colors.ansi[e.getFgColor()].css:e.isBgRGB()?r="rgb("+h.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":e.isBgPalette()&&(r=n._colors.ansi[e.getBgColor()].css),null===l&&(a=t,c=i),i!==c?(o.fillStyle=l||"",n._fillCells(a,c,s-a,1),a=t,c=i):l!==r&&(o.fillStyle=l||"",n._fillCells(a,c,t-a,1),a=t,c=i),l=r}),null!==l&&(o.fillStyle=l,this._fillCells(a,c,s-a,1)),o.restore()},s.prototype._drawForeground=function(e,t){var n=this;this._forEachCell(e,t,this._characterJoinerRegistry,function(e,t,i){var r;!e.isInvisible()&&(n._drawChars(e,t,i),e.isUnderline())&&(n._ctx.save(),e.isInverse()?e.isBgDefault()?n._ctx.fillStyle=n._colors.background.css:e.isBgRGB()?n._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getBgColor()).join(",")+")":(r=e.getBgColor(),n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),n._ctx.fillStyle=n._colors.ansi[r].css):e.isFgDefault()?n._ctx.fillStyle=n._colors.foreground.css:e.isFgRGB()?n._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")":(r=e.getFgColor(),n._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&r<8&&(r+=8),n._ctx.fillStyle=n._colors.ansi[r].css),n._fillBottomLineAtCells(t,i,e.getWidth()),n._ctx.restore())})},s.prototype.onGridChanged=function(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;var t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;e=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=e},s);function s(e,t,i,r,n,o,s,a){o=c.call(this,e,"text",t,n,i,o,s,a)||this;return o.bufferService=s,o.optionsService=a,o._characterWidth=0,o._characterFont="",o._characterOverlapCache={},o._workCell=new u.CellData,o._state=new l.GridCache,o._characterJoinerRegistry=r,o}t.TextRenderLayer=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.resize=function(e,t){for(var i=0;i<e;i++){this.cache.length<=i&&this.cache.push([]);for(var r=this.cache[i].length;r<t;r++)this.cache[i].push(void 0);this.cache[i].length=t}this.cache.length=e},n.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=void 0},n);function n(){this.cache=[]}t.GridCache=r},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o=i(9),s=i(43),a=i(25),c=i(45),l=i(11),h=i(26),u=i(10),f={css:"rgba(0, 0, 0, 0)",rgba:0};function _(e){return e.code<<21|e.bg<<12|e.fg<<3|(e.bold?0:4)+(e.dim?0:2)+(e.italic?0:1)}t.getGlyphCacheKey=_;var d,i=(d=s.BaseCharAtlas,n(p,d),p.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},p.prototype.beginFrame=function(){this._drawToCacheCount=0},p.prototype.draw=function(e,t,i,r){if(32===t.code)return!0;if(!this._canCache(t))return!1;var n=_(t),o=this._cacheMap.get(n);if(null!=o)return this._drawFromCache(e,o,i,r),!0;if(this._drawToCacheCount<100){o=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index,o=this._drawToCache(t,o);return this._cacheMap.set(n,o),this._drawFromCache(e,o,i,r),!0}return!1},p.prototype._canCache=function(e){return e.code<256},p.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},p.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},p.prototype._drawFromCache=function(e,t,i,r){var n,o;t.isEmpty||(n=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index),e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,n,o,this._config.scaledCharWidth,this._config.scaledCharHeight,i,r,this._config.scaledCharWidth,this._config.scaledCharHeight))},p.prototype._getColorFromAnsiIndex=function(e){return(e<this._config.colors.ansi.length?this._config.colors.ansi:a.DEFAULT_ANSI_COLORS)[e]},p.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?f:e.bg===o.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},p.prototype._getForegroundColor=function(e){return e.fg===o.INVERTED_DEFAULT_COLOR?u.color.opaque(this._config.colors.background):e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},p.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var s=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=s.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var i=e.bold?this._config.fontWeightBold:this._config.fontWeight,r=e.italic?"italic":"";this._tmpCtx.font=r+" "+i+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=o.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var n=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),r=!1;this._config.allowTransparency||(r=function(e){for(var t=!0,i=s.rgba>>>24,r=s.rgba>>>16&255,n=s.rgba>>>8&255,o=0;o<e.data.length;o+=4)e.data[o]===i&&e.data[o+1]===r&&e.data[o+2]===n?e.data[o+3]=0:t=!1;return t}(n));i=this._toCoordinateX(t),e=this._toCoordinateY(t);this._cacheCtx.putImageData(n,i,e);r={index:t,isEmpty:r,inBitmap:!1};return this._addGlyphToBitmap(r),r},p.prototype._addGlyphToBitmap=function(e){var t=this;"createImageBitmap"in window&&!l.isFirefox&&!l.isSafari&&(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return t._generateBitmap()},100)))},p.prototype._generateBitmap=function(){var i=this,r=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(e){i._bitmap=e;for(var t=0;t<r.length;t++)r[t].inBitmap=!0}),this._bitmapCommitTimeout=null},p);function p(e,t){var i=d.call(this)||this;i._config=t,i._drawToCacheCount=0,i._glyphsWaitingOnBitmap=[],i._bitmapCommitTimeout=null,i._bitmap=null,i._cacheCanvas=e.createElement("canvas"),i._cacheCanvas.width=1024,i._cacheCanvas.height=1024,i._cacheCtx=h.throwIfFalsy(i._cacheCanvas.getContext("2d",{alpha:!0}));e=e.createElement("canvas");e.width=i._config.scaledCharWidth,e.height=i._config.scaledCharHeight,i._tmpCtx=h.throwIfFalsy(e.getContext("2d",{alpha:i._config.allowTransparency})),i._width=Math.floor(1024/i._config.scaledCharWidth),i._height=Math.floor(1024/i._config.scaledCharHeight);e=i._width*i._height;return i._cacheMap=new c.LRUMap(e),i._cacheMap.prealloc(e),i}t.DynamicCharAtlas=i;var v,n=(v=s.BaseCharAtlas,n(g,v),g.prototype.draw=function(e,t,i,r){return!1},g);function g(e,t){return v.call(this)||this}t.NoneCharAtlas=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){},n.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},n.prototype._doWarmUp=function(){},n.prototype.beginFrame=function(){},n);function n(){this._didWarmUp=!1}t.BaseCharAtlas=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.clear=function(){this._color={},this._rgba={}},n.prototype.setCss=function(e,t,i){this._rgba[e]||(this._rgba[e]={}),this._rgba[e][t]=i},n.prototype.getCss=function(e,t){return this._rgba[e]?this._rgba[e][t]:void 0},n.prototype.setColor=function(e,t,i){this._color[e]||(this._color[e]={}),this._color[e][t]=i},n.prototype.getColor=function(e,t){return this._color[e]?this._color[e][t]:void 0},n);function n(){this._color={},this._rgba={}}t.ColorContrastCache=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype._unlinkNode=function(e){var t=e.prev,i=e.next;e===this._head&&(this._head=i),e===this._tail&&(this._tail=t),null!==t&&(t.next=i),null!==i&&(i.prev=t)},n.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},n.prototype.prealloc=function(e){for(var t=this._nodePool,i=0;i<e;i++)t.push({prev:null,next:null,key:null,value:null})},n.prototype.get=function(e){e=this._map[e];return void 0!==e?(this._unlinkNode(e),this._appendNode(e),e.value):null},n.prototype.peekValue=function(e){e=this._map[e];return void 0!==e?e.value:null},n.prototype.peek=function(){var e=this._head;return null===e?null:e.value},n.prototype.set=function(e,t){var i,r=this._map[e];void 0!==r?(r=this._map[e],this._unlinkNode(r),r.value=t):this.size>=this.capacity?(r=this._head,this._unlinkNode(r),delete this._map[r.key],r.key=e,r.value=t,this._map[e]=r):(0<(i=this._nodePool).length?((r=i.pop()).key=e,r.value=t):r={prev:null,next:null,key:e,value:t},this._map[e]=r,this.size++),this._appendNode(r)},n);function n(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}t.LRUMap=r},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var s,n=(s=i(13).BaseRenderLayer,n(o,s),o.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},o.prototype.resize=function(e){s.prototype.resize.call(this,e),this._clearState()},o.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},o.prototype.onSelectionChanged=function(e,t,i){var r,n,o,s,a,c,l;this._didStateChange(e,t,i,this._bufferService.buffer.ydisp)&&(this._clearAll(),e&&t?(a=e[1]-this._bufferService.buffer.ydisp,l=t[1]-this._bufferService.buffer.ydisp,r=Math.max(a,0),n=Math.min(l,this._bufferService.rows-1),r>=this._bufferService.rows||n<0||(this._ctx.fillStyle=this._colors.selection.css,i?(c=e[0],o=t[0]-c,s=n-r+1,this._fillCells(c,r,o,s)):(c=a===r?e[0]:0,a=r===n?t[0]:this._bufferService.cols,this._fillCells(c,r,a-c,1),c=Math.max(n-r-1,0),this._fillCells(0,r+1,this._bufferService.cols,c),r!==n&&(l=l===n?t[0]:this._bufferService.cols,this._fillCells(0,n,l,1))),this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp)):this._clearState())},o.prototype._didStateChange=function(e,t,i,r){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||i!==this._state.columnSelectMode||r!==this._state.ydisp},o.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},o);function o(e,t,i,r,n,o){r=s.call(this,e,"selection",t,!0,i,r,n,o)||this;return r.bufferService=n,r.optionsService=o,r._clearState(),r}t.SelectionRenderLayer=n},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var l,o=i(13),h=i(5),n=(l=o.BaseRenderLayer,n(s,l),s.prototype.resize=function(e){l.prototype.resize.call(this,e),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},s.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},s.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){t._render(!0)})):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRefreshRowsEvent.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},s.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},s.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},s.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=t-this._bufferService.buffer.ydisp;if(i<0||i>=this._bufferService.rows)this._clearCursor();else if(this._bufferService.buffer.lines.get(t).loadCell(this._bufferService.buffer.x,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;t=this._optionsService.options.cursorStyle;return t&&"block"!==t?this._cursorRenderers[t](this._bufferService.buffer.x,i,this._cell):this._renderBlurCursor(this._bufferService.buffer.x,i,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=t,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===this._bufferService.buffer.x&&this._state.y===i&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](this._bufferService.buffer.x,i,this._cell),this._ctx.restore(),this._state.x=this._bufferService.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}else this._clearCursor()},s.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},s.prototype._renderBarCursor=function(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.options.cursorWidth),this._ctx.restore()},s.prototype._renderBlockCursor=function(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,i.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(i,e,t),this._ctx.restore()},s.prototype._renderUnderlineCursor=function(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},s.prototype._renderBlurCursor=function(e,t,i){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,i.getWidth(),1),this._ctx.restore()},s);function s(e,t,i,r,n,o,s,a,c){r=l.call(this,e,"cursor",t,!0,i,r,o,s)||this;return r._onRequestRefreshRowsEvent=n,r.bufferService=o,r.optionsService=s,r._coreService=a,r._coreBrowserService=c,r._cell=new h.CellData,r._state={x:0,y:0,isFocused:!1,style:"",width:0},r._cursorRenderers={bar:r._renderBarCursor.bind(r),block:r._renderBlockCursor.bind(r),underline:r._renderUnderlineCursor.bind(r)},r}t.CursorRenderLayer=n;var a=(Object.defineProperty(c.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),c.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},c.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){e._renderCallback(),e._animationFrame=void 0})))},c.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,0<e)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})},600)},e)},c.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},c.prototype.resume=function(){this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},c);function c(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var c,o=i(13),s=i(9),a=i(24),n=(c=o.BaseRenderLayer,n(l,c),l.prototype.resize=function(e){c.prototype.resize.call(this,e),this._state=void 0},l.prototype.reset=function(){this._clearCurrentLink()},l.prototype._clearCurrentLink=function(){var e;this._state&&(this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1),0<(e=this._state.y2-this._state.y1-1)&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0)},l.prototype._onLinkHover=function(e){if(e.fg===s.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&a.is256Color(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},l.prototype._onLinkLeave=function(e){this._clearCurrentLink()},l);function l(e,t,i,r,n,o,s){var a=c.call(this,e,"link",t,!0,i,r,o,s)||this;return a.bufferService=o,a.optionsService=s,n.onLinkHover(function(e){return a._onLinkHover(e)}),n.onLinkLeave(function(e){return a._onLinkLeave(e)}),a}t.LinkRenderLayer=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),i=(Object.defineProperty(r.prototype,"onLinkHover",{get:function(){return this._onLinkHover.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onLinkLeave",{get:function(){return this._onLinkLeave.event},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!0,configurable:!0}),r.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},r.prototype.linkifyRows=function(e,t){var i=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=e,this._rowsToLinkify.end=t):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,e),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,t)),this._mouseZoneManager.clearAll(e,t),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return i._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var i=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,e=Math.ceil(2e3/this._bufferService.cols),r=this._bufferService.buffer.iterator(!1,t,i,e,e);r.hasNext();)for(var n=r.next(),o=0;o<this._linkMatchers.length;o++)this._doLinkifyRow(n.range.first,n.content,this._linkMatchers[o]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(e,t,i){if(void 0===i&&(i={}),!t)throw new Error("handler must be defined");i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:i.matchIndex,validationCallback:i.validationCallback,hoverTooltipCallback:i.tooltipCallback,hoverLeaveCallback:i.leaveCallback,willLinkActivate:i.willLinkActivate,priority:i.priority||0};return this._addLinkMatcherToList(i),i.id},r.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;0<=t;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},r.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},r.prototype._doLinkifyRow=function(n,o,s){for(var a,c=this,l=new RegExp(s.regex.source,(s.regex.flags||"")+"g"),h=-1,u=this;null!==(a=l.exec(o))&&"break"!==function(){var t=a["number"!=typeof s.matchIndex?0:s.matchIndex];if(!t)return u._logService.debug("match found without corresponding matchIndex",a,s),"break";if(h=o.indexOf(t,h+1),l.lastIndex=h+t.length,h<0)return"break";var i=u._bufferService.buffer.stringIndexToBufferIndex(n,h);if(i[0]<0)return"break";var e=u._bufferService.buffer.lines.get(i[0]);if(!e)return"break";var e=e.getFg(i[1]),r=e?e>>9&511:void 0;s.validationCallback?s.validationCallback(t,function(e){c._rowsTimeoutId||e&&c._addLink(i[1],i[0]-c._bufferService.buffer.ydisp,t,s,r)}):u._addLink(i[1],i[0]-u._bufferService.buffer.ydisp,t,s,r)}(););},r.prototype._addLink=function(e,t,i,r,n){var o,s,a,c,l,h=this;this._mouseZoneManager&&this._element&&(o=this._unicodeService.getStringCellWidth(i),s=e%this._bufferService.cols,a=t+Math.floor(e/this._bufferService.cols),c=(s+o)%this._bufferService.cols,l=a+Math.floor((s+o)/this._bufferService.cols),0===c&&(c=this._bufferService.cols,l--),this._mouseZoneManager.add(new u(1+s,a+1,c+1,l+1,function(e){if(r.handler)return r.handler(e,i);e=window.open();e?(e.opener=null,e.location.href=i):console.warn("Opening link blocked as opener could not be cleared")},function(){h._onLinkHover.fire(h._createLinkHoverEvent(s,a,c,l,n)),h._element.classList.add("xterm-cursor-pointer")},function(e){h._onLinkTooltip.fire(h._createLinkHoverEvent(s,a,c,l,n)),r.hoverTooltipCallback&&r.hoverTooltipCallback(e,i,{start:{x:s,y:a},end:{x:c,y:l}})},function(){h._onLinkLeave.fire(h._createLinkHoverEvent(s,a,c,l,n)),h._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(e){return!r.willLinkActivate||r.willLinkActivate(e,i)})))},r.prototype._createLinkHoverEvent=function(e,t,i,r,n){return{x1:e,y1:t,x2:i,y2:r,cols:this._bufferService.cols,fg:n}},r._timeBeforeLatency=200,r);function r(e,t,i,r){this._bufferService=e,this._logService=t,this._optionsService=i,this._unicodeService=r,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onLinkHover=new n.EventEmitter,this._onLinkLeave=new n.EventEmitter,this._onLinkTooltip=new n.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}t.Linkifier=i;var u=function(e,t,i,r,n,o,s,a,c){this.x1=e,this.y1=t,this.x2=i,this.y2=r,this.clickCallback=n,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=c};t.MouseZone=u},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var c=i(11),l=i(51),h=i(5),u=i(1),o=i(4),s=i(0),a=i(28),f=i(52),i=String.fromCharCode(160),_=new RegExp(i,"g"),s=(Object.defineProperty(d.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onRedrawRequest",{get:function(){return this._onRedrawRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!0,configurable:!0}),d.prototype.dispose=function(){this._removeMouseDownListeners()},d.prototype.reset=function(){this.clearSelection()},d.prototype.disable=function(){this.clearSelection(),this._enabled=!1},d.prototype.enable=function(){this._enabled=!0},Object.defineProperty(d.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var i=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var n=e[1];n<=t[1];n++){var o=i.translateBufferLineToString(n,!0,e[0],t[0]);r.push(o)}}else{var s=e[1]===t[1]?t[0]:void 0;for(r.push(i.translateBufferLineToString(e[1],!0,e[0],s)),n=e[1]+1;n<=t[1]-1;n++){var a=i.lines.get(n),o=i.translateBufferLineToString(n,!0);a&&a.isWrapped?r[r.length-1]+=o:r.push(o)}e[1]!==t[1]&&(a=i.lines.get(t[1]),o=i.translateBufferLineToString(t[1],!0,0,t[0]),a&&a.isWrapped?r[r.length-1]+=o:r.push(o))}return r.map(function(e){return e.replace(_," ")}).join(c.isWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),d.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},d.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),c.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},d.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},d.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,e=this._model.finalSelectionEnd;return!!(i&&e&&t)&&this._areCoordsInSelection(t,i,e)},d.prototype._areCoordsInSelection=function(e,t,i){return e[1]>t[1]&&e[1]<i[1]||t[1]===i[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<i[0]||t[1]<i[1]&&e[1]===i[1]&&e[0]<i[0]||t[1]<i[1]&&e[1]===t[1]&&e[0]>=t[0]},d.prototype.selectWordAtCursor=function(e){e=this._getMouseBufferCoords(e);e&&(this._selectWordAt(e,!1),this._model.selectionEnd=void 0,this.refresh(!0))},d.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},d.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},d.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},d.prototype._getMouseBufferCoords=function(e){e=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(e)return e[0]--,e[1]--,e[1]+=this._bufferService.buffer.ydisp,e},d.prototype._getMouseEventScrollAmount=function(e){var t=a.getCoordsRelativeToElement(e,this._screenElement)[1],e=this._bufferService.rows*Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight);return 0<=t&&t<=e?0:(e<t&&(t-=e),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},d.prototype.shouldForceSelection=function(e){return c.isMac?e.altKey&&this._optionsService.options.macOptionClickForcesSelection:e.shiftKey},d.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},d.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return e._dragScroll()},50)},d.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},d.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},d.prototype._onSingleClick=function(e){this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart&&(this._model.selectionEnd=void 0,(e=this._bufferService.buffer.lines.get(this._model.selectionStart[1]))&&e.length!==this._model.selectionStart[0]&&0===e.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++)},d.prototype._onDoubleClick=function(e){e=this._getMouseBufferCoords(e);e&&(this._activeSelectionMode=1,this._selectWordAt(e,!0))},d.prototype._onTripleClick=function(e){e=this._getMouseBufferCoords(e);e&&(this._activeSelectionMode=2,this._selectLineAt(e[1]))},d.prototype.shouldColumnSelect=function(e){return e.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},d.prototype._onMouseMove=function(e){var t;e.stopImmediatePropagation(),this._model.selectionStart&&(t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null,this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd?(2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(0<this._dragScrollAmount?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0)),e=this._bufferService.buffer,this._model.selectionEnd[1]<e.lines.length&&((e=e.lines.get(this._model.selectionEnd[1]))&&0===e.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++),t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)):this.refresh(!0))},d.prototype._dragScroll=function(){var e;this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount&&(this._scrollLines(this._dragScrollAmount,!1),e=this._bufferService.buffer,0<this._dragScrollAmount?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh())},d.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500?!e.altKey||this._bufferService.buffer.ybase!==this._bufferService.buffer.ydisp||(e=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1))&&void 0!==e[0]&&void 0!==e[1]&&(e=f.moveToCellSequence(e[0]-1,e[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys),this._coreService.triggerDataEvent(e,!0)):this.hasSelection&&this._onSelectionChange.fire()},d.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(function(e){return t._onTrim(e)})},d.prototype._convertViewportColToCharacterIndex=function(e,t){for(var i=t[0],r=0;t[0]>=r;r++){var n=e.loadCell(r,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:1<n&&t[0]!==r&&(i+=n-1)}return i},d.prototype.setSelection=function(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh()},d.prototype._getWordAt=function(e,t,i,r){if(void 0===i&&(i=!0),void 0===r&&(r=!0),!(e[0]>=this._bufferService.cols)){var n=this._bufferService.buffer,o=n.lines.get(e[1]);if(o){var s=n.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(o,e),c=a,l=e[0]-a,h=0,u=0,f=0,_=0;if(" "===s.charAt(a)){for(;0<a&&" "===s.charAt(a-1);)a--;for(;c<s.length&&" "===s.charAt(c+1);)c++}else{var d=e[0],p=e[0];0===o.getWidth(d)&&(h++,d--),2===o.getWidth(p)&&(u++,p++);var v=o.getString(p).length;for(1<v&&(_+=v-1,c+=v-1);0<d&&0<a&&!this._isCharWordSeparator(o.loadCell(d-1,this._workCell));){o.loadCell(d-1,this._workCell);var g=this._workCell.getChars().length;0===this._workCell.getWidth()?(h++,d--):1<g&&(f+=g-1,a-=g-1),a--,d--}for(;p<o.length&&c+1<s.length&&!this._isCharWordSeparator(o.loadCell(p+1,this._workCell));){o.loadCell(p+1,this._workCell);var y=this._workCell.getChars().length;2===this._workCell.getWidth()?(u++,p++):1<y&&(_+=y-1,c+=y-1),c++,p++}}c++;v=a+l-h+f,l=Math.min(this._bufferService.cols,c-a+h+u-f-_);if(t||""!==s.slice(a,c).trim())return!i||0!==v||32===o.getCodePoint(0)||(i=n.lines.get(e[1]-1))&&o.isWrapped&&32!==i.getCodePoint(this._bufferService.cols-1)&&((i=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1))&&(v-=i=this._bufferService.cols-i.start,l+=i)),!r||v+l!==this._bufferService.cols||32===o.getCodePoint(this._bufferService.cols-1)||(n=n.lines.get(e[1]+1))&&n.isWrapped&&32!==n.getCodePoint(0)&&((e=this._getWordAt([0,e[1]+1],!1,!1,!0))&&(l+=e.length)),{start:v,length:l}}}},d.prototype._selectWordAt=function(e,t){var i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}},d.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var i=e[1];t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}},d.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&0<=this._optionsService.options.wordSeparator.indexOf(e.getChars())},d.prototype._selectLineAt=function(e){e=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,e.first],this._model.selectionEnd=[this._bufferService.cols,e.last],this._model.selectionStartLength=0},r([n(3,o.ICharSizeService),n(4,s.IBufferService),n(5,s.ICoreService),n(6,o.IMouseService),n(7,s.IOptionsService)],d));function d(e,t,i,r,n,o,s,a){var c=this;this._scrollLines=e,this._element=t,this._screenElement=i,this._charSizeService=r,this._bufferService=n,this._coreService=o,this._mouseService=s,this._optionsService=a,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new h.CellData,this._mouseDownTimeStamp=0,this._onLinuxMouseSelection=new u.EventEmitter,this._onRedrawRequest=new u.EventEmitter,this._onSelectionChange=new u.EventEmitter,this._mouseMoveListener=function(e){return c._onMouseMove(e)},this._mouseUpListener=function(e){return c._onMouseUp(e)},this._coreService.onUserInput(function(){c.hasSelection&&c.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(function(e){return c._onTrim(e)}),this._bufferService.buffers.onBufferActivate(function(e){return c._onBufferActivate(e)}),this.enable(),this._model=new l.SelectionModel(this._bufferService),this._activeSelectionMode=0}t.SelectionService=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(n.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(this.selectionEnd&&!this.areSelectionValuesReversed())return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd;var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}},enumerable:!0,configurable:!0}),n.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},n.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},n);function n(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}t.SelectionModel=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(12);function y(e,t,i,r){var n=e-b(i,e),o=t-b(i,t);return C(Math.abs(n-o)-function(e,t,i){for(var r=0,n=e-b(i,e),o=t-b(i,t),s=0;s<Math.abs(n-o);s++){var a="A"===c(e,t)?-1:1,a=i.buffer.lines.get(n+a*s);a&&a.isWrapped&&r++}return r}(e,t,i),S(c(e,t),r))}function b(e,t){for(var i=0,r=e.buffer.lines.get(t),n=r&&r.isWrapped;n&&0<=t&&t<e.rows;)i++,n=(r=e.buffer.lines.get(--t))&&r.isWrapped;return i}function c(e,t){return t<e?"A":"B"}function m(e,t,i,r,n,o){for(var s=e,a=t,c="";s!==i||a!==r;)s+=n?1:-1,n&&s>o.cols-1?(c+=o.buffer.translateBufferLineToString(a,!1,e,s),e=s=0,a++):!n&&s<0&&(c+=o.buffer.translateBufferLineToString(a,!1,0,e+1),e=s=o.cols-1,a--);return c+o.buffer.translateBufferLineToString(a,!1,e,s)}function S(e,t){t=t?"O":"[";return r.C0.ESC+t+e}function C(e,t){e=Math.floor(e);for(var i="",r=0;r<e;r++)i+=t;return i}t.moveToCellSequence=function(e,t,i,r){var n,o,s,a,c,l,h,u,f,_=i.buffer.x,d=i.buffer.y;if(!i.buffer.hasScrollback)return l=_,(0===y(h=d,t,u=i,f=r).length?"":C(m(l,h,l,h-b(u,h),!1,u).length,S("D",f)))+y(d,t,i,r)+(n=_,o=e,c=0<y(g=d,s=t,a=i,p=r).length?s-b(a,s):g,l=n,h=g,h=0<y(u=o,g=f=s,s=a,p).length?g-b(s,g):h,C(m(n,c,o,f,"C"==(g=l<u&&h<=g||u<=l&&h<g?"C":"D"),a).length,S(g,p)));if(d===t)return v=e<_?"D":"C",C(Math.abs(_-e),S(v,r));var p,v=t<d?"D":"C",g=Math.abs(d-t);return C((p=t<d?e:_,i.cols-p+(g-1)*i.cols+1+((t<d?_:e)-1)),S(v,r))}},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});i=i(0),Object.defineProperty(o,"audioContext",{get:function(){if(!o._audioContext){var e=window.AudioContext||window.webkitAudioContext;if(!e)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;o._audioContext=new e}return o._audioContext},enumerable:!0,configurable:!0}),o.prototype.playBellSound=function(){var t,i=o.audioContext;i&&(t=i.createBufferSource(),i.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(e){t.buffer=e,t.connect(i.destination),t.start(0)}))},o.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),i=t.length,r=new Uint8Array(i),n=0;n<i;n++)r[n]=t.charCodeAt(n);return r.buffer},o.prototype._removeMimeType=function(e){return e.split(",")[1]},i=o=r([n(0,i.IOptionsService)],o);function o(e){this._optionsService=e}t.SoundService=i},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var a,c=i(2),l=i(8),h=i(4),i=i(0),h=(a=c.Disposable,n(u,a),u.prototype.dispose=function(){a.prototype.dispose.call(this),this._deactivate()},u.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},u.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var i=0;i<this._zones.length;i++){var r=this._zones[i];(r.y1>e&&r.y1<=t+1||r.y2>e&&r.y2<=t+1||r.y1<e&&r.y2>t+1)&&(this._currentZone&&this._currentZone===r&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}0===this._zones.length&&this._deactivate()}},u.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},u.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},u.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},u.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&((this._currentZone=i).hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},u.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},u.prototype._onMouseDown=function(e){var t;this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive&&null!==(t=this._findZoneEventAt(e))&&void 0!==t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())},u.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},u.prototype._onClick=function(e){var t=this._findZoneEventAt(e),i=this._getSelectionLength();t&&i===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},u.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},u.prototype._findZoneEventAt=function(e){e=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(e)for(var t=e[0],i=e[1],r=0;r<this._zones.length;r++){var n=this._zones[r];if(n.y1===n.y2){if(i===n.y1&&t>=n.x1&&t<n.x2)return n}else if(i===n.y1&&t>=n.x1||i===n.y2&&t<n.x2||i>n.y1&&i<n.y2)return n}},o([s(2,i.IBufferService),s(3,h.IMouseService),s(4,h.ISelectionService)],u));function u(e,t,i,r,n){var o=a.call(this)||this;return o._element=e,o._screenElement=t,o._bufferService=i,o._mouseService=r,o._selectionService=n,o._zones=[],o._areZonesActive=!1,o._lastHoverCoords=[void 0,void 0],o._initialSelectionLength=0,o.register(l.addDisposableDomListener(o._element,"mousedown",function(e){return o._onMouseDown(e)})),o._mouseMoveListener=function(e){return o._onMouseMove(e)},o._mouseLeaveListener=function(e){return o._onMouseLeave(e)},o._clickListener=function(e){return o._onClick(e)},o}t.MouseZoneManager=h},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(17),a=i(11),c=i(29),l=i(8),h=i(2),u=i(30),n=(o=h.Disposable,n(f,o),f.prototype.dispose=function(){o.prototype.dispose.call(this),this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},f.prototype._onBoundaryFocus=function(e,t){var i,r,n,o=e.target,s=this._rowElements[0===t?1:this._rowElements.length-2];o.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===s&&(0===t?(i=o,r=this._rowElements.pop(),this._rowContainer.removeChild(r)):(i=this._rowElements.shift(),r=o,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),r.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t?(n=this._createAccessibilityTreeNode(),this._rowElements.unshift(n),this._rowContainer.insertAdjacentElement("afterbegin",n)):(n=this._createAccessibilityTreeNode(),this._rowElements.push(n),this._rowContainer.appendChild(n)),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation())},f.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},f.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},f.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},f.prototype._onChar=function(e){var t=this;this._liveRegionLineCount<21&&(0<this._charsToConsume.length&&this._charsToConsume.shift()===e||(this._charsToAnnounce+=e),"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=s.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&0<this._liveRegion.textContent.length&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0))},f.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},f.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},f.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},f.prototype._renderRows=function(e,t){for(var i=this._terminal.buffer,r=i.lines.length.toString(),n=e;n<=t;n++){var o=i.translateBufferLineToString(i.ydisp+n,!0),s=(i.ydisp+n+1).toString(),a=this._rowElements[n];a&&(0===o.length?a.innerHTML="&nbsp;":a.textContent=o,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",r))}this._announceCharacters()},f.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},f.prototype._refreshRowDimensions=function(e){e.style.height=this._renderService.dimensions.actualCellHeight+"px"},f.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},f);function f(e,t){var i=o.call(this)||this;i._terminal=e,i._renderService=t,i._liveRegionLineCount=0,i._charsToConsume=[],i._charsToAnnounce="",i._accessibilityTreeRoot=document.createElement("div"),i._accessibilityTreeRoot.classList.add("xterm-accessibility"),i._rowContainer=document.createElement("div"),i._rowContainer.classList.add("xterm-accessibility-tree"),i._rowElements=[];for(var r=0;r<i._terminal.rows;r++)i._rowElements[r]=i._createAccessibilityTreeNode(),i._rowContainer.appendChild(i._rowElements[r]);return i._topBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,0)},i._bottomBoundaryFocusListener=function(e){return i._onBoundaryFocus(e,1)},i._rowElements[0].addEventListener("focus",i._topBoundaryFocusListener),i._rowElements[i._rowElements.length-1].addEventListener("focus",i._bottomBoundaryFocusListener),i._refreshRowsDimensions(),i._accessibilityTreeRoot.appendChild(i._rowContainer),i._renderRowsDebouncer=new c.RenderDebouncer(i._renderRows.bind(i)),i._refreshRows(),i._liveRegion=document.createElement("div"),i._liveRegion.classList.add("live-region"),i._liveRegion.setAttribute("aria-live","assertive"),i._accessibilityTreeRoot.appendChild(i._liveRegion),i._terminal.element.insertAdjacentElement("afterbegin",i._accessibilityTreeRoot),i.register(i._renderRowsDebouncer),i.register(i._terminal.onResize(function(e){return i._onResize(e.rows)})),i.register(i._terminal.onRender(function(e){return i._refreshRows(e.start,e.end)})),i.register(i._terminal.onScroll(function(){return i._refreshRows()})),i.register(i._terminal.onA11yChar(function(e){return i._onChar(e)})),i.register(i._terminal.onLineFeed(function(){return i._onChar("\n")})),i.register(i._terminal.onA11yTab(function(e){return i._onTab(e)})),i.register(i._terminal.onKey(function(e){return i._onKey(e.key)})),i.register(i._terminal.onBlur(function(){return i._clearLiveRegion()})),i.register(i._renderService.onDimensionsChange(function(){return i._refreshRowsDimensions()})),i._screenDprMonitor=new u.ScreenDprMonitor,i.register(i._screenDprMonitor),i._screenDprMonitor.setListener(function(){return i._refreshRowsDimensions()}),i.register(l.addDisposableDomListener(window,"resize",function(){return i._refreshRowsDimensions()})),i}t.AccessibilityManager=n},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var l,h=i(57),a=i(9),c=i(2),u=i(4),f=i(0),_=i(1),d=i(10),p="xterm-dom-renderer-owner-",v="xterm-rows",g="xterm-selection",y=1,f=(l=c.Disposable,n(b,l),Object.defineProperty(b.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!0,configurable:!0}),b.prototype.dispose=function(){this._element.classList.remove(p+this._terminalClass),this._screenElement.removeChild(this._rowContainer),this._screenElement.removeChild(this._selectionContainer),this._screenElement.removeChild(this._themeStyleElement),this._screenElement.removeChild(this._dimensionsStyleElement),l.prototype.dispose.call(this)},b.prototype._updateDimensions=function(){var t=this;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this._rowElements.forEach(function(e){e.style.width=t.dimensions.canvasWidth+"px",e.style.height=t.dimensions.actualCellHeight+"px",e.style.lineHeight=t.dimensions.actualCellHeight+"px",e.style.overflow="hidden"}),this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var e=this._terminalSelector+" ."+v+" span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=e,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.setColors=function(e){this._colors=e,this._injectCss()},b.prototype._injectCss=function(){var i=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var r=this._terminalSelector+" ."+v+" { color: "+this._colors.foreground.css+"; background-color: "+this._colors.background.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";r+=this._terminalSelector+" span:not(."+h.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+h.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+h.ITALIC_CLASS+" { font-style: italic;}",r+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",r+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",r+=this._terminalSelector+" ."+v+":not(.xterm-focus) ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" ."+v+".xterm-focus ."+h.CURSOR_CLASS+"."+h.CURSOR_BLINK_CLASS+":not(."+h.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" ."+v+".xterm-focus ."+h.CURSOR_CLASS+"."+h.CURSOR_BLINK_CLASS+"."+h.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" ."+v+".xterm-focus ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" ."+v+" ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" ."+v+" ."+h.CURSOR_CLASS+"."+h.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",r+=this._terminalSelector+" ."+g+" { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" ."+g+" div { position: absolute; background-color: "+this._colors.selection.css+";}",this._colors.ansi.forEach(function(e,t){r+=i._terminalSelector+" .xterm-fg-"+t+" { color: "+e.css+"; }"+i._terminalSelector+" .xterm-bg-"+t+" { background-color: "+e.css+"; }"}),r+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+d.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=r},b.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},b.prototype._refreshRowElements=function(e,t){for(var i=this._rowElements.length;i<=t;i++){var r=document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},b.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},b.prototype.onCharSizeChanged=function(){this._updateDimensions()},b.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},b.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},b.prototype.onSelectionChanged=function(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);var r,n,o,s,a;e&&t&&(a=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(a,0),o=Math.min(r,this._bufferService.rows-1),n>=this._bufferService.rows||o<0||(s=document.createDocumentFragment(),i?s.appendChild(this._createSelectionElement(n,e[0],t[0],o-n+1)):(a=a===n?e[0]:0,e=n===o?t[0]:this._bufferService.cols,s.appendChild(this._createSelectionElement(n,a,e)),e=o-n-1,s.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,e)),n!==o&&(t=r===o?t[0]:this._bufferService.cols,s.appendChild(this._createSelectionElement(o,0,t)))),this._selectionContainer.appendChild(s)))},b.prototype._createSelectionElement=function(e,t,i,r){void 0===r&&(r=1);var n=document.createElement("div");return n.style.height=r*this.dimensions.actualCellHeight+"px",n.style.top=e*this.dimensions.actualCellHeight+"px",n.style.left=t*this.dimensions.actualCellWidth+"px",n.style.width=this.dimensions.actualCellWidth*(i-t)+"px",n},b.prototype.onCursorMove=function(){},b.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},b.prototype.clear=function(){this._rowElements.forEach(function(e){return e.innerHTML=""})},b.prototype.renderRows=function(e,t){for(var i=this._bufferService.buffer.ybase+this._bufferService.buffer.y,r=this._bufferService.buffer.x,n=this._optionsService.options.cursorBlink,o=e;o<=t;o++){var s=this._rowElements[o];s.innerHTML="";var a=o+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(a),l=this._optionsService.options.cursorStyle;s.appendChild(this._rowFactory.createRow(c,a===i,l,r,n,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(b.prototype,"_terminalSelector",{get:function(){return"."+p+this._terminalClass},enumerable:!0,configurable:!0}),b.prototype.registerCharacterJoiner=function(e){return-1},b.prototype.deregisterCharacterJoiner=function(e){return!1},b.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},b.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},b.prototype._setCellUnderline=function(e,t,i,r,n,o){for(;e!==t||i!==r;){var s=this._rowElements[i];if(!s)return;s=s.children[e];s&&(s.style.textDecoration=o?"underline":"none"),++e>=n&&(e=0,i++)}},o([s(5,u.ICharSizeService),s(6,f.IOptionsService),s(7,f.IBufferService)],b));function b(e,t,i,r,n,o,s,a){var c=l.call(this)||this;return c._colors=e,c._element=t,c._screenElement=i,c._viewportElement=r,c._linkifier=n,c._charSizeService=o,c._optionsService=s,c._bufferService=a,c._terminalClass=y++,c._rowElements=[],c._onRequestRefreshRows=new _.EventEmitter,c._rowContainer=document.createElement("div"),c._rowContainer.classList.add(v),c._rowContainer.style.lineHeight="normal",c._rowContainer.setAttribute("aria-hidden","true"),c._refreshRowElements(c._bufferService.cols,c._bufferService.rows),c._selectionContainer=document.createElement("div"),c._selectionContainer.classList.add(g),c._selectionContainer.setAttribute("aria-hidden","true"),c.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},c._updateDimensions(),c._injectCss(),c._rowFactory=new h.DomRendererRowFactory(document,c._optionsService,c._colors),c._element.classList.add(p+c._terminalClass),c._screenElement.appendChild(c._rowContainer),c._screenElement.appendChild(c._selectionContainer),c._linkifier.onLinkHover(function(e){return c._onLinkHover(e)}),c._linkifier.onLinkLeave(function(e){return c._onLinkLeave(e)}),c}t.DomRenderer=f},function(e,y,t){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var b=t(9),m=t(3),r=t(5),S=t(10);y.BOLD_CLASS="xterm-bold",y.DIM_CLASS="xterm-dim",y.ITALIC_CLASS="xterm-italic",y.UNDERLINE_CLASS="xterm-underline",y.CURSOR_CLASS="xterm-cursor",y.CURSOR_BLINK_CLASS="xterm-cursor-blink",y.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",y.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",y.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";i.prototype.setColors=function(e){this._colors=e},i.prototype.createRow=function(e,t,i,r,n,o,s){for(var a=this._document.createDocumentFragment(),c=0,l=Math.min(e.length,s)-1;0<=l;l--)if(e.loadCell(l,this._workCell).getCode()!==m.NULL_CELL_CODE||t&&l===r){c=l+1;break}for(l=0;l<c;l++){e.loadCell(l,this._workCell);var h=this._workCell.getWidth();if(0!==h){var u=this._document.createElement("span");if(1<h&&(u.style.width=o*h+"px"),t&&l===r)switch(u.classList.add(y.CURSOR_CLASS),n&&u.classList.add(y.CURSOR_BLINK_CLASS),i){case"bar":u.classList.add(y.CURSOR_STYLE_BAR_CLASS);break;case"underline":u.classList.add(y.CURSOR_STYLE_UNDERLINE_CLASS);break;default:u.classList.add(y.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&u.classList.add(y.BOLD_CLASS),this._workCell.isItalic()&&u.classList.add(y.ITALIC_CLASS),this._workCell.isDim()&&u.classList.add(y.DIM_CLASS),this._workCell.isUnderline()&&u.classList.add(y.UNDERLINE_CLASS),this._workCell.isInvisible()?u.textContent=m.WHITESPACE_CELL_CHAR:u.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var f=this._workCell.getFgColor(),_=this._workCell.getFgColorMode(),d=this._workCell.getBgColor(),p=this._workCell.getBgColorMode(),v=!!this._workCell.isInverse();switch(v&&(h=f,f=d,d=h,h=_,_=p,p=h),_){case 16777216:case 33554432:this._workCell.isBold()&&f<8&&this._optionsService.options.drawBoldTextInBrightColors&&(f+=8),this._applyMinimumContrast(u,this._colors.background,this._colors.ansi[f])||u.classList.add("xterm-fg-"+f);break;case 50331648:var g=S.rgba.toColor(f>>16&255,f>>8&255,255&f);this._applyMinimumContrast(u,this._colors.background,g)||this._addStyle(u,"color:#"+C(f.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(u,this._colors.background,this._colors.foreground)||v&&u.classList.add("xterm-fg-"+b.INVERTED_DEFAULT_COLOR)}switch(p){case 16777216:case 33554432:u.classList.add("xterm-bg-"+d);break;case 50331648:this._addStyle(u,"background-color:#"+C(d.toString(16),"0",6));break;case 0:default:v&&u.classList.add("xterm-bg-"+b.INVERTED_DEFAULT_COLOR)}a.appendChild(u)}}return a},i.prototype._applyMinimumContrast=function(e,t,i){if(1===this._optionsService.options.minimumContrastRatio)return!1;var r=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===r&&(r=S.color.ensureContrastRatio(t,i,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=r?r:null)),!!r&&(this._addStyle(e,"color:"+r.css),!0)},i.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},t=i;function i(e,t,i){this._document=e,this._optionsService=t,this._colors=i,this._workCell=new r.CellData}function C(e,t,i){for(;e.length<i;)e=t+e;return e}y.DomRendererRowFactory=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(12),c={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,r){var n,o={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?a.C0.ESC+"OA":a.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?a.C0.ESC+"OD":a.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?a.C0.ESC+"OC":a.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?a.C0.ESC+"OB":a.C0.ESC+"[B");break;case 8:if(e.shiftKey){o.key=a.C0.BS;break}if(e.altKey){o.key=a.C0.ESC+a.C0.DEL;break}o.key=a.C0.DEL;break;case 9:if(e.shiftKey){o.key=a.C0.ESC+"[Z";break}o.key=a.C0.HT,o.cancel=!0;break;case 13:o.key=a.C0.CR,o.cancel=!0;break;case 27:o.key=a.C0.ESC,o.cancel=!0;break;case 37:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"D",o.key===a.C0.ESC+"[1;3D"&&(o.key=a.C0.ESC+(i?"b":"[1;5D"))):o.key=t?a.C0.ESC+"OD":a.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"C",o.key===a.C0.ESC+"[1;3C"&&(o.key=a.C0.ESC+(i?"f":"[1;5C"))):o.key=t?a.C0.ESC+"OC":a.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"A",i||o.key!==a.C0.ESC+"[1;3A"||(o.key=a.C0.ESC+"[1;5A")):o.key=t?a.C0.ESC+"OA":a.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(o.key=a.C0.ESC+"[1;"+(1+s)+"B",i||o.key!==a.C0.ESC+"[1;3B"||(o.key=a.C0.ESC+"[1;5B")):o.key=t?a.C0.ESC+"OB":a.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=a.C0.ESC+"[2~");break;case 46:o.key=s?a.C0.ESC+"[3;"+(1+s)+"~":a.C0.ESC+"[3~";break;case 36:o.key=s?a.C0.ESC+"[1;"+(1+s)+"H":t?a.C0.ESC+"OH":a.C0.ESC+"[H";break;case 35:o.key=s?a.C0.ESC+"[1;"+(1+s)+"F":t?a.C0.ESC+"OF":a.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:o.key=a.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:o.key=a.C0.ESC+"[6~";break;case 112:o.key=s?a.C0.ESC+"[1;"+(1+s)+"P":a.C0.ESC+"OP";break;case 113:o.key=s?a.C0.ESC+"[1;"+(1+s)+"Q":a.C0.ESC+"OQ";break;case 114:o.key=s?a.C0.ESC+"[1;"+(1+s)+"R":a.C0.ESC+"OR";break;case 115:o.key=s?a.C0.ESC+"[1;"+(1+s)+"S":a.C0.ESC+"OS";break;case 116:o.key=s?a.C0.ESC+"[15;"+(1+s)+"~":a.C0.ESC+"[15~";break;case 117:o.key=s?a.C0.ESC+"[17;"+(1+s)+"~":a.C0.ESC+"[17~";break;case 118:o.key=s?a.C0.ESC+"[18;"+(1+s)+"~":a.C0.ESC+"[18~";break;case 119:o.key=s?a.C0.ESC+"[19;"+(1+s)+"~":a.C0.ESC+"[19~";break;case 120:o.key=s?a.C0.ESC+"[20;"+(1+s)+"~":a.C0.ESC+"[20~";break;case 121:o.key=s?a.C0.ESC+"[21;"+(1+s)+"~":a.C0.ESC+"[21~";break;case 122:o.key=s?a.C0.ESC+"[23;"+(1+s)+"~":a.C0.ESC+"[23~";break;case 123:o.key=s?a.C0.ESC+"[24;"+(1+s)+"~":a.C0.ESC+"[24~";break;default:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?i&&!r||!e.altKey||e.metaKey?i&&!e.altKey&&!e.ctrlKey&&e.metaKey?65===e.keyCode&&(o.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&48<=e.keyCode&&1===e.key.length?o.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(o.key=a.C0.US):(n=(n=c[e.keyCode])&&n[e.shiftKey?1:0])?o.key=a.C0.ESC+n:65<=e.keyCode&&e.keyCode<=90&&(n=e.ctrlKey?e.keyCode-64:e.keyCode+32,o.key=a.C0.ESC+String.fromCharCode(n)):65<=e.keyCode&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=a.C0.NUL:51<=e.keyCode&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=a.C0.DEL:219===e.keyCode?o.key=a.C0.ESC:220===e.keyCode?o.key=a.C0.FS:221===e.keyCode&&(o.key=a.C0.GS)}return o}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(3);t.updateWindowsModeWrappedState=function(e){var t=null===(t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))||void 0===t?void 0:t.get(e.cols-1),e=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);e&&t&&(e.isWrapped=t[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&t[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},s=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var a,c=i(29),l=i(1),h=i(2),u=i(30),f=i(8),_=i(0),i=i(4),i=(a=h.Disposable,n(d,a),Object.defineProperty(d.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!0,configurable:!0}),d.prototype._onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},d.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t,this._rowCount)},d.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._onRender.fire({start:e,end:t})},d.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},d.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},d.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},d.prototype.dispose=function(){this._renderer.dispose(),a.prototype.dispose.call(this)},d.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRefreshRows(function(e){return t.refreshRows(e.start,e.end)}),this.refreshRows(0,this._rowCount-1)},d.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},d.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},d.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},d.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},d.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},d.prototype.onBlur=function(){this._renderer.onBlur()},d.prototype.onFocus=function(){this._renderer.onFocus()},d.prototype.onSelectionChanged=function(e,t,i){this._renderer.onSelectionChanged(e,t,i)},d.prototype.onCursorMove=function(){this._renderer.onCursorMove()},d.prototype.clear=function(){this._renderer.clear()},d.prototype.registerCharacterJoiner=function(e){return this._renderer.registerCharacterJoiner(e)},d.prototype.deregisterCharacterJoiner=function(e){return this._renderer.deregisterCharacterJoiner(e)},o([s(3,_.IOptionsService),s(4,i.ICharSizeService)],d));function d(e,t,i,r,n){var o,s=a.call(this)||this;return s._renderer=e,s._rowCount=t,s.screenElement=i,s.optionsService=r,s.charSizeService=n,s._isPaused=!1,s._needsFullRefresh=!1,s._canvasWidth=0,s._canvasHeight=0,s._onDimensionsChange=new l.EventEmitter,s._onRender=new l.EventEmitter,s._onRefreshRequest=new l.EventEmitter,s._renderDebouncer=new c.RenderDebouncer(function(e,t){return s._renderRows(e,t)}),s.register(s._renderDebouncer),s._screenDprMonitor=new u.ScreenDprMonitor,s._screenDprMonitor.setListener(function(){return s.onDevicePixelRatioChange()}),s.register(s._screenDprMonitor),s.register(r.onOptionChange(function(){return s._renderer.onOptionsChanged()})),s.register(n.onCharSizeChange(function(){return s.onCharSizeChanged()})),s._renderer.onRequestRefreshRows(function(e){return s.refreshRows(e.start,e.end)}),s.register(f.addDisposableDomListener(window,"resize",function(){return s.onDevicePixelRatioChange()})),"IntersectionObserver"in window&&((o=new IntersectionObserver(function(e){return s._onIntersectionChange(e[e.length-1])},{threshold:0})).observe(i),s.register({dispose:function(){return o.disconnect()}})),s}t.RenderService=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),i=t(11),s=t(31);n.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",n.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:n.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:i.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var r=["cols","rows"],i=(Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!0,configurable:!0}),a.prototype.setOption=function(e,t){if(!(e in n.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');if(-1!==r.indexOf(e))throw new Error('Option "'+e+'" can only be set in the constructor');this.options[e]!==t&&(t=this._sanitizeAndValidateOption(e,t),this.options[e]!==t&&(this.options[e]=t,this._onOptionChange.fire(e)))},a.prototype._sanitizeAndValidateOption=function(e,t){switch(e){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t=t||n.DEFAULT_OPTIONS[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(e+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(e+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(e+" cannot be less than or equal to 0, value: "+t)}return t},a.prototype.getOption=function(e){if(!(e in n.DEFAULT_OPTIONS))throw new Error('No option with key "'+e+'"');return this.options[e]},a);function a(i){var r=this;this._onOptionChange=new o.EventEmitter,this.options=s.clone(n.DEFAULT_OPTIONS),Object.keys(i).forEach(function(e){var t;e in r.options&&(t=i[e],r.options[e]=t)})}n.OptionsService=i},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(1),o=(Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return 0<this.width&&0<this.height},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!0,configurable:!0}),a.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},r([n(2,o.IOptionsService)],a));function a(e,t,i){this.document=e,this.parentElement=t,this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=new s.EventEmitter,this._measureStrategy=new c(e,t,this._optionsService)}t.CharSizeService=o;var c=(l.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},l);function l(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(64);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;Object.defineProperty(a.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),a.prototype.resize=function(e,t){this.cols=e,this.rows=t},a.prototype.reset=function(){this.buffers=new s.BufferSet(this._optionsService,this)},o=r([n(0,o.IOptionsService)],a);function a(e){this._optionsService=e,this.cols=Math.max(e.options.cols,t.MINIMUM_COLS),this.rows=Math.max(e.options.rows,t.MINIMUM_ROWS),this.buffers=new s.BufferSet(e,this)}t.BufferService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(65),n=i(1),i=(Object.defineProperty(o.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),o.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},o.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},o.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},o.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},o);function o(e,t){this.optionsService=e,this.bufferService=t,this._onBufferActivate=new n.EventEmitter,this._normal=new r.Buffer(!0,e,t),this._normal.fillViewportRows(),this._alt=new r.Buffer(!1,e,t),this._activeBuffer=this._normal,this.setupTabStops()}t.BufferSet=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(66),D=i(16),n=i(5),s=i(3),T=i(67),o=i(68),a=i(18);t.MAX_BUFFER_SIZE=4294967295;c.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg):(this._nullCell.fg=0,this._nullCell.bg=0),this._nullCell},c.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0),this._whitespaceCell},c.prototype.getBlankLine=function(e,t){return new D.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(c.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return 0<=e&&e<this._rows},enumerable:!0,configurable:!0}),c.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;e+=this._optionsService.options.scrollback;return e>t.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:e},c.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=D.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},c.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},c.prototype.resize=function(e,t){var i=this.getNullCell(D.DEFAULT_ATTR_DATA),r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),0<this.lines.length){if(this._cols<e)for(var n=0;n<this.lines.length;n++)this.lines.get(n).resize(e,i);var o,s=0;if(this._rows<t)for(var a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(!this._optionsService.options.windowsMode&&0<this.ybase&&this.lines.length<=this.ybase+this.y+s+1?(this.ybase--,s++,0<this.ydisp&&this.ydisp--):this.lines.push(new D.BufferLine(e,i)));else for(a=this._rows;t<a;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));r<this.lines.maxLength&&(0<(o=this.lines.length-r)&&(this.lines.trimStart(o),this.ybase=Math.max(this.ybase-o,0),this.ydisp=Math.max(this.ydisp-o,0),this.savedY=Math.max(this.savedY-o,0)),this.lines.maxLength=r),this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),s&&(this.y+=s),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(n=0;n<this.lines.length;n++)this.lines.get(n).resize(e,i);this._cols=e,this._rows=t},Object.defineProperty(c.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!0,configurable:!0}),c.prototype._reflow=function(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},c.prototype._reflowLarger=function(e,t){var i=T.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(D.DEFAULT_ATTR_DATA));0<i.length&&(i=T.reflowLargerCreateNewLayout(this.lines,i),T.reflowLargerApplyNewLayout(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved))},c.prototype._reflowLargerAdjustViewport=function(e,t,i){for(var r=this.getNullCell(D.DEFAULT_ATTR_DATA),n=i;0<n--;)0===this.ybase?(0<this.y&&this.y--,this.lines.length<t&&this.lines.push(new D.BufferLine(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-i,0)},c.prototype._reflowSmaller=function(e,t){for(var i=this.getNullCell(D.DEFAULT_ATTR_DATA),r=[],n=0,o=this.lines.length-1;0<=o;o--){var s=this.lines.get(o);if(!(!s||!s.isWrapped&&s.getTrimmedLength()<=e)){for(var a=[s];s.isWrapped&&0<o;)s=this.lines.get(--o),a.unshift(s);var c=this.ybase+this.y;if(!(o<=c&&c<o+a.length)){for(var l=a[a.length-1].getTrimmedLength(),h=T.reflowSmallerGetNewLineLengths(a,this._cols,e),u=h.length-a.length,c=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+u):Math.max(0,this.lines.length-this.lines.maxLength+u),f=[],_=0;_<u;_++){var d=this.getBlankLine(D.DEFAULT_ATTR_DATA,!0);f.push(d)}0<f.length&&(r.push({start:o+a.length+n,newLines:f}),n+=f.length),a.push.apply(a,f);var p=h.length-1,v=h[p];0===v&&(v=h[--p]);for(var g=a.length-u-1,y=l;0<=g;){var b=Math.min(y,v);a[p].copyCellsFrom(a[g],y-b,v-b,b,!0),0==(v-=b)&&(v=h[--p]),0==(y-=b)&&(g--,b=Math.max(g,0),y=T.getWrappedLineTrimmedLength(a,b,this._cols))}for(_=0;_<a.length;_++)h[_]<e&&a[_].setCell(h[_],i);for(var m=u-c;0<m--;)0===this.ybase?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+n)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+u,this.ybase+t-1)}}}if(0<r.length){for(var S=[],C=[],_=0;_<this.lines.length;_++)C.push(this.lines.get(_));var w=this.lines.length,E=w-1,L=0,A=r[L];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+n);var R=0;for(_=Math.min(this.lines.maxLength-1,w+n-1);0<=_;_--)if(A&&A.start>E+R){for(var x=A.newLines.length-1;0<=x;x--)this.lines.set(_--,A.newLines[x]);_++,S.push({index:E+1,amount:A.newLines.length}),R+=A.newLines.length,A=r[++L]}else this.lines.set(_,C[E--]);var k=0;for(_=S.length-1;0<=_;_--)S[_].index+=k,this.lines.onInsertEmitter.fire(S[_]),k+=S[_].amount;w=Math.max(0,w+n-this.lines.maxLength);0<w&&this.lines.onTrimEmitter.fire(w)}},c.prototype.stringIndexToBufferIndex=function(e,t,i){for(void 0===i&&(i=!1);t;){var r=this.lines.get(e);if(!r)return[-1,-1];for(var n=i?r.getTrimmedLength():r.length,o=0;o<n;++o)if(r.get(o)[s.CHAR_DATA_WIDTH_INDEX]&&(t-=r.get(o)[s.CHAR_DATA_CHAR_INDEX].length||1),t<0)return[e,o];e++}return[e,0]},c.prototype.translateBufferLineToString=function(e,t,i,r){void 0===i&&(i=0);e=this.lines.get(e);return e?e.translateToString(t,i,r):""},c.prototype.getWrappedRangeForLine=function(e){for(var t=e,i=e;0<t&&this.lines.get(t).isWrapped;)t--;for(;i+1<this.lines.length&&this.lines.get(i+1).isWrapped;)i++;return{first:t,last:i}},c.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},c.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&0<e;);return e>=this._cols?this._cols-1:e<0?0:e},c.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},c.prototype.addMarker=function(e){var t=this,i=new o.Marker(e);return this.markers.push(i),i.register(this.lines.onTrim(function(e){i.line-=e,i.line<0&&i.dispose()})),i.register(this.lines.onInsert(function(e){i.line>=e.index&&(i.line+=e.amount)})),i.register(this.lines.onDelete(function(e){i.line>=e.index&&i.line<e.index+e.amount&&i.dispose(),i.line>e.index&&(i.line-=e.amount)})),i.register(i.onDispose(function(){return t._removeMarker(i)})),i},c.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},c.prototype.iterator=function(e,t,i,r,n){return new l(this,e,t,i,r,n)},i=c;function c(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=D.DEFAULT_ATTR_DATA.clone(),this.savedCharset=a.DEFAULT_CHARSET,this.markers=[],this._nullCell=n.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]),this._whitespaceCell=n.CellData.fromCharData([0,s.WHITESPACE_CELL_CHAR,s.WHITESPACE_CELL_WIDTH,s.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}t.Buffer=i;var l=(h.prototype.hasNext=function(){return this._current<this._endIndex},h.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",i=e.first;i<=e.last;++i)t+=this._buffer.translateBufferLineToString(i,this._trimRight);return this._current=e.last+1,{range:e,content:t}},h);function h(e,t,i,r,n,o){void 0===i&&(i=0),void 0===r&&(r=e.lines.length),void 0===n&&(n=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=r,this._startOverscan=n,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}t.BufferStringIterator=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),i=(Object.defineProperty(n.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),i=0;i<Math.min(e,this.length);i++)t[i]=this._array[this._getCyclicIndex(i)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),n.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},n.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},n.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},n.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(n.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!0,configurable:!0}),n.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},n.prototype.splice=function(e,t){for(var i,r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(var o=e;o<this._length-t;o++)this._array[this._getCyclicIndex(o)]=this._array[this._getCyclicIndex(o+t)];this._length-=t}for(o=this._length-1;e<=o;o--)this._array[this._getCyclicIndex(o+r.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o<r.length;o++)this._array[this._getCyclicIndex(e+o)]=r[o];this._length+r.length>this._maxLength?(i=this._length+r.length-this._maxLength,this._startIndex+=i,this._length=this._maxLength,this.onTrimEmitter.fire(i)):this._length+=r.length},n.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},n.prototype.shiftElements=function(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(0<i){for(var r=t-1;0<=r;r--)this.set(e+r+i,this.get(e+r));var n=e+t+i-this._length;if(0<n)for(this._length+=n;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<t;r++)this.set(e+r+i,this.get(e+r))}},n.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this._maxLength},n);function n(e){this._maxLength=e,this.onDeleteEmitter=new r.EventEmitter,this.onInsertEmitter=new r.EventEmitter,this.onTrimEmitter=new r.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}t.CircularList=i},function(e,t,i){"use strict";function b(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();var r=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),t=2===e[t+1].getWidth(0);return r&&t?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.reflowLargerGetLinesToRemove=function(e,t,i,r,n){for(var o=[],s=0;s<e.length-1;s++){var a=s,c=e.get(++a);if(c.isWrapped){for(var l=[e.get(s)];a<e.length&&c.isWrapped;)l.push(c),c=e.get(++a);if(s<=r&&r<a)s+=l.length-1;else{for(var h=0,u=b(l,h,t),f=1,_=0;f<l.length;){var d=b(l,f,t),p=d-_,v=i-u,v=Math.min(p,v);l[h].copyCellsFrom(l[f],_,u,v,!1),(u+=v)===i&&(h++,u=0),(_+=v)===d&&(f++,_=0),0===u&&0!==h&&2===l[h-1].getWidth(i-1)&&(l[h].copyCellsFrom(l[h-1],i-1,u++,1,!1),l[h-1].setCell(i-1,n))}l[h].replaceCells(u,i,n);for(var g=0,y=l.length-1;0<y&&(h<y||0===l[y].getTrimmedLength());y--)g++;0<g&&(o.push(s+l.length-g),o.push(g)),s+=l.length-1}}}return o},t.reflowLargerCreateNewLayout=function(e,t){for(var i,r=[],n=0,o=t[n],s=0,a=0;a<e.length;a++)o===a?(i=t[++n],e.onDeleteEmitter.fire({index:a-s,amount:i}),a+=i-1,s+=i,o=t[++n]):r.push(a);return{layout:r,countRemoved:s}},t.reflowLargerApplyNewLayout=function(e,t){for(var i=[],r=0;r<t.length;r++)i.push(e.get(t[r]));for(r=0;r<i.length;r++)e.set(r,i[r]);e.length=t.length},t.reflowSmallerGetNewLineLengths=function(i,r,e){for(var t=[],n=i.map(function(e,t){return b(i,t,r)}).reduce(function(e,t){return e+t}),o=0,s=0,a=0;a<n;){if(n-a<e){t.push(n-a);break}o+=e;var c=b(i,s,r);c<o&&(o-=c,s++);c=2===i[s].getWidth(o-1);c&&o--;c=c?e-1:e;t.push(c),a+=c}return t},t.getWrappedLineTrimmedLength=b},function(e,t,i){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var o,s=i(1),n=(o=i(2).Disposable,n(a,o),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),a.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},a._nextId=1,a);function a(e){var t=o.call(this)||this;return t.line=e,t._id=a._nextId++,t.isDisposed=!1,t._onDispose=new s.EventEmitter,t}t.Marker=n},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(4),s=i(28),o=(a.prototype.getCoords=function(e,t,i,r,n){return s.getCoords(e,t,i,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,n)},a.prototype.getRawByteCoords=function(e,t,i,r){r=this.getCoords(e,t,i,r);return s.getRawByteCoords(r)},r([n(0,o.IRenderService),n(1,o.ICharSizeService)],a));function a(e,t){this._renderService=e,this._charSizeService=t}t.MouseService=o},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(1),a=i(31),c=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,origin:!1,wraparound:!0}),o=(Object.defineProperty(l.prototype,"onData",{get:function(){return this._onData.event},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!0,configurable:!0}),l.prototype.reset=function(){this.decPrivateModes=a.clone(c)},l.prototype.triggerDataEvent=function(e,t){var i;void 0===t&&(t=!1),this._optionsService.options.disableStdin||((i=this._bufferService.buffer).ybase!==i.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onData.fire(e))},l.prototype.triggerBinaryEvent=function(e){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+e+'"',function(){return e.split("").map(function(e){return e.charCodeAt(0)})}),this._onBinary.fire(e))},r([n(1,o.IBufferService),n(2,o.ILogService),n(3,o.IOptionsService)],l));function l(e,t,i,r){this._scrollToBottom=e,this._bufferService=t,this._logService=i,this._optionsService=r,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=new s.EventEmitter,this._onUserInput=new s.EventEmitter,this._onBinary=new s.EventEmitter,this.decPrivateModes=a.clone(c)}t.CoreService=o},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var r=Array(e),n=0,t=0;t<i;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)r[n]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var s,a=i(0);(i=s=t.LogLevel||(t.LogLevel={}))[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF";var c={debug:s.DEBUG,info:s.INFO,warn:s.WARN,error:s.ERROR,off:s.OFF},a=(l.prototype._updateLogLevel=function(){this._logLevel=c[this._optionsService.options.logLevel]},l.prototype._evalLazyOptionalParams=function(e){for(var t=0;t<e.length;t++)"function"==typeof e[t]&&(e[t]=e[t]())},l.prototype._log=function(e,t,i){this._evalLazyOptionalParams(i),e.call.apply(e,o([console,"xterm.js: "+t],i))},l.prototype.debug=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.DEBUG&&this._log(console.log,e,t)},l.prototype.info=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.INFO&&this._log(console.info,e,t)},l.prototype.warn=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.WARN&&this._log(console.warn,e,t)},l.prototype.error=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this._logLevel<=s.ERROR&&this._log(console.error,e,t)},r([n(0,a.IOptionsService)],l));function l(e){var t=this;this._optionsService=e,this._updateLogLevel(),this._optionsService.onOptionChange(function(e){"logLevel"===e&&t._updateLogLevel()})}t.LogService=a},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});i=i(0),Object.defineProperty(o.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),o.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},o.prototype.markDirty=function(e){e<this._start?this._start=e:e>this._end&&(this._end=e)},o.prototype.markRangeDirty=function(e,t){var i;t<e&&(i=e,e=t,t=i),e<this._start&&(this._start=e),t>this._end&&(this._end=t)},o.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},i=r([n(0,i.IBufferService)],o);function o(e){this._bufferService=e,this.clearRange()}t.DirtyRowService=i},function(e,t,i){"use strict";var l=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var r=Array(e),n=0,t=0;t<i;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)r[n]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),h=i(14),n=(o.prototype.set=function(e,t){var i=this._entries.get(e);return this._entries.set(e,t),i},o.prototype.forEach=function(i){this._entries.forEach(function(e,t){return i(t,e)})},o.prototype.has=function(e){return this._entries.has(e)},o.prototype.get=function(e){return this._entries.get(e)},o);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var i=0,r=e;i<r.length;i++){var n=r[i],o=n[0],n=n[1];this.set(o,n)}}t.ServiceCollection=n;s.prototype.setService=function(e,t){this._services.set(e,t)},s.prototype.getService=function(e){return this._services.get(e)},s.prototype.createInstance=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var r=h.getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),n=[],o=0,s=r;o<s.length;o++){var a=s[o],c=this._services.get(a.id);if(!c)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");n.push(c)}r=0<r.length?r[0].index:t.length;if(t.length!==r)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(r+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,l([void 0],l(t,n))))},i=s;function s(){this._services=new n,this._services.set(r.IInstantiationService,this)}t.InstantiationService=i},function(e,t,i){"use strict";var r=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(o<3?n(s):3<o?n(t,i,s):n(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s},n=this&&this.__param||function(i,r){return function(e,t){r(e,t,i)}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(0),s=i(1),a={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,!(e.shift=!1))}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function c(e,t){var i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}var l=String.fromCharCode,h={DEFAULT:function(e){e=[c(e,!1)+32,e.col+32,e.row+32];return 255<e[0]||255<e[1]||255<e[2]?"":""+l(e[0])+l(e[1])+l(e[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"[<"+c(e,!0)+";"+e.col+";"+e.row+t}},o=(u.prototype.addProtocol=function(e,t){this._protocols[e]=t},u.prototype.addEncoding=function(e,t){this._encodings[e]=t},Object.defineProperty(u.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!0,configurable:!0}),u.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(u.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!0,configurable:!0}),u.prototype.triggerMouseEvent=function(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},u.prototype.explainEvents=function(e){return{DOWN:!!(1&e),UP:!!(2&e),DRAG:!!(4&e),MOVE:!!(8&e),WHEEL:!!(16&e)}},u.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},r([n(0,o.IBufferService),n(1,o.ICoreService)],u));function u(e,t){var i=this;this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new s.EventEmitter,this._lastEvent=null,Object.keys(a).forEach(function(e){return i.addProtocol(e,a[e])}),Object.keys(h).forEach(function(e){return i.addEncoding(e,h[e])}),this.reset()}t.CoreMouseService=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.writeSync=function(e){if(this._writeBuffer.length){for(var t=this._bufferOffset;t<this._writeBuffer.length;++t){var i=this._writeBuffer[t],r=this._callbacks[t];this._action(i),r&&r()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(e)},n.prototype.write=function(e,t){var i=this;if(5e7<this._pendingData)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return i._innerWrite()})),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},n.prototype._innerWrite=function(){for(var e=this,t=Date.now();this._writeBuffer.length>this._bufferOffset;){var i=this._writeBuffer[this._bufferOffset],r=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(i),this._pendingData-=i.length,r&&r(),12<=Date.now()-t)break}this._writeBuffer.length>this._bufferOffset?(50<this._bufferOffset&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return e._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},n);function n(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}t.WriteBuffer=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(Object.defineProperty(n.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!0,configurable:!0}),n);function n(e){this._textarea=e}t.CoreBrowserService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(1),n=i(78),i=(Object.defineProperty(o.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!0,configurable:!0}),o.prototype.register=function(e){this._providers[e.version]=e},o.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},o.prototype.getStringCellWidth=function(e){for(var t=0,i=e.length,r=0;r<i;++r){var n=e.charCodeAt(r);if(55296<=n&&n<=56319){if(++r>=i)return t+this.wcwidth(n);var o=e.charCodeAt(r);56320<=o&&o<=57343?n=1024*(n-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(n)}return t},o);function o(){this._providers=Object.create(null),this._active="",this._onChange=new r.EventEmitter;var e=new n.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}t.UnicodeService=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=i(15),o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],i=(a.prototype.wcwidth=function(e){return e<32?0:e<127?1:e<65536?r[e]:function(e,t){var i,r=0,n=t.length-1;if(!(e<t[0][0]||e>t[n][1]))for(;r<=n;)if(e>t[i=r+n>>1][1])r=1+i;else{if(!(e<t[i][0]))return 1;n=i-1}}(e,s)?0:131072<=e&&e<=196605||196608<=e&&e<=262141?2:1},a);function a(){if(this.version="6",!r){r=new Uint8Array(65536),n.fill(r,1),r[0]=0,n.fill(r,0,1,32),n.fill(r,0,127,160),n.fill(r,2,4352,4448),r[9001]=2,r[9002]=2,n.fill(r,2,11904,42192),r[12351]=1,n.fill(r,2,44032,55204),n.fill(r,2,63744,64256),n.fill(r,2,65040,65050),n.fill(r,2,65072,65136),n.fill(r,2,65280,65377),n.fill(r,2,65504,65511);for(var e=0;e<o.length;++e)n.fill(r,0,o[e][0],o[e][1]+1)}}t.UnicodeV6=i},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.reset=function(){this.charset=void 0,this.charsets=[],this.glevel=0},n.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},n.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},n);function n(){this.charsets=[],this.glevel=0}t.CharsetService=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(n.prototype.dispose=function(){for(var e=this._addons.length-1;0<=e;e--)this._addons[e].instance.dispose()},n.prototype.loadAddon=function(e,t){var i=this,r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=function(){return i._wrappedAddonDispose(r)},t.activate(e)},n.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,i=0;i<this._addons.length;i++)if(this._addons[i]===e){t=i;break}if(-1===t)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},n);function n(){this._addons=[]}t.AddonManager=r}],n.c=r,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32);function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var i,r})
\ No newline at end of file
public/scripts/zlib-inflate-min.js
+1 -1
@@ -1 +1 @@
1 -"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var R=11,B=29,z=852,C=592,i=z+C,T=0,y=1,M=2,K=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,203,69],F=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],N=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function k(t,a){for(var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u,_,m,k,g,w,x=t.next,Z=a==M?t.distbits:t.lenbits,I=t.work,L=t.lens,R=a==M?t.nlen:0,B=t.codes,E=a==y?t.nlen:a==M?t.ndist:19,A=new Array(16),S=new Array(16),O=0;O<=15;O++)A[O]=0;for(i=0;i<E;i++)A[L[R+i]]++;for(l=Z,o=15;1<=o&&0==A[o];o--);if(o<l&&(l=o),0==o)return B[x++]=f={op:64,bits:1,val:0},B[x++]=f,a==M?t.distbits=1:t.lenbits=1,t.next=x,0;for(s=1;s<o&&0==A[s];s++);for(l<s&&(l=s),O=v=1;O<=15;O++)if(v<<=1,(v-=A[O])<0)return-1;if(0<v&&(a==T||1!=o))return t.next=x,-1;for(S[1]=0,O=1;O<15;O++)S[O+1]=S[O]+A[O];for(i=0;i<E;i++)0!=L[R+i]&&(I[S[L[R+i]]++]=i);switch(a){case T:_=k=I,g=m=0,w=19;break;case y:_=K,k=D,g=m=-257,w=256;break;default:_=F,k=N,g=m=0,w=-1}if(O=s,u=x,e=i=n=0,h=-1,c=(p=1<<(b=l))-1,a==y&&z<=p||a==M&&C<=p)return t.next=x,1;for(;;){for(f={op:0,bits:O-e,val:0},I[i]<w?f.val=I[i]:I[i]>w?(f.op=k[g+I[i]],f.val=_[m+I[i]]):f.op=96,d=1<<O-e,s=r=1<<b;B[u+(n>>>e)+(r-=d)]=f,0!=r;);for(d=1<<O-1;n&d;)d>>>=1;if(0!=d?(n&=d-1,n+=d):n=0,i++,0==--A[O]){if(O==o)break;O=L[R+I[i]]}if(l<O&&(n&c)!=h){for(u+=s,v=1<<(b=O-(e=0==e?l:e));b+e<o&&!((v-=A[b+e])<=0);)b++,v<<=1;if(p+=1<<b,a==y&&z<=p||a==M&&C<=p)return t.next=x,1;B[x+(h=n&c)]={op:b,bits:l,val:u-x}}}return 0!=n&&(B[u+n]={op:64,bits:O-e,val:0}),t.next=x+p,a==M?t.distbits=l:t.lenbits=l,0}function s(t){for(var a=new Array(t),i=0;i<t;i++)a[i]=0;return a}function l(t,a,i){return t&&a in t?t[a]:i}function o(){return 0}function b(){this.mode=0,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=0,this.distcode=0,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=s(320),this.work=s(288),this.codes=new Array(i);for(var t={op:0,bits:0,val:0},a=0;a<i;a++)this.codes[a]=t;this.sane=0,this.back=0,this.was=0}ZLIB.inflate_copyright=" inflate 1.2.6 Copyright 1995-2012 Mark Adler ",ZLIB.inflateResetKeep=function(t){var a;return t&&t.state?(a=t.state,t.total_in=t.total_out=a.total=0,t.msg=null,a.wrap&&(t.adler=1&a.wrap),a.mode=0,a.last=0,a.havedict=0,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=0,a.distcode=0,a.next=0,a.sane=1,a.back=-1,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.inflateReset=function(t,a){var i,s;return t&&t.state?(s=t.state,(a=void 0===a?15:a)<0?(i=0,a=-a):(i=1+(a>>>4),a<48&&(a&=15)),1==i&&"function"==typeof ZLIB.adler32?t.checksum_function=ZLIB.adler32:2==i&&"function"==typeof ZLIB.crc32?t.checksum_function=ZLIB.crc32:t.checksum_function=o,a&&(a<8||15<a)?ZLIB.Z_STREAM_ERROR:(s.window&&s.wbits!=a&&(s.window=null),s.wrap=i,s.wbits=a,s.wsize=0,s.whave=0,s.wnext=0,ZLIB.inflateResetKeep(t))):ZLIB.Z_STREAM_ERROR},ZLIB.inflateInit=function(t){var a=new ZLIB.z_stream;return a.state=new b,ZLIB.inflateReset(a,t),a},ZLIB.inflatePrime=function(t,a,i){return t&&t.state?(t=t.state,a<0?(t.hold=0,t.bits=0,ZLIB.Z_OK):16<a||32<t.bits+a?ZLIB.Z_STREAM_ERROR:(t.hold+=(i&=(1<<a)-1)<<t.bits,t.bits+=a,ZLIB.Z_OK)):ZLIB.Z_STREAM_ERROR};var g=null,w=null;function x(t,a){t.state.check=t.checksum_function(t.state.check,[255&a,a>>>8&255],0,2)}function Z(t,a){return a.strm=t,a.left=t.avail_out,a.next=t.next_in,a.have=t.avail_in,a.hold=t.state.hold,a.bits=t.state.bits,a}function I(t){var a=t.strm;a.next_in=t.next,a.avail_out=t.left,a.avail_in=t.have,a.state.hold=t.hold,a.state.bits=t.bits}function L(t){t.hold=0,t.bits=0}function E(t){return 0!=t.have&&(t.have--,t.hold+=(255&t.strm.input_data.charCodeAt(t.next++))<<t.bits,t.bits+=8,1)}function A(t,a){for(;t.bits<a;)if(!E(t))return;return 1}function S(t,a){return t.hold&(1<<a)-1}function O(t,a){t.hold>>>=a,t.bits-=a}function H(t){t.hold>>>=7&t.bits,t.bits-=7&t.bits}function j(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}var U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];ZLIB.inflate=function(t,a){var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u=-1,_=-1;if(!t||!t.state||!t.input_data&&0!=t.avail_in)return ZLIB.Z_STREAM_ERROR;(i=t.state).mode==R&&(i.mode=12),Z(t,s={}),o=s.have,l=s.left,n=ZLIB.Z_OK;t:for(;;)switch(i.mode){case 0:if(0==i.wrap){i.mode=12;break}if(!A(s,16))break t;if(2&i.wrap&&35615==s.hold){i.check=t.checksum_function(0,null,0,0),x(t,s.hold),L(s),i.mode=1;break}if(i.flags=0,null!==i.head&&(i.head.done=-1),!(1&i.wrap)||((S(s,8)<<8)+(s.hold>>>8))%31){t.msg="incorrect header check",i.mode=B;break}if(S(s,4)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=B;break}if(O(s,4),p=S(s,4)+8,0==i.wbits)i.wbits=p;else if(p>i.wbits){t.msg="invalid window size",i.mode=B;break}i.dmax=1<<p,t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=512&s.hold?9:R,L(s);break;case 1:if(!A(s,16))break t;if(i.flags=s.hold,(255&i.flags)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=B;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=B;break}null!==i.head&&(i.head.text=s.hold>>>8&1),512&i.flags&&x(t,s.hold),L(s),i.mode=2;case 2:if(!A(s,32))break t;null!==i.head&&(i.head.time=s.hold),512&i.flags&&(d=t,r=s.hold,d.state.check=d.checksum_function(d.state.check,[255&r,r>>>8&255,r>>>16&255,r>>>24&255],0,4)),L(s),i.mode=3;case 3:if(!A(s,16))break t;null!==i.head&&(i.head.xflags=255&s.hold,i.head.os=s.hold>>>8),512&i.flags&&x(t,s.hold),L(s),i.mode=4;case 4:if(1024&i.flags){if(!A(s,16))break t;i.length=s.hold,null!==i.head&&(i.head.extra_len=s.hold),512&i.flags&&x(t,s.hold),L(s),i.head.extra=""}else null!==i.head&&(i.head.extra=null);i.mode=5;case 5:if(1024&i.flags&&((b=(b=i.length)>s.have?s.have:b)&&(null!==i.head&&null!==i.head.extra&&(p=i.head.extra_len-i.length,i.head.extra+=t.input_data.substring(s.next,s.next+(p+b>i.head.extra_max?i.head.extra_max-p:b))),512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,i.length-=b),i.length))break t;i.length=0,i.mode=6;case 6:if(2048&i.flags){if(0==s.have)break t;for(null!==i.head&&null===i.head.name&&(i.head.name=""),b=0;p=t.input_data.charAt(s.next+b),b++,"\0"!==p&&(null!==i.head&&i.length<i.head.name_max&&(i.head.name+=p,i.length++),b<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,"\0"!==p)break t}else null!==i.head&&(i.head.name=null);i.length=0,i.mode=7;case 7:if(4096&i.flags){if(0==s.have)break t;for(b=0,null!==i.head&&null===i.head.comment&&(i.head.comment="");p=t.input_data.charAt(s.next+b),b++,"\0"!==p&&(null!==i.head&&i.length<i.head.comm_max&&(i.head.comment+=p,i.length++),b<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,"\0"!==p)break t}else null!==i.head&&(i.head.comment=null);i.mode=8;case 8:if(512&i.flags){if(!A(s,16))break t;if(s.hold!=(65535&i.check)){t.msg="header crc mismatch",i.mode=B;break}L(s)}null!==i.head&&(i.head.hcrc=i.flags>>>9&1,i.head.done=1),t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=R;break;case 9:if(!A(s,32))break t;t.adler=i.check=j(s.hold),L(s),i.mode=10;case 10:if(0==i.havedict)return I(s),ZLIB.Z_NEED_DICT;t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=R;case R:if(a==ZLIB.Z_BLOCK||a==ZLIB.Z_TREES)break t;case 12:if(i.last){H(s),i.mode=26;break}if(!A(s,3))break t;switch(i.last=S(s,1),O(s,1),S(s,2)){case 0:i.mode=13;break;case 1:if(!function(t){var a;for(g=g||[{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:192},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:160},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:224},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:144},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:208},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:176},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:240},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:200},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:168},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:232},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:152},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:216},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:184},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:248},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:196},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:164},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:228},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:148},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:212},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:180},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:244},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:204},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:172},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:236},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:156},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:220},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:188},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:252},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:194},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:162},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:226},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:146},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:210},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:178},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:242},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:202},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:170},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:234},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:154},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:218},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:186},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:250},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:198},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:166},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:230},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:150},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:214},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:182},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:246},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:206},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:174},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:238},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:158},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:222},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:190},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:254},{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:193},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:161},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:225},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:145},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:209},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:177},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:241},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:201},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:169},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:233},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:153},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:217},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:185},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:249},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:197},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:165},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:229},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:149},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:213},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:181},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:245},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:205},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:173},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:237},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:157},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:221},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:189},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:253},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:195},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:163},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:227},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:147},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:211},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:179},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:243},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:203},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:171},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:235},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:155},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:219},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:187},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:251},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:199},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:167},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:231},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:151},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:215},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:183},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:247},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:207},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:175},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:239},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:159},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:223},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:191},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:255}],w=w||[{op:16,bits:5,val:1},{op:23,bits:5,val:257},{op:19,bits:5,val:17},{op:27,bits:5,val:4097},{op:17,bits:5,val:5},{op:25,bits:5,val:1025},{op:21,bits:5,val:65},{op:29,bits:5,val:16385},{op:16,bits:5,val:3},{op:24,bits:5,val:513},{op:20,bits:5,val:33},{op:28,bits:5,val:8193},{op:18,bits:5,val:9},{op:26,bits:5,val:2049},{op:22,bits:5,val:129},{op:64,bits:5,val:0},{op:16,bits:5,val:2},{op:23,bits:5,val:385},{op:19,bits:5,val:25},{op:27,bits:5,val:6145},{op:17,bits:5,val:7},{op:25,bits:5,val:1537},{op:21,bits:5,val:97},{op:29,bits:5,val:24577},{op:16,bits:5,val:4},{op:24,bits:5,val:769},{op:20,bits:5,val:49},{op:28,bits:5,val:12289},{op:18,bits:5,val:13},{op:26,bits:5,val:3073},{op:22,bits:5,val:193},{op:64,bits:5,val:0}],t.lencode=0,t.distcode=512,a=0;a<512;a++)t.codes[a]=g[a];for(a=0;a<32;a++)t.codes[a+512]=w[a];t.lenbits=9,t.distbits=5}(i),i.mode=19,a!=ZLIB.Z_TREES)break;O(s,2);break t;case 2:i.mode=16;break;case 3:t.msg="invalid block type",i.mode=B}O(s,2);break;case 13:if(H(s),!A(s,32))break t;if((65535&s.hold)!=(s.hold>>>16&65535^65535)){t.msg="invalid stored block lengths",i.mode=B;break}if(i.length=65535&s.hold,L(s),i.mode=14,a==ZLIB.Z_TREES)break t;case 14:i.mode=15;case 15:if(b=i.length){if(0==(b=(b=b>s.have?s.have:b)>s.left?s.left:b))break t;t.output_data+=t.input_data.substring(s.next,s.next+b),t.next_out+=b,s.have-=b,s.next+=b,s.left-=b,i.length-=b;break}i.mode=R;break;case 16:if(!A(s,14))break t;if(i.nlen=S(s,5)+257,O(s,5),i.ndist=S(s,5)+1,O(s,5),i.ncode=S(s,4)+4,O(s,4),286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=B;break}i.have=0,i.mode=17;case 17:for(;i.have<i.ncode;){if(!A(s,3))break t;var m=S(s,3);i.lens[U[i.have++]]=m,O(s,3)}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.next=0,i.lencode=0,i.lenbits=7,n=k(i,T)){t.msg="invalid code lengths set",i.mode=B;break}i.have=0,i.mode=18;case 18:for(;i.have<i.nlen+i.ndist;){for(;!((e=i.codes[i.lencode+S(s,i.lenbits)]).bits<=s.bits);)if(!E(s))break t;if(e.val<16)O(s,e.bits),i.lens[i.have++]=e.val;else{if(16==e.val){if(!A(s,e.bits+2))break t;if(O(s,e.bits),0==i.have){t.msg="invalid bit length repeat",i.mode=B;break}p=i.lens[i.have-1],b=3+S(s,2),O(s,2)}else if(17==e.val){if(!A(s,e.bits+3))break t;O(s,e.bits),p=0,b=3+S(s,3),O(s,3)}else{if(!A(s,e.bits+7))break t;O(s,e.bits),p=0,b=11+S(s,7),O(s,7)}if(i.have+b>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=B;break}for(;b--;)i.lens[i.have++]=p}}if(i.mode==B)break;if(0==i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=B;break}if(i.next=0,i.lencode=i.next,i.lenbits=9,n=k(i,y)){t.msg="invalid literal/lengths set",i.mode=B;break}if(i.distcode=i.next,i.distbits=6,n=k(i,M)){t.msg="invalid distances set",i.mode=B;break}if(i.mode=19,a==ZLIB.Z_TREES)break t;case 19:i.mode=20;case 20:if(6<=s.have&&258<=s.left){I(s),function(t,a){var i,s,o,l=-1,b=-1,e=t.state,v=t.input_data,p=t.next_in,n=p+t.avail_in-5,d=t.next_out,r=d-(a-t.avail_out),h=d+(t.avail_out-257),c=e.wsize,f=e.whave,u=e.wnext,_=e.window,m=e.hold,k=e.bits,g=e.codes,w=e.lencode,x=e.distcode,Z=(1<<e.lenbits)-1,I=(1<<e.distbits)-1;a:do{k<15&&(m+=(255&v.charCodeAt(p++))<<k,k+=8,m+=(255&v.charCodeAt(p++))<<k,k+=8),i=g[w+(m&Z)];i:for(;;){if(m>>>=s=i.bits,k-=s,0==(s=i.op))t.output_data+=String.fromCharCode(i.val),d++;else{if(!(16&s)){if(0==(64&s)){i=g[w+(i.val+(m&(1<<s)-1))];continue i}if(32&s){e.mode=R;break a}t.msg="invalid literal/length code",e.mode=B;break a}o=i.val,(s&=15)&&(k<s&&(m+=(255&v.charCodeAt(p++))<<k,k+=8),o+=m&(1<<s)-1,m>>>=s,k-=s),k<15&&(m+=(255&v.charCodeAt(p++))<<k,k+=8,m+=(255&v.charCodeAt(p++))<<k,k+=8),i=g[x+(m&I)];s:for(;;){if(m>>>=s=i.bits,k-=s,!(16&(s=i.op))){if(0==(64&s)){i=g[x+(i.val+(m&(1<<s)-1))];continue s}t.msg="invalid distance code",e.mode=B;break a}if(L=i.val,k<(s&=15)&&(m+=(255&v.charCodeAt(p++))<<k,(k+=8)<s&&(m+=(255&v.charCodeAt(p++))<<k,k+=8)),L+=m&(1<<s)-1,m>>>=s,k-=s,(s=d-r)<L){if(f<(s=L-s)&&e.sane){t.msg="invalid distance too far back",e.mode=B;break a}b=-1,(l=0)==u?(l+=c-s,s<o&&(o-=s,t.output_data+=_.substring(l,l+s),d+=s,s=0,l=-1,b=d-L)):(l+=u-s,s<o&&(o-=s,t.output_data+=_.substring(l,l+s),l=-1,b=(d+=s)-L))}else l=-1,b=d-L;if(0<=l)t.output_data+=_.substring(l,l+o),d+=o,l+=o;else{var L=o;for(d-b<L&&(L=d-b),t.output_data+=t.output_data.substring(b,b+L),d+=L,b+=L,d+=o-=L;2<o;)t.output_data+=t.output_data.charAt(b++),t.output_data+=t.output_data.charAt(b++),t.output_data+=t.output_data.charAt(b++),o-=3;o&&(t.output_data+=t.output_data.charAt(b++),1<o&&(t.output_data+=t.output_data.charAt(b++)))}break s}}break i}}while(p<n&&d<h);m&=(1<<(k-=(o=k>>>3)<<3))-1,t.next_in=p-=o,t.next_out=d,t.avail_in=p<n?n-p+5:5-(p-n),t.avail_out=d<h?h-d+257:257-(d-h),e.hold=m,e.bits=k}(t,l),Z(t,s),i.mode==R&&(i.back=-1);break}for(i.back=0;!((e=i.codes[i.lencode+S(s,i.lenbits)]).bits<=s.bits);)if(!E(s))break t;if(e.op&&0==(240&e.op)){for(v=e;e=i.codes[i.lencode+v.val+(S(s,v.bits+v.op)>>>v.bits)],!(v.bits+e.bits<=s.bits);)if(!E(s))break t;O(s,v.bits),i.back+=v.bits}if(O(s,e.bits),i.back+=e.bits,i.length=e.val,0==e.op){i.mode=25;break}if(32&e.op){i.back=-1,i.mode=R;break}if(64&e.op){t.msg="invalid literal/length code",i.mode=B;break}i.extra=15&e.op,i.mode=21;case 21:if(i.extra){if(!A(s,i.extra))break t;i.length+=S(s,i.extra),O(s,i.extra),i.back+=i.extra}i.was=i.length,i.mode=22;case 22:for(;!((e=i.codes[i.distcode+S(s,i.distbits)]).bits<=s.bits);)if(!E(s))break t;if(0==(240&e.op)){for(v=e;e=i.codes[i.distcode+v.val+(S(s,v.bits+v.op)>>>v.bits)],!(v.bits+e.bits<=s.bits);)if(!E(s))break t;O(s,v.bits),i.back+=v.bits}if(O(s,e.bits),i.back+=e.bits,64&e.op){t.msg="invalid distance code",i.mode=B;break}i.offset=e.val,i.extra=15&e.op,i.mode=23;case 23:if(i.extra){if(!A(s,i.extra))break t;i.offset+=S(s,i.extra),O(s,i.extra),i.back+=i.extra}i.mode=24;case 24:if(0==s.left)break t;if(b=l-s.left,i.offset>b){if((b=i.offset-b)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=B;break}_=(u=b>i.wnext?(b-=i.wnext,i.wsize-b):i.wnext-b,-1),b>i.length&&(b=i.length)}else u=-1,_=t.next_out-i.offset,b=i.length;if(b>s.left&&(b=s.left),s.left-=b,i.length-=b,0<=u)t.output_data+=i.window.substring(u,u+b),t.next_out+=b,b=0;else for(t.next_out+=b;t.output_data+=t.output_data.charAt(_++),--b;);0==i.length&&(i.mode=20);break;case 25:if(0==s.left)break t;t.output_data+=String.fromCharCode(i.length),t.next_out++,s.left--,i.mode=20;break;case 26:if(i.wrap){if(!A(s,32))break t;if(l-=s.left,t.total_out+=l,i.total+=l,l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,t.output_data.length-l,l)),l=s.left,(i.flags?s.hold:j(s.hold))!=i.check){t.msg="incorrect data check",i.mode=B;break}L(s)}i.mode=27;case 27:if(i.wrap&&i.flags){if(!A(s,32))break t;if(s.hold!=(4294967295&i.total)){t.msg="incorrect length check",i.mode=B;break}L(s)}i.mode=28;case 28:n=ZLIB.Z_STREAM_END;break t;case B:n=ZLIB.Z_DATA_ERROR;break t;case 30:return ZLIB.Z_MEM_ERROR;case 31:default:return ZLIB.Z_STREAM_ERROR}return I(s),(i.wsize||l!=t.avail_out&&i.mode<B&&(i.mode<26||a!=ZLIB.Z_FINISH))&&(c=(h=t).state,f=h.output_data.length,null===c.window&&(c.window=""),0==c.wsize&&(c.wsize=1<<c.wbits),f>=c.wsize?c.window=h.output_data.substring(f-c.wsize):c.whave+f<c.wsize?c.window+=h.output_data:c.window=c.window.substring(c.whave-(c.wsize-f))+h.output_data,c.whave=c.window.length,c.whave<c.wsize?c.wnext=c.whave:c.wnext=0),o-=t.avail_in,l-=t.avail_out,t.total_in+=o,t.total_out+=l,i.total+=l,i.wrap&&l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,0,t.output_data.length)),t.data_type=i.bits+(i.last?64:0)+(i.mode==R?128:0)+(19==i.mode||14==i.mode?256:0),n=(0==o&&0==l||a==ZLIB.Z_FINISH)&&n==ZLIB.Z_OK?ZLIB.Z_BUF_ERROR:n},ZLIB.inflateEnd=function(t){return t&&t.state?(t.state.window=null,t.state=null,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.z_stream.prototype.inflate=function(t,a){this.input_data=t,this.next_in=l(a,"next_in",0),this.avail_in=l(a,"avail_in",t.length-this.next_in);var i=l(a,"flush",ZLIB.Z_SYNC_FLUSH),s=l(a,"avail_out",-1),o="";do{if(this.avail_out=0<=s?s:16384,this.output_data="",this.next_out=0,this.error=ZLIB.inflate(this,i),0<=s)return this.output_data}while((o+=this.output_data,!(0<this.avail_out))&&this.error==ZLIB.Z_OK);return o},ZLIB.z_stream.prototype.inflateReset=function(t){return ZLIB.inflateReset(this,t)}}()
\ No newline at end of file
1 +"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var R=11,B=29,z=852,C=592,i=z+C,T=0,y=1,M=2,K=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,203,69],F=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],N=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function k(t,a){for(var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u,_,m,k,g,w,x=t.next,Z=a==M?t.distbits:t.lenbits,I=t.work,L=t.lens,R=a==M?t.nlen:0,B=t.codes,E=a==y?t.nlen:a==M?t.ndist:19,A=new Array(16),S=new Array(16),O=0;O<=15;O++)A[O]=0;for(i=0;i<E;i++)A[L[R+i]]++;for(l=Z,o=15;1<=o&&0==A[o];o--);if(o<l&&(l=o),0==o)return f={op:64,bits:1,val:0},B[x++]=f,B[x++]=f,a==M?t.distbits=1:t.lenbits=1,t.next=x,0;for(s=1;s<o&&0==A[s];s++);for(l<s&&(l=s),O=v=1;O<=15;O++)if(v<<=1,(v-=A[O])<0)return-1;if(0<v&&(a==T||1!=o))return t.next=x,-1;for(S[1]=0,O=1;O<15;O++)S[O+1]=S[O]+A[O];for(i=0;i<E;i++)0!=L[R+i]&&(I[S[L[R+i]]++]=i);switch(a){case T:_=k=I,g=m=0,w=19;break;case y:_=K,k=D,g=m=-257,w=256;break;default:_=F,k=N,g=m=0,w=-1}if(O=s,u=x,e=i=n=0,h=-1,c=(p=1<<(b=l))-1,a==y&&z<=p||a==M&&C<=p)return t.next=x,1;for(;;){for(f={op:0,bits:O-e,val:0},I[i]<w?f.val=I[i]:I[i]>w?(f.op=k[g+I[i]],f.val=_[m+I[i]]):f.op=96,d=1<<O-e,r=1<<b,s=r;B[u+(n>>>e)+(r-=d)]=f,0!=r;);for(d=1<<O-1;n&d;)d>>>=1;if(0!=d?(n&=d-1,n+=d):n=0,i++,0==--A[O]){if(O==o)break;O=L[R+I[i]]}if(l<O&&(n&c)!=h){for(u+=s,v=1<<(b=O-(e=0==e?l:e));b+e<o&&!((v-=A[b+e])<=0);)b++,v<<=1;if(p+=1<<b,a==y&&z<=p||a==M&&C<=p)return t.next=x,1;B[x+(h=n&c)]={op:b,bits:l,val:u-x}}}return 0!=n&&(B[u+n]={op:64,bits:O-e,val:0}),t.next=x+p,a==M?t.distbits=l:t.lenbits=l,0}function s(t){for(var a=new Array(t),i=0;i<t;i++)a[i]=0;return a}function l(t,a,i){return t&&a in t?t[a]:i}function o(){return 0}function b(){this.mode=0,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=0,this.distcode=0,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=s(320),this.work=s(288),this.codes=new Array(i);for(var t={op:0,bits:0,val:0},a=0;a<i;a++)this.codes[a]=t;this.sane=0,this.back=0,this.was=0}ZLIB.inflate_copyright=" inflate 1.2.6 Copyright 1995-2012 Mark Adler ",ZLIB.inflateResetKeep=function(t){var a;return t&&t.state?(a=t.state,t.total_in=t.total_out=a.total=0,t.msg=null,a.wrap&&(t.adler=1&a.wrap),a.mode=0,a.last=0,a.havedict=0,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=0,a.distcode=0,a.next=0,a.sane=1,a.back=-1,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.inflateReset=function(t,a){var i,s;return t&&t.state?(s=t.state,(a=void 0===a?15:a)<0?(i=0,a=-a):(i=1+(a>>>4),a<48&&(a&=15)),1==i&&"function"==typeof ZLIB.adler32?t.checksum_function=ZLIB.adler32:2==i&&"function"==typeof ZLIB.crc32?t.checksum_function=ZLIB.crc32:t.checksum_function=o,a&&(a<8||15<a)?ZLIB.Z_STREAM_ERROR:(s.window&&s.wbits!=a&&(s.window=null),s.wrap=i,s.wbits=a,s.wsize=0,s.whave=0,s.wnext=0,ZLIB.inflateResetKeep(t))):ZLIB.Z_STREAM_ERROR},ZLIB.inflateInit=function(t){var a=new ZLIB.z_stream;return a.state=new b,ZLIB.inflateReset(a,t),a},ZLIB.inflatePrime=function(t,a,i){return t&&t.state?(t=t.state,a<0?(t.hold=0,t.bits=0,ZLIB.Z_OK):16<a||32<t.bits+a?ZLIB.Z_STREAM_ERROR:(i&=(1<<a)-1,t.hold+=i<<t.bits,t.bits+=a,ZLIB.Z_OK)):ZLIB.Z_STREAM_ERROR};var g=null,w=null;function x(t,a){a=[255&a,a>>>8&255];t.state.check=t.checksum_function(t.state.check,a,0,2)}function Z(t,a){return a.strm=t,a.left=t.avail_out,a.next=t.next_in,a.have=t.avail_in,a.hold=t.state.hold,a.bits=t.state.bits,a}function I(t){var a=t.strm;a.next_in=t.next,a.avail_out=t.left,a.avail_in=t.have,a.state.hold=t.hold,a.state.bits=t.bits}function L(t){t.hold=0,t.bits=0}function E(t){return 0!=t.have&&(t.have--,t.hold+=(255&t.strm.input_data.charCodeAt(t.next++))<<t.bits,t.bits+=8,1)}function A(t,a){for(;t.bits<a;)if(!E(t))return;return 1}function S(t,a){return t.hold&(1<<a)-1}function O(t,a){t.hold>>>=a,t.bits-=a}function H(t){t.hold>>>=7&t.bits,t.bits-=7&t.bits}function j(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}var U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];ZLIB.inflate=function(t,a){var i,s,o,l,b,e,v,p,n,d,r,h,c,f,u=-1,_=-1;if(!t||!t.state||!t.input_data&&0!=t.avail_in)return ZLIB.Z_STREAM_ERROR;(i=t.state).mode==R&&(i.mode=12),Z(t,s={}),o=s.have,l=s.left,n=ZLIB.Z_OK;t:for(;;)switch(i.mode){case 0:if(0==i.wrap){i.mode=12;break}if(!A(s,16))break t;if(2&i.wrap&&35615==s.hold){i.check=t.checksum_function(0,null,0,0),x(t,s.hold),L(s),i.mode=1;break}if(i.flags=0,null!==i.head&&(i.head.done=-1),!(1&i.wrap)||((S(s,8)<<8)+(s.hold>>>8))%31){t.msg="incorrect header check",i.mode=B;break}if(S(s,4)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=B;break}if(O(s,4),p=S(s,4)+8,0==i.wbits)i.wbits=p;else if(p>i.wbits){t.msg="invalid window size",i.mode=B;break}i.dmax=1<<p,t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=512&s.hold?9:R,L(s);break;case 1:if(!A(s,16))break t;if(i.flags=s.hold,(255&i.flags)!=ZLIB.Z_DEFLATED){t.msg="unknown compression method",i.mode=B;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=B;break}null!==i.head&&(i.head.text=s.hold>>>8&1),512&i.flags&&x(t,s.hold),L(s),i.mode=2;case 2:if(!A(s,32))break t;null!==i.head&&(i.head.time=s.hold),512&i.flags&&(d=t,r=[255&(r=s.hold),r>>>8&255,r>>>16&255,r>>>24&255],d.state.check=d.checksum_function(d.state.check,r,0,4)),L(s),i.mode=3;case 3:if(!A(s,16))break t;null!==i.head&&(i.head.xflags=255&s.hold,i.head.os=s.hold>>>8),512&i.flags&&x(t,s.hold),L(s),i.mode=4;case 4:if(1024&i.flags){if(!A(s,16))break t;i.length=s.hold,null!==i.head&&(i.head.extra_len=s.hold),512&i.flags&&x(t,s.hold),L(s),i.head.extra=""}else null!==i.head&&(i.head.extra=null);i.mode=5;case 5:if(1024&i.flags&&((b=(b=i.length)>s.have?s.have:b)&&(null!==i.head&&null!==i.head.extra&&(p=i.head.extra_len-i.length,i.head.extra+=t.input_data.substring(s.next,s.next+(p+b>i.head.extra_max?i.head.extra_max-p:b))),512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,i.length-=b),i.length))break t;i.length=0,i.mode=6;case 6:if(2048&i.flags){if(0==s.have)break t;for(null!==i.head&&null===i.head.name&&(i.head.name=""),b=0;p=t.input_data.charAt(s.next+b),b++,"\0"!==p&&(null!==i.head&&i.length<i.head.name_max&&(i.head.name+=p,i.length++),b<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,"\0"!==p)break t}else null!==i.head&&(i.head.name=null);i.length=0,i.mode=7;case 7:if(4096&i.flags){if(0==s.have)break t;for(b=0,null!==i.head&&null===i.head.comment&&(i.head.comment="");p=t.input_data.charAt(s.next+b),b++,"\0"!==p&&(null!==i.head&&i.length<i.head.comm_max&&(i.head.comment+=p,i.length++),b<s.have););if(512&i.flags&&(i.check=t.checksum_function(i.check,t.input_data,s.next,b)),s.have-=b,s.next+=b,"\0"!==p)break t}else null!==i.head&&(i.head.comment=null);i.mode=8;case 8:if(512&i.flags){if(!A(s,16))break t;if(s.hold!=(65535&i.check)){t.msg="header crc mismatch",i.mode=B;break}L(s)}null!==i.head&&(i.head.hcrc=i.flags>>>9&1,i.head.done=1),t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=R;break;case 9:if(!A(s,32))break t;t.adler=i.check=j(s.hold),L(s),i.mode=10;case 10:if(0==i.havedict)return I(s),ZLIB.Z_NEED_DICT;t.adler=i.check=t.checksum_function(0,null,0,0),i.mode=R;case R:if(a==ZLIB.Z_BLOCK||a==ZLIB.Z_TREES)break t;case 12:if(i.last){H(s),i.mode=26;break}if(!A(s,3))break t;switch(i.last=S(s,1),O(s,1),S(s,2)){case 0:i.mode=13;break;case 1:if(!function(t){var a;for(g=g||[{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:192},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:160},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:224},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:144},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:208},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:176},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:240},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:200},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:168},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:232},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:152},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:216},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:184},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:248},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:196},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:164},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:228},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:148},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:212},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:180},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:244},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:204},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:172},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:236},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:156},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:220},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:188},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:252},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:194},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:162},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:226},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:146},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:210},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:178},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:242},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:202},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:170},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:234},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:154},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:218},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:186},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:250},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:198},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:166},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:230},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:150},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:214},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:182},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:246},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:206},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:174},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:238},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:158},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:222},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:190},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:254},{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:193},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:161},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:225},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:145},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:209},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:177},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:241},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:201},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:169},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:233},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:153},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:217},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:185},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:249},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:197},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:165},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:229},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:149},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:213},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:181},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:245},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:205},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:173},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:237},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:157},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:221},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:189},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:253},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:195},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:163},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:227},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:147},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:211},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:179},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:243},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:203},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:171},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:235},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:155},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:219},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:187},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:251},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:199},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:167},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:231},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:151},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:215},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:183},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:247},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:207},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:175},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:239},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:159},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:223},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:191},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:255}],w=w||[{op:16,bits:5,val:1},{op:23,bits:5,val:257},{op:19,bits:5,val:17},{op:27,bits:5,val:4097},{op:17,bits:5,val:5},{op:25,bits:5,val:1025},{op:21,bits:5,val:65},{op:29,bits:5,val:16385},{op:16,bits:5,val:3},{op:24,bits:5,val:513},{op:20,bits:5,val:33},{op:28,bits:5,val:8193},{op:18,bits:5,val:9},{op:26,bits:5,val:2049},{op:22,bits:5,val:129},{op:64,bits:5,val:0},{op:16,bits:5,val:2},{op:23,bits:5,val:385},{op:19,bits:5,val:25},{op:27,bits:5,val:6145},{op:17,bits:5,val:7},{op:25,bits:5,val:1537},{op:21,bits:5,val:97},{op:29,bits:5,val:24577},{op:16,bits:5,val:4},{op:24,bits:5,val:769},{op:20,bits:5,val:49},{op:28,bits:5,val:12289},{op:18,bits:5,val:13},{op:26,bits:5,val:3073},{op:22,bits:5,val:193},{op:64,bits:5,val:0}],t.lencode=0,t.distcode=512,a=0;a<512;a++)t.codes[a]=g[a];for(a=0;a<32;a++)t.codes[a+512]=w[a];t.lenbits=9,t.distbits=5}(i),i.mode=19,a!=ZLIB.Z_TREES)break;O(s,2);break t;case 2:i.mode=16;break;case 3:t.msg="invalid block type",i.mode=B}O(s,2);break;case 13:if(H(s),!A(s,32))break t;if((65535&s.hold)!=(s.hold>>>16&65535^65535)){t.msg="invalid stored block lengths",i.mode=B;break}if(i.length=65535&s.hold,L(s),i.mode=14,a==ZLIB.Z_TREES)break t;case 14:i.mode=15;case 15:if(b=i.length){if(0==(b=(b=b>s.have?s.have:b)>s.left?s.left:b))break t;t.output_data+=t.input_data.substring(s.next,s.next+b),t.next_out+=b,s.have-=b,s.next+=b,s.left-=b,i.length-=b;break}i.mode=R;break;case 16:if(!A(s,14))break t;if(i.nlen=S(s,5)+257,O(s,5),i.ndist=S(s,5)+1,O(s,5),i.ncode=S(s,4)+4,O(s,4),286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=B;break}i.have=0,i.mode=17;case 17:for(;i.have<i.ncode;){if(!A(s,3))break t;var m=S(s,3);i.lens[U[i.have++]]=m,O(s,3)}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.next=0,i.lencode=0,i.lenbits=7,n=k(i,T)){t.msg="invalid code lengths set",i.mode=B;break}i.have=0,i.mode=18;case 18:for(;i.have<i.nlen+i.ndist;){for(;!((e=i.codes[i.lencode+S(s,i.lenbits)]).bits<=s.bits);)if(!E(s))break t;if(e.val<16)O(s,e.bits),i.lens[i.have++]=e.val;else{if(16==e.val){if(!A(s,e.bits+2))break t;if(O(s,e.bits),0==i.have){t.msg="invalid bit length repeat",i.mode=B;break}p=i.lens[i.have-1],b=3+S(s,2),O(s,2)}else if(17==e.val){if(!A(s,e.bits+3))break t;O(s,e.bits),p=0,b=3+S(s,3),O(s,3)}else{if(!A(s,e.bits+7))break t;O(s,e.bits),p=0,b=11+S(s,7),O(s,7)}if(i.have+b>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=B;break}for(;b--;)i.lens[i.have++]=p}}if(i.mode==B)break;if(0==i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=B;break}if(i.next=0,i.lencode=i.next,i.lenbits=9,n=k(i,y)){t.msg="invalid literal/lengths set",i.mode=B;break}if(i.distcode=i.next,i.distbits=6,n=k(i,M)){t.msg="invalid distances set",i.mode=B;break}if(i.mode=19,a==ZLIB.Z_TREES)break t;case 19:i.mode=20;case 20:if(6<=s.have&&258<=s.left){I(s),function(t,a){var i,s,o,l=-1,b=-1,e=t.state,v=t.input_data,p=t.next_in,n=p+t.avail_in-5,d=t.next_out,r=d-(a-t.avail_out),h=d+(t.avail_out-257),c=e.wsize,f=e.whave,u=e.wnext,_=e.window,m=e.hold,k=e.bits,g=e.codes,w=e.lencode,x=e.distcode,Z=(1<<e.lenbits)-1,I=(1<<e.distbits)-1;a:do{k<15&&(m+=(255&v.charCodeAt(p++))<<k,k+=8,m+=(255&v.charCodeAt(p++))<<k,k+=8),i=g[w+(m&Z)];i:for(;;){if(m>>>=s=i.bits,k-=s,0==(s=i.op))t.output_data+=String.fromCharCode(i.val),d++;else{if(!(16&s)){if(0==(64&s)){i=g[w+(i.val+(m&(1<<s)-1))];continue i}if(32&s){e.mode=R;break a}t.msg="invalid literal/length code",e.mode=B;break a}o=i.val,(s&=15)&&(k<s&&(m+=(255&v.charCodeAt(p++))<<k,k+=8),o+=m&(1<<s)-1,m>>>=s,k-=s),k<15&&(m+=(255&v.charCodeAt(p++))<<k,k+=8,m+=(255&v.charCodeAt(p++))<<k,k+=8),i=g[x+(m&I)];s:for(;;){if(m>>>=s=i.bits,k-=s,!(16&(s=i.op))){if(0==(64&s)){i=g[x+(i.val+(m&(1<<s)-1))];continue s}t.msg="invalid distance code",e.mode=B;break a}if(L=i.val,k<(s&=15)&&(m+=(255&v.charCodeAt(p++))<<k,(k+=8)<s&&(m+=(255&v.charCodeAt(p++))<<k,k+=8)),L+=m&(1<<s)-1,m>>>=s,k-=s,(s=d-r)<L){if(s=L-s,f<s&&e.sane){t.msg="invalid distance too far back",e.mode=B;break a}b=-1,(l=0)==u?(l+=c-s,s<o&&(o-=s,t.output_data+=_.substring(l,l+s),d+=s,s=0,l=-1,b=d-L)):(l+=u-s,s<o&&(o-=s,t.output_data+=_.substring(l,l+s),l=-1,b=(d+=s)-L))}else l=-1,b=d-L;if(0<=l)t.output_data+=_.substring(l,l+o),d+=o,l+=o;else{var L=o;for(d-b<L&&(L=d-b),t.output_data+=t.output_data.substring(b,b+L),d+=L,b+=L,d+=o-=L;2<o;)t.output_data+=t.output_data.charAt(b++),t.output_data+=t.output_data.charAt(b++),t.output_data+=t.output_data.charAt(b++),o-=3;o&&(t.output_data+=t.output_data.charAt(b++),1<o&&(t.output_data+=t.output_data.charAt(b++)))}break s}}break i}}while(p<n&&d<h);p-=o=k>>>3,m&=(1<<(k-=o<<3))-1,t.next_in=p,t.next_out=d,t.avail_in=p<n?n-p+5:5-(p-n),t.avail_out=d<h?h-d+257:257-(d-h),e.hold=m,e.bits=k}(t,l),Z(t,s),i.mode==R&&(i.back=-1);break}for(i.back=0;!((e=i.codes[i.lencode+S(s,i.lenbits)]).bits<=s.bits);)if(!E(s))break t;if(e.op&&0==(240&e.op)){for(v=e;e=i.codes[i.lencode+v.val+(S(s,v.bits+v.op)>>>v.bits)],!(v.bits+e.bits<=s.bits);)if(!E(s))break t;O(s,v.bits),i.back+=v.bits}if(O(s,e.bits),i.back+=e.bits,i.length=e.val,0==e.op){i.mode=25;break}if(32&e.op){i.back=-1,i.mode=R;break}if(64&e.op){t.msg="invalid literal/length code",i.mode=B;break}i.extra=15&e.op,i.mode=21;case 21:if(i.extra){if(!A(s,i.extra))break t;i.length+=S(s,i.extra),O(s,i.extra),i.back+=i.extra}i.was=i.length,i.mode=22;case 22:for(;!((e=i.codes[i.distcode+S(s,i.distbits)]).bits<=s.bits);)if(!E(s))break t;if(0==(240&e.op)){for(v=e;e=i.codes[i.distcode+v.val+(S(s,v.bits+v.op)>>>v.bits)],!(v.bits+e.bits<=s.bits);)if(!E(s))break t;O(s,v.bits),i.back+=v.bits}if(O(s,e.bits),i.back+=e.bits,64&e.op){t.msg="invalid distance code",i.mode=B;break}i.offset=e.val,i.extra=15&e.op,i.mode=23;case 23:if(i.extra){if(!A(s,i.extra))break t;i.offset+=S(s,i.extra),O(s,i.extra),i.back+=i.extra}i.mode=24;case 24:if(0==s.left)break t;if(b=l-s.left,i.offset>b){if(b=i.offset-b,b>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=B;break}_=(u=b>i.wnext?(b-=i.wnext,i.wsize-b):i.wnext-b,-1),b>i.length&&(b=i.length)}else u=-1,_=t.next_out-i.offset,b=i.length;if(b>s.left&&(b=s.left),s.left-=b,i.length-=b,0<=u)t.output_data+=i.window.substring(u,u+b),t.next_out+=b,b=0;else for(t.next_out+=b;t.output_data+=t.output_data.charAt(_++),--b;);0==i.length&&(i.mode=20);break;case 25:if(0==s.left)break t;t.output_data+=String.fromCharCode(i.length),t.next_out++,s.left--,i.mode=20;break;case 26:if(i.wrap){if(!A(s,32))break t;if(l-=s.left,t.total_out+=l,i.total+=l,l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,t.output_data.length-l,l)),l=s.left,(i.flags?s.hold:j(s.hold))!=i.check){t.msg="incorrect data check",i.mode=B;break}L(s)}i.mode=27;case 27:if(i.wrap&&i.flags){if(!A(s,32))break t;if(s.hold!=(4294967295&i.total)){t.msg="incorrect length check",i.mode=B;break}L(s)}i.mode=28;case 28:n=ZLIB.Z_STREAM_END;break t;case B:n=ZLIB.Z_DATA_ERROR;break t;case 30:return ZLIB.Z_MEM_ERROR;case 31:default:return ZLIB.Z_STREAM_ERROR}return I(s),(i.wsize||l!=t.avail_out&&i.mode<B&&(i.mode<26||a!=ZLIB.Z_FINISH))&&(c=(h=t).state,f=h.output_data.length,null===c.window&&(c.window=""),0==c.wsize&&(c.wsize=1<<c.wbits),f>=c.wsize?c.window=h.output_data.substring(f-c.wsize):c.whave+f<c.wsize?c.window+=h.output_data:c.window=c.window.substring(c.whave-(c.wsize-f))+h.output_data,c.whave=c.window.length,c.whave<c.wsize?c.wnext=c.whave:c.wnext=0),o-=t.avail_in,l-=t.avail_out,t.total_in+=o,t.total_out+=l,i.total+=l,i.wrap&&l&&(t.adler=i.check=t.checksum_function(i.check,t.output_data,0,t.output_data.length)),t.data_type=i.bits+(i.last?64:0)+(i.mode==R?128:0)+(19==i.mode||14==i.mode?256:0),n=(0==o&&0==l||a==ZLIB.Z_FINISH)&&n==ZLIB.Z_OK?ZLIB.Z_BUF_ERROR:n},ZLIB.inflateEnd=function(t){return t&&t.state?(t.state.window=null,t.state=null,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.z_stream.prototype.inflate=function(t,a){this.input_data=t,this.next_in=l(a,"next_in",0),this.avail_in=l(a,"avail_in",t.length-this.next_in);var i=l(a,"flush",ZLIB.Z_SYNC_FLUSH),s=l(a,"avail_out",-1),o="";do{if(this.avail_out=0<=s?s:16384,this.output_data="",this.next_out=0,this.error=ZLIB.inflate(this,i),0<=s)return this.output_data}while((o+=this.output_data,!(0<this.avail_out))&&this.error==ZLIB.Z_OK);return o},ZLIB.z_stream.prototype.inflateReset=function(t){return ZLIB.inflateReset(this,t)}}()
\ No newline at end of file
translate/translate.json
+2089 -2073
@@ -17,8 +17,8 @@
17 "zh-chs": " + CIRA",
18 "zh-cht": " + CIRA",
19 "xloc": [
20 - "default.handlebars->33->1638",
21 - "default.handlebars->33->1640"
20 + "default.handlebars->33->1641",
21 + "default.handlebars->33->1643"
22 ]
23 },
24 {
@@ -204,7 +204,7 @@
204 "zh-chs": " 可以使用密码提示,但不建议使用。",
205 "zh-cht": " 可以使用密碼提示,但不建議使用。",
206 "xloc": [
207 - "default.handlebars->33->1539"
207 + "default.handlebars->33->1542"
208 ]
209 },
210 {
@@ -224,8 +224,8 @@
224 "zh-chs": " 用户需要先登录到该服务器一次,然后才能将其添加到设备组。",
225 "zh-cht": " 用戶需要先登入到該伺服器一次,然後才能將其新增到裝置群。",
226 "xloc": [
227 - "default.handlebars->33->1717",
228 - "default.handlebars->33->2205"
227 + "default.handlebars->33->1720",
228 + "default.handlebars->33->2208"
229 ]
230 },
231 {
@@ -430,7 +430,7 @@
430 "zh-chs": "* 8个字符,1个大写,1个小写,1个数字,1个非字母数字。",
431 "zh-cht": "* 8個字符,1個大寫,1個小寫,1個數字,1個非字母數字。",
432 "xloc": [
433 - "default.handlebars->33->1686",
433 + "default.handlebars->33->1689",
434 "default.handlebars->33->376"
435 ]
436 },
@@ -451,7 +451,7 @@
451 "zh-chs": "*对于BSD,首先运行“ pkg install wget sudo bash ”。",
452 "zh-cht": "*對於BSD,首先運行“ pkg install wget sudo bash ”。",
453 "xloc": [
454 - "default.handlebars->33->451"
454 + "default.handlebars->33->454"
455 ]
456 },
457 {
@@ -506,7 +506,7 @@
506 "zh-cht": ",",
507 "xloc": [
508 "default-mobile.handlebars->11->630",
509 - "default.handlebars->33->1788"
509 + "default.handlebars->33->1791"
510 ]
511 },
512 {
@@ -557,7 +557,7 @@
557 "zh-cht": ",MQTT在線",
558 "xloc": [
559 "default-mobile.handlebars->11->547",
560 - "default.handlebars->33->1249"
560 + "default.handlebars->33->1252"
561 ]
562 },
563 {
@@ -567,7 +567,7 @@
567 "de": ", keine Zustimmung",
568 "ru": ", Нет согласия",
569 "xloc": [
570 - "default.handlebars->33->809"
570 + "default.handlebars->33->812"
571 ]
572 },
573 {
@@ -587,7 +587,7 @@
587 "zh-chs": ",提示同意",
588 "zh-cht": ",提示同意",
589 "xloc": [
590 - "default.handlebars->33->810"
590 + "default.handlebars->33->813"
591 ]
592 },
593 {
@@ -607,7 +607,7 @@
607 "zh-chs": ",软体KVM",
608 "zh-cht": ",軟體KVM",
609 "xloc": [
610 - "default.handlebars->33->1013",
610 + "default.handlebars->33->1016",
611 "sharing.handlebars->11->12"
612 ]
613 },
@@ -617,7 +617,7 @@
617 "nl": ", Werkbalk",
618 "ru": ", Панель инструментов",
619 "xloc": [
620 - "default.handlebars->33->811"
620 + "default.handlebars->33->814"
621 ]
622 },
623 {
@@ -627,7 +627,7 @@
627 "de": ", nur ansehen",
628 "ru": ", Только просмотр",
629 "xloc": [
630 - "default.handlebars->33->808"
630 + "default.handlebars->33->811"
631 ]
632 },
633 {
@@ -650,9 +650,9 @@
650 "default-mobile.handlebars->11->366",
651 "default-mobile.handlebars->11->401",
652 "default-mobile.handlebars->11->412",
653 - "default.handlebars->33->1020",
654 - "default.handlebars->33->1083",
655 - "default.handlebars->33->1103",
653 + "default.handlebars->33->1023",
654 + "default.handlebars->33->1086",
655 + "default.handlebars->33->1106",
656 "sharing.handlebars->11->19",
657 "sharing.handlebars->11->27",
658 "sharing.handlebars->11->44",
@@ -776,7 +776,7 @@
776 "zh-chs": ",{0}观看",
777 "zh-cht": ",{0}觀看",
778 "xloc": [
779 - "default.handlebars->33->1014",
779 + "default.handlebars->33->1017",
780 "sharing.handlebars->11->13"
781 ]
782 },
@@ -843,9 +843,9 @@
843 "xloc": [
844 "default-mobile.handlebars->11->132",
845 "default-mobile.handlebars->11->422",
846 - "default.handlebars->33->1117",
847 - "default.handlebars->33->1840",
848 - "default.handlebars->33->2374",
846 + "default.handlebars->33->1120",
847 + "default.handlebars->33->1843",
848 + "default.handlebars->33->2377",
849 "sharing.handlebars->11->50"
850 ]
851 },
@@ -903,7 +903,7 @@
903 "zh-chs": "1个活跃时段",
904 "zh-cht": "1個活躍時段",
905 "xloc": [
906 - "default.handlebars->33->2278"
906 + "default.handlebars->33->2281"
907 ]
908 },
909 {
@@ -925,7 +925,7 @@
925 "xloc": [
926 "default-mobile.handlebars->11->142",
927 "default-mobile.handlebars->11->673",
928 - "default.handlebars->33->1864",
928 + "default.handlebars->33->1867",
929 "download.handlebars->3->1",
930 "download2.handlebars->5->1",
931 "sharing.handlebars->11->96"
@@ -948,7 +948,7 @@
948 "zh-chs": "1条连接",
949 "zh-cht": "1位聯絡文",
950 "xloc": [
951 - "default.handlebars->33->1016",
951 + "default.handlebars->33->1019",
952 "sharing.handlebars->11->15"
953 ]
954 },
@@ -991,7 +991,7 @@
991 "zh-chs": "1组",
992 "zh-cht": "1群",
993 "xloc": [
994 - "default.handlebars->33->2239"
994 + "default.handlebars->33->2242"
995 ]
996 },
997 {
@@ -1033,8 +1033,8 @@
1033 "zh-chs": "1分钟",
1034 "zh-cht": "1分鐘",
1035 "xloc": [
1036 - "default.handlebars->33->1505",
1037 - "default.handlebars->33->876"
1036 + "default.handlebars->33->1508",
1037 + "default.handlebars->33->879"
1038 ]
1039 },
1040 {
@@ -1096,7 +1096,7 @@
1096 "zh-chs": "有1个用户没有显示,请使用搜索框查找用户...",
1097 "zh-cht": "有1個用戶沒有顯示,請使用搜尋框搜尋用戶...",
1098 "xloc": [
1099 - "default.handlebars->33->2029"
1099 + "default.handlebars->33->2032"
1100 ]
1101 },
1102 {
@@ -1116,7 +1116,7 @@
1116 "zh-chs": "1个节点",
1117 "zh-cht": "1個節點",
1118 "xloc": [
1119 - "default.handlebars->33->479"
1119 + "default.handlebars->33->482"
1120 ]
1121 },
1122 {
@@ -1126,7 +1126,7 @@
1126 "ru": "1 секунда",
1127 "xloc": [
1128 "default-mobile.handlebars->11->318",
1129 - "default.handlebars->33->904"
1129 + "default.handlebars->33->907"
1130 ]
1131 },
1132 {
@@ -1172,7 +1172,7 @@
1172 "default-mobile.handlebars->11->204",
1173 "default-mobile.handlebars->11->207",
1174 "default-mobile.handlebars->11->210",
1175 - "default.handlebars->33->2033",
1175 + "default.handlebars->33->2036",
1176 "default.handlebars->33->309",
1177 "default.handlebars->33->312",
1178 "default.handlebars->33->315",
@@ -1304,8 +1304,8 @@
1304 "zh-chs": "10分钟",
1305 "zh-cht": "10分鐘",
1306 "xloc": [
1307 - "default.handlebars->33->1507",
1308 - "default.handlebars->33->878"
1307 + "default.handlebars->33->1510",
1308 + "default.handlebars->33->881"
1309 ]
1310 },
1311 {
@@ -1315,7 +1315,7 @@
1315 "ru": "10 секунд",
1316 "xloc": [
1317 "default-mobile.handlebars->11->320",
1318 - "default.handlebars->33->906"
1318 + "default.handlebars->33->909"
1319 ]
1320 },
1321 {
@@ -1398,8 +1398,8 @@
1398 "zh-chs": "12小时",
1399 "zh-cht": "12小時",
1400 "xloc": [
1401 - "default.handlebars->33->1515",
1402 - "default.handlebars->33->886"
1401 + "default.handlebars->33->1518",
1402 + "default.handlebars->33->889"
1403 ]
1404 },
1405 {
@@ -1441,8 +1441,8 @@
1441 "zh-chs": "15分钟",
1442 "zh-cht": "15分鐘",
1443 "xloc": [
1444 - "default.handlebars->33->1508",
1445 - "default.handlebars->33->879"
1444 + "default.handlebars->33->1511",
1445 + "default.handlebars->33->882"
1446 ]
1447 },
1448 {
@@ -1462,8 +1462,8 @@
1462 "zh-chs": "16小时",
1463 "zh-cht": "16小時",
1464 "xloc": [
1465 - "default.handlebars->33->1516",
1466 - "default.handlebars->33->887"
1465 + "default.handlebars->33->1519",
1466 + "default.handlebars->33->890"
1467 ]
1468 },
1469 {
@@ -1483,8 +1483,8 @@
1483 "zh-chs": "2天",
1484 "zh-cht": "2天",
1485 "xloc": [
1486 - "default.handlebars->33->1518",
1487 - "default.handlebars->33->889"
1486 + "default.handlebars->33->1521",
1487 + "default.handlebars->33->892"
1488 ]
1489 },
1490 {
@@ -1504,8 +1504,8 @@
1504 "zh-chs": "2小时",
1505 "zh-cht": "2小時",
1506 "xloc": [
1507 - "default.handlebars->33->1512",
1508 - "default.handlebars->33->883"
1507 + "default.handlebars->33->1515",
1508 + "default.handlebars->33->886"
1509 ]
1510 },
1511 {
@@ -1609,8 +1609,8 @@
1609 "zh-chs": "24小时",
1610 "zh-cht": "24小時",
1611 "xloc": [
1612 - "default.handlebars->33->1517",
1613 - "default.handlebars->33->888"
1612 + "default.handlebars->33->1520",
1613 + "default.handlebars->33->891"
1614 ]
1615 },
1616 {
@@ -1672,7 +1672,7 @@
1672 "zh-chs": "2FA备份代码已清除",
1673 "zh-cht": "2FA備份代碼已清除",
1674 "xloc": [
1675 - "default.handlebars->33->1975"
1675 + "default.handlebars->33->1978"
1676 ]
1677 },
1678 {
@@ -1692,8 +1692,8 @@
1692 "zh-chs": "启用第二因素身份验证",
1693 "zh-cht": "啟用第二因素身份驗證",
1694 "xloc": [
1695 - "default.handlebars->33->2046",
1696 - "default.handlebars->33->2261"
1695 + "default.handlebars->33->2049",
1696 + "default.handlebars->33->2264"
1697 ]
1698 },
1699 {
@@ -1812,8 +1812,8 @@
1812 "zh-chs": "30分钟",
1813 "zh-cht": "30分鐘",
1814 "xloc": [
1815 - "default.handlebars->33->1509",
1816 - "default.handlebars->33->880"
1815 + "default.handlebars->33->1512",
1816 + "default.handlebars->33->883"
1817 ]
1818 },
1819 {
@@ -1833,8 +1833,8 @@
1833 "zh-chs": "MeshAgent的32位版本",
1834 "zh-cht": "MeshAgent的32位版本",
1835 "xloc": [
1836 - "default.handlebars->33->441",
1837 - "default.handlebars->33->465"
1836 + "default.handlebars->33->444",
1837 + "default.handlebars->33->468"
1838 ]
1839 },
1840 {
@@ -1876,8 +1876,8 @@
1876 "zh-chs": "4天",
1877 "zh-cht": "4天",
1878 "xloc": [
1879 - "default.handlebars->33->1519",
1880 - "default.handlebars->33->890"
1879 + "default.handlebars->33->1522",
1880 + "default.handlebars->33->893"
1881 ]
1882 },
1883 {
@@ -1897,8 +1897,8 @@
1897 "zh-chs": "4个小时",
1898 "zh-cht": "4個小時",
1899 "xloc": [
1900 - "default.handlebars->33->1513",
1901 - "default.handlebars->33->884"
1900 + "default.handlebars->33->1516",
1901 + "default.handlebars->33->887"
1902 ]
1903 },
1904 {
@@ -1981,8 +1981,8 @@
1981 "zh-chs": "45分钟",
1982 "zh-cht": "45分鐘",
1983 "xloc": [
1984 - "default.handlebars->33->1510",
1985 - "default.handlebars->33->881"
1984 + "default.handlebars->33->1513",
1985 + "default.handlebars->33->884"
1986 ]
1987 },
1988 {
@@ -2022,8 +2022,8 @@
2022 "zh-chs": "5分钟",
2023 "zh-cht": "5分鐘",
2024 "xloc": [
2025 - "default.handlebars->33->1506",
2026 - "default.handlebars->33->877"
2025 + "default.handlebars->33->1509",
2026 + "default.handlebars->33->880"
2027 ]
2028 },
2029 {
@@ -2033,7 +2033,7 @@
2033 "ru": "5 секунд",
2034 "xloc": [
2035 "default-mobile.handlebars->11->319",
2036 - "default.handlebars->33->905"
2036 + "default.handlebars->33->908"
2037 ]
2038 },
2039 {
@@ -2159,8 +2159,8 @@
2159 "zh-chs": "60分钟",
2160 "zh-cht": "60分鐘",
2161 "xloc": [
2162 - "default.handlebars->33->1511",
2163 - "default.handlebars->33->882"
2162 + "default.handlebars->33->1514",
2163 + "default.handlebars->33->885"
2164 ]
2165 },
2166 {
@@ -2202,7 +2202,7 @@
2202 "zh-chs": "64位版本的macOS Mesh Agent",
2203 "zh-cht": "64位版本的macOS Mesh Agent",
2204 "xloc": [
2205 - "default.handlebars->33->455"
2205 + "default.handlebars->33->458"
2206 ]
2207 },
2208 {
@@ -2222,8 +2222,8 @@
2222 "zh-chs": "MeshAgent的64位版本",
2223 "zh-cht": "MeshAgent的64位版本",
2224 "xloc": [
2225 - "default.handlebars->33->445",
2226 - "default.handlebars->33->468"
2225 + "default.handlebars->33->448",
2226 + "default.handlebars->33->471"
2227 ]
2228 },
2229 {
@@ -2280,7 +2280,7 @@
2280 "zh-chs": "7天电源状态",
2281 "zh-cht": "7天電源狀態",
2282 "xloc": [
2283 - "default.handlebars->33->939"
2283 + "default.handlebars->33->942"
2284 ]
2285 },
2286 {
@@ -2343,10 +2343,10 @@
2343 "zh-chs": "8小時",
2344 "zh-cht": "8小時",
2345 "xloc": [
2346 - "default.handlebars->33->1514",
2346 + "default.handlebars->33->1517",
2347 "default.handlebars->33->400",
2348 "default.handlebars->33->414",
2349 - "default.handlebars->33->885"
2349 + "default.handlebars->33->888"
2350 ]
2351 },
2352 {
@@ -2419,7 +2419,7 @@
2419 "fr": "</div><div><a rel=\\\"noreferrer noopener\\\" target=_blank href=\\\"https://play.google.com/store/apps/details?id=com.meshcentral.agent2\\\"><img style=margin-top:20px;margin-left:5px;cursor:pointer width=40 height=40 src=\\\"images/android-40.png\\\" srcset=\\\"images/android-80.png 2x\\\" /></a></div></div>",
2420 "ru": "</div><div><a rel=\\\"noreferrer noopener\\\" target=_blank href=\\\"https://play.google.com/store/apps/details?id=com.meshcentral.agent2\\\"><img style=margin-top:20px;margin-left:5px;cursor:pointer width=40 height=40 src=\\\"images/android-40.png\\\" srcset=\\\"images/android-80.png 2x\\\" /></a></div></div>",
2421 "xloc": [
2422 - "default.handlebars->33->458"
2422 + "default.handlebars->33->461"
2423 ]
2424 },
2425 {
@@ -2580,8 +2580,8 @@
2580 "zh-cht": "ACM",
2581 "xloc": [
2582 "default-mobile.handlebars->11->274",
2583 - "default.handlebars->33->1654",
2584 - "default.handlebars->33->673"
2583 + "default.handlebars->33->1657",
2584 + "default.handlebars->33->676"
2585 ]
2586 },
2587 {
@@ -2636,7 +2636,7 @@
2636 "zh-cht": "AMT",
2637 "xloc": [
2638 "default.handlebars->33->296",
2639 - "default.handlebars->33->507"
2639 + "default.handlebars->33->510"
2640 ]
2641 },
2642 {
@@ -2645,7 +2645,7 @@
2645 "fr": "AMT-OS",
2646 "ru": "AMT-OS",
2647 "xloc": [
2648 - "default.handlebars->33->2452"
2648 + "default.handlebars->33->2455"
2649 ]
2650 },
2651 {
@@ -2761,8 +2761,8 @@
2761 "xloc": [
2762 "default-mobile.handlebars->11->459",
2763 "default-mobile.handlebars->11->461",
2764 - "default.handlebars->33->692",
2765 - "default.handlebars->33->694"
2764 + "default.handlebars->33->695",
2765 + "default.handlebars->33->697"
2766 ]
2767 },
2768 {
@@ -2783,7 +2783,7 @@
2783 "zh-cht": "拒絕存取",
2784 "xloc": [
2785 "default-mobile.handlebars->11->548",
2786 - "default.handlebars->33->1250"
2786 + "default.handlebars->33->1253"
2787 ]
2788 },
2789 {
@@ -2834,7 +2834,7 @@
2834 "zh-chs": "访问服务器档案",
2835 "zh-cht": "存取伺服器檔案",
2836 "xloc": [
2837 - "default.handlebars->33->2211"
2837 + "default.handlebars->33->2214"
2838 ]
2839 },
2840 {
@@ -2923,11 +2923,11 @@
2923 "default-mobile.handlebars->11->243",
2924 "default-mobile.handlebars->11->245",
2925 "default-mobile.handlebars->container->page_content->column_l->p3->p3info->3->p3AccountActions->p2AccountSecurity->1->0",
2926 - "default.handlebars->33->1548",
2927 - "default.handlebars->33->1550",
2928 - "default.handlebars->33->2503",
2929 - "default.handlebars->33->635",
2930 - "default.handlebars->33->637"
2926 + "default.handlebars->33->1551",
2927 + "default.handlebars->33->1553",
2928 + "default.handlebars->33->2506",
2929 + "default.handlebars->33->638",
2930 + "default.handlebars->33->640"
2931 ]
2932 },
2933 {
@@ -2938,7 +2938,7 @@
2938 "ru": "Настройки аккаунта",
2939 "xloc": [
2940 "default-mobile.handlebars->11->641",
2941 - "default.handlebars->33->2382"
2941 + "default.handlebars->33->2385"
2942 ]
2943 },
2944 {
@@ -2999,7 +2999,7 @@
2999 "zh-chs": "帐户已更改:{0}",
3000 "zh-cht": "帳戶已更改:{0}",
3001 "xloc": [
3002 - "default.handlebars->33->1948"
3002 + "default.handlebars->33->1951"
3003 ]
3004 },
3005 {
@@ -3019,7 +3019,7 @@
3019 "zh-chs": "创建帐户,电子邮件为{0}",
3020 "zh-cht": "創建帳戶,電子郵件為{0}",
3021 "xloc": [
3022 - "default.handlebars->33->1947"
3022 + "default.handlebars->33->1950"
3023 ]
3024 },
3025 {
@@ -3039,7 +3039,7 @@
3039 "zh-chs": "创建帐户,用户名是{0}",
3040 "zh-cht": "帳戶已創建,用戶名是{0}",
3041 "xloc": [
3042 - "default.handlebars->33->1946"
3042 + "default.handlebars->33->1949"
3043 ]
3044 },
3045 {
@@ -3059,8 +3059,8 @@
3059 "zh-chs": "帐户已被锁定",
3060 "zh-cht": "帳戶已被鎖定",
3061 "xloc": [
3062 - "default.handlebars->33->2048",
3063 - "default.handlebars->33->2208"
3062 + "default.handlebars->33->2051",
3063 + "default.handlebars->33->2211"
3064 ]
3065 },
3066 {
@@ -3081,7 +3081,7 @@
3081 "zh-cht": "達到帳戶限制。",
3082 "xloc": [
3083 "default-mobile.handlebars->11->653",
3084 - "default.handlebars->33->2394",
3084 + "default.handlebars->33->2397",
3085 "login-mobile.handlebars->5->6",
3086 "login.handlebars->5->6",
3087 "login2.handlebars->7->8"
@@ -3126,7 +3126,7 @@
3126 "zh-chs": "帐号登录",
3127 "zh-cht": "帳號登錄",
3128 "xloc": [
3129 - "default.handlebars->33->1883"
3129 + "default.handlebars->33->1886"
3130 ]
3131 },
3132 {
@@ -3136,7 +3136,7 @@
3136 "de": "Konto Login von {0}, {1}, {2}",
3137 "ru": "Вход в аккаунт с {0}, {1}, {2}",
3138 "xloc": [
3139 - "default.handlebars->33->1989"
3139 + "default.handlebars->33->1992"
3140 ]
3141 },
3142 {
@@ -3156,7 +3156,7 @@
3156 "zh-chs": "帐户登出",
3157 "zh-cht": "帳戶登出",
3158 "xloc": [
3159 - "default.handlebars->33->1884"
3159 + "default.handlebars->33->1887"
3160 ]
3161 },
3162 {
@@ -3198,7 +3198,7 @@
3198 "zh-chs": "帐户密码已更改:{0}",
3199 "zh-cht": "帳戶密碼已更改:{0}",
3200 "xloc": [
3201 - "default.handlebars->33->1956"
3201 + "default.handlebars->33->1959"
3202 ]
3203 },
3204 {
@@ -3218,7 +3218,7 @@
3218 "zh-chs": "帐户已删除",
3219 "zh-cht": "帳戶已刪除",
3220 "xloc": [
3221 - "default.handlebars->33->1945"
3221 + "default.handlebars->33->1948"
3222 ]
3223 },
3224 {
@@ -3259,7 +3259,7 @@
3259 "zh-cht": "指令",
3260 "xloc": [
3261 "default-mobile.handlebars->11->554",
3262 - "default.handlebars->33->1256",
3262 + "default.handlebars->33->1259",
3263 "default.handlebars->container->column_l->p42->p42tbl->1->0->8"
3264 ]
3265 },
@@ -3280,8 +3280,8 @@
3280 "zh-chs": "动作档案",
3281 "zh-cht": "動作檔案",
3282 "xloc": [
3283 - "default.handlebars->33->985",
3284 - "default.handlebars->33->987"
3283 + "default.handlebars->33->988",
3284 + "default.handlebars->33->990"
3285 ]
3286 },
3287 {
@@ -3305,7 +3305,7 @@
3305 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea4->1->3",
3306 "default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->0->1->1",
3307 "default-mobile.handlebars->container->page_content->column_l->p10->p10terminal->termTable->termarea4->1->3",
3308 - "default.handlebars->33->739",
3308 + "default.handlebars->33->742",
3309 "default.handlebars->container->column_l->p11->deskarea0->deskarea1->1",
3310 "default.handlebars->container->column_l->p12->termTable->1->1->0->1->1",
3311 "default.handlebars->container->column_l->p13->p13toolbar->1->0->1->1"
@@ -3388,7 +3388,7 @@
3388 "zh-chs": "如果ACM失败,则激活到CCM",
3389 "zh-cht": "如果ACM失敗,則激活到CCM",
3390 "xloc": [
3391 - "default.handlebars->33->1677"
3391 + "default.handlebars->33->1680"
3392 ]
3393 },
3394 {
@@ -3411,9 +3411,9 @@
3411 "default-mobile.handlebars->11->269",
3412 "default-mobile.handlebars->11->271",
3413 "default-mobile.handlebars->11->510",
3414 - "default.handlebars->33->1211",
3415 - "default.handlebars->33->666",
3416 - "default.handlebars->33->668"
3414 + "default.handlebars->33->1214",
3415 + "default.handlebars->33->669",
3416 + "default.handlebars->33->671"
3417 ]
3418 },
3419 {
@@ -3453,7 +3453,7 @@
3453 "zh-chs": "主动设备共享",
3454 "zh-cht": "主動設備共享",
3455 "xloc": [
3456 - "default.handlebars->33->797"
3456 + "default.handlebars->33->800"
3457 ]
3458 },
3459 {
@@ -3462,7 +3462,7 @@
3462 "fr": "Jetons de connexion actifs",
3463 "ru": "Активные токены входа",
3464 "xloc": [
3465 - "default.handlebars->33->1569"
3465 + "default.handlebars->33->1572"
3466 ]
3467 },
3468 {
@@ -3490,7 +3490,7 @@
3490 "ru": "Добавить",
3491 "xloc": [
3492 "default-mobile.handlebars->11->393",
3493 - "default.handlebars->33->1051"
3493 + "default.handlebars->33->1054"
3494 ]
3495 },
3496 {
@@ -3510,7 +3510,7 @@
3510 "zh-chs": "添加代理",
3511 "zh-cht": "新增代理",
3512 "xloc": [
3513 - "default.handlebars->33->1650",
3513 + "default.handlebars->33->1653",
3514 "default.handlebars->33->342"
3515 ]
3516 },
@@ -3548,8 +3548,8 @@
3548 "zh-chs": "添加设备",
3549 "zh-cht": "新增裝置",
3550 "xloc": [
3551 - "default.handlebars->33->2185",
3552 - "default.handlebars->33->2315",
3551 + "default.handlebars->33->2188",
3552 + "default.handlebars->33->2318",
3553 "default.handlebars->33->346"
3554 ]
3555 },
@@ -3570,7 +3570,7 @@
3570 "zh-chs": "添加设备日志",
3571 "zh-cht": "新增裝置日誌",
3572 "xloc": [
3573 - "default.handlebars->33->853"
3573 + "default.handlebars->33->856"
3574 ]
3575 },
3576 {
@@ -3590,9 +3590,9 @@
3590 "zh-chs": "添加设备组",
3591 "zh-cht": "新增裝置群",
3592 "xloc": [
3593 - "default.handlebars->33->1752",
3594 - "default.handlebars->33->2179",
3595 - "default.handlebars->33->2303",
3593 + "default.handlebars->33->1755",
3594 + "default.handlebars->33->2182",
3595 + "default.handlebars->33->2306",
3596 "default.handlebars->33->276"
3597 ]
3598 },
@@ -3613,7 +3613,7 @@
3613 "zh-chs": "添加设备组权限",
3614 "zh-cht": "新增裝置群權限",
3615 "xloc": [
3616 - "default.handlebars->33->1749"
3616 + "default.handlebars->33->1752"
3617 ]
3618 },
3619 {
@@ -3633,8 +3633,8 @@
3633 "zh-chs": "添加设备权限",
3634 "zh-cht": "新增裝置權限",
3635 "xloc": [
3636 - "default.handlebars->33->1754",
3637 - "default.handlebars->33->1756"
3636 + "default.handlebars->33->1757",
3637 + "default.handlebars->33->1759"
3638 ]
3639 },
3640 {
@@ -3731,7 +3731,7 @@
3731 "zh-chs": "添加成员身份",
3732 "zh-cht": "新增成員身份",
3733 "xloc": [
3734 - "default.handlebars->33->2335"
3734 + "default.handlebars->33->2338"
3735 ]
3736 },
3737 {
@@ -3751,7 +3751,7 @@
3751 "zh-chs": "添加 Mesh Agent",
3752 "zh-cht": "新增 Mesh Agent",
3753 "xloc": [
3754 - "default.handlebars->33->478"
3754 + "default.handlebars->33->481"
3755 ]
3756 },
3757 {
@@ -3771,8 +3771,8 @@
3771 "zh-chs": "添加安全密钥",
3772 "zh-cht": "新增安全密鑰",
3773 "xloc": [
3774 - "default.handlebars->33->1295",
3775 - "default.handlebars->33->1296",
3774 + "default.handlebars->33->1298",
3775 + "default.handlebars->33->1299",
3776 "default.handlebars->33->167",
3777 "default.handlebars->33->169",
3778 "default.handlebars->33->172",
@@ -3797,7 +3797,7 @@
3797 "zh-cht": "新增用戶",
3798 "xloc": [
3799 "default-mobile.handlebars->11->570",
3800 - "default.handlebars->33->789"
3800 + "default.handlebars->33->792"
3801 ]
3802 },
3803 {
@@ -3817,7 +3817,7 @@
3817 "zh-chs": "添加用户设备权限",
3818 "zh-cht": "新增用戶裝置權限",
3819 "xloc": [
3820 - "default.handlebars->33->1759"
3820 + "default.handlebars->33->1762"
3821 ]
3822 },
3823 {
@@ -3837,10 +3837,10 @@
3837 "zh-chs": "添加用户组",
3838 "zh-cht": "新增用戶群",
3839 "xloc": [
3840 - "default.handlebars->33->1646",
3841 - "default.handlebars->33->1751",
3842 - "default.handlebars->33->2309",
3843 - "default.handlebars->33->790"
3840 + "default.handlebars->33->1649",
3841 + "default.handlebars->33->1754",
3842 + "default.handlebars->33->2312",
3843 + "default.handlebars->33->793"
3844 ]
3845 },
3846 {
@@ -3860,7 +3860,7 @@
3860 "zh-chs": "添加用户组设备权限",
3861 "zh-cht": "新增用戶群裝置權限",
3862 "xloc": [
3863 - "default.handlebars->33->1761"
3863 + "default.handlebars->33->1764"
3864 ]
3865 },
3866 {
@@ -3917,8 +3917,8 @@
3917 "zh-chs": "添加用户",
3918 "zh-cht": "新增用戶",
3919 "xloc": [
3920 - "default.handlebars->33->1645",
3921 - "default.handlebars->33->2174"
3920 + "default.handlebars->33->1648",
3921 + "default.handlebars->33->2177"
3922 ]
3923 },
3924 {
@@ -3938,7 +3938,7 @@
3938 "zh-chs": "将用户添加到设备组",
3939 "zh-cht": "將用戶新增到裝置群",
3940 "xloc": [
3941 - "default.handlebars->33->1748"
3941 + "default.handlebars->33->1751"
3942 ]
3943 },
3944 {
@@ -3958,7 +3958,7 @@
3958 "zh-chs": "将用户添加到用户组",
3959 "zh-cht": "將用戶新增到用戶群",
3960 "xloc": [
3961 - "default.handlebars->33->2207"
3961 + "default.handlebars->33->2210"
3962 ]
3963 },
3964 {
@@ -4084,7 +4084,7 @@
4084 "zh-chs": "通过安装Mesh Agent将新计算机添加到该设备组。",
4085 "zh-cht": "通過安裝Mesh Agent將新電腦新增到該裝置群。",
4086 "xloc": [
4087 - "default.handlebars->33->1649",
4087 + "default.handlebars->33->1652",
4088 "default.handlebars->33->341"
4089 ]
4090 },
@@ -4123,7 +4123,7 @@
4123 "zh-chs": "添加标签",
4124 "zh-cht": "新增標籤",
4125 "xloc": [
4126 - "default.handlebars->33->547"
4126 + "default.handlebars->33->550"
4127 ]
4128 },
4129 {
@@ -4163,7 +4163,7 @@
4163 "zh-chs": "添加了身份验证应用程序",
4164 "zh-cht": "添加了身份驗證應用程序",
4165 "xloc": [
4166 - "default.handlebars->33->1972"
4166 + "default.handlebars->33->1975"
4167 ]
4168 },
4169 {
@@ -4183,7 +4183,7 @@
4183 "zh-chs": "已将设备共享{0}从{1}添加到{2}",
4184 "zh-cht": "已將設備共享{0}從{1}添加到{2}",
4185 "xloc": [
4186 - "default.handlebars->33->1983"
4186 + "default.handlebars->33->1986"
4187 ]
4188 },
4189 {
@@ -4203,8 +4203,8 @@
4203 "zh-chs": "已将设备{0}添加到设备组{1}",
4204 "zh-cht": "已將設備{0}添加到設備組{1}",
4205 "xloc": [
4206 - "default.handlebars->33->1939",
4207 - "default.handlebars->33->1966"
4206 + "default.handlebars->33->1942",
4207 + "default.handlebars->33->1969"
4208 ]
4209 },
4210 {
@@ -4213,7 +4213,7 @@
4213 "fr": "Jeton de connexion ajouté",
4214 "ru": "Добавлен токен входа",
4215 "xloc": [
4216 - "default.handlebars->33->1997"
4216 + "default.handlebars->33->2000"
4217 ]
4218 },
4219 {
@@ -4221,7 +4221,7 @@
4221 "nl": "Verificatie apparaat voor pushmeldingen toegevoegd",
4222 "fr": "Appareil d'authentification par notification ajouté",
4223 "xloc": [
4224 - "default.handlebars->33->1995"
4224 + "default.handlebars->33->1998"
4225 ]
4226 },
4227 {
@@ -4241,7 +4241,7 @@
4241 "zh-chs": "添加了安全密钥",
4242 "zh-cht": "添加了安全密鑰",
4243 "xloc": [
4244 - "default.handlebars->33->1977"
4244 + "default.handlebars->33->1980"
4245 ]
4246 },
4247 {
@@ -4261,7 +4261,7 @@
4261 "zh-chs": "已将用户组{0}添加到设备组{1}",
4262 "zh-cht": "已將用戶組{0}添加到設備組{1}",
4263 "xloc": [
4264 - "default.handlebars->33->1950"
4264 + "default.handlebars->33->1953"
4265 ]
4266 },
4267 {
@@ -4281,8 +4281,8 @@
4281 "zh-chs": "已将用户{0}添加到用户组{1}",
4282 "zh-cht": "已將用戶{0}添加到用戶組{1}",
4283 "xloc": [
4284 - "default.handlebars->33->1953",
4285 - "default.handlebars->33->1962"
4284 + "default.handlebars->33->1956",
4285 + "default.handlebars->33->1965"
4286 ]
4287 },
4288 {
@@ -4343,7 +4343,7 @@
4343 "zh-cht": "管理員控制模式(ACM)",
4344 "xloc": [
4345 "default-mobile.handlebars->11->512",
4346 - "default.handlebars->33->1213"
4346 + "default.handlebars->33->1216"
4347 ]
4348 },
4349 {
@@ -4364,7 +4364,7 @@
4364 "zh-cht": "管理員憑證",
4365 "xloc": [
4366 "default-mobile.handlebars->11->518",
4367 - "default.handlebars->33->1219"
4367 + "default.handlebars->33->1222"
4368 ]
4369 },
4370 {
@@ -4405,7 +4405,7 @@
4405 "zh-chs": "管理领域",
4406 "zh-cht": "管理領域",
4407 "xloc": [
4408 - "default.handlebars->33->2243"
4408 + "default.handlebars->33->2246"
4409 ]
4410 },
4411 {
@@ -4446,7 +4446,7 @@
4446 "zh-chs": "管理领域",
4447 "zh-cht": "管理領域",
4448 "xloc": [
4449 - "default.handlebars->33->2111"
4449 + "default.handlebars->33->2114"
4450 ]
4451 },
4452 {
@@ -4466,7 +4466,7 @@
4466 "zh-chs": "管理员",
4467 "zh-cht": "管理員",
4468 "xloc": [
4469 - "default.handlebars->33->2040"
4469 + "default.handlebars->33->2043"
4470 ]
4471 },
4472 {
@@ -4486,7 +4486,7 @@
4486 "zh-chs": "南非文",
4487 "zh-cht": "南非文",
4488 "xloc": [
4489 - "default.handlebars->33->1298"
4489 + "default.handlebars->33->1301"
4490 ]
4491 },
4492 {
@@ -4510,11 +4510,11 @@
4510 "default-mobile.handlebars->11->235",
4511 "default-mobile.handlebars->11->288",
4512 "default-mobile.handlebars->container->page_content->column_l->p10->p10console->consoleTable->1->4->1->1->1->0->p15outputselecttd->p15outputselect->p15outputselect1",
4513 - "default.handlebars->33->1815",
4514 - "default.handlebars->33->1828",
4515 - "default.handlebars->33->2450",
4513 + "default.handlebars->33->1818",
4514 + "default.handlebars->33->1831",
4515 + "default.handlebars->33->2453",
4516 "default.handlebars->33->292",
4517 - "default.handlebars->33->503",
4517 + "default.handlebars->33->506",
4518 "default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->p15outputselecttd->p15outputselect->p15outputselect1"
4519 ]
4520 },
@@ -4535,8 +4535,8 @@
4535 "zh-chs": "代理+英特尔AMT",
4536 "zh-cht": "代理+Intel&reg; AMT",
4537 "xloc": [
4538 - "default.handlebars->33->1817",
4539 - "default.handlebars->33->1830"
4538 + "default.handlebars->33->1820",
4539 + "default.handlebars->33->1833"
4540 ]
4541 },
4542 {
@@ -4578,7 +4578,7 @@
4578 "zh-cht": "代理控制台",
4579 "xloc": [
4580 "default-mobile.handlebars->11->612",
4581 - "default.handlebars->33->1769"
4581 + "default.handlebars->33->1772"
4582 ]
4583 },
4584 {
@@ -4598,7 +4598,7 @@
4598 "zh-chs": "代理错误计数器",
4599 "zh-cht": "代理錯誤計數器",
4600 "xloc": [
4601 - "default.handlebars->33->2419"
4601 + "default.handlebars->33->2422"
4602 ]
4603 },
4604 {
@@ -4711,7 +4711,7 @@
4711 "zh-chs": "代理时段",
4712 "zh-cht": "代理時段",
4713 "xloc": [
4714 - "default.handlebars->33->2435"
4714 + "default.handlebars->33->2438"
4715 ]
4716 },
4717 {
@@ -4732,7 +4732,7 @@
4732 "zh-cht": "代理標籤",
4733 "xloc": [
4734 "default-mobile.handlebars->11->287",
4735 - "default.handlebars->33->689"
4735 + "default.handlebars->33->692"
4736 ]
4737 },
4738 {
@@ -4752,7 +4752,7 @@
4752 "zh-chs": "代理类型",
4753 "zh-cht": "代理類型",
4754 "xloc": [
4755 - "default.handlebars->33->1826",
4755 + "default.handlebars->33->1829",
4756 "default.handlebars->container->column_l->p21->p21main->1->1->meshOsChartDiv->1"
4757 ]
4758 },
@@ -4773,7 +4773,7 @@
4773 "zh-chs": "代理关闭了与服务器压缩的{0}%代理会话。已发送:{1},已压缩:{2}",
4774 "zh-cht": "代理關閉了與{0}%代理到服務器壓縮的會話。已發送:{1},已壓縮:{2}",
4775 "xloc": [
4776 - "default.handlebars->33->1936"
4776 + "default.handlebars->33->1939"
4777 ]
4778 },
4779 {
@@ -4794,8 +4794,8 @@
4794 "zh-cht": "代理已連接",
4795 "xloc": [
4796 "default.handlebars->33->181",
4797 - "default.handlebars->33->780",
4798 - "default.handlebars->33->781"
4797 + "default.handlebars->33->783",
4798 + "default.handlebars->33->784"
4799 ]
4800 },
4801 {
@@ -4836,7 +4836,7 @@
4836 "zh-cht": "代理離線",
4837 "xloc": [
4838 "default-mobile.handlebars->11->546",
4839 - "default.handlebars->33->1248"
4839 + "default.handlebars->33->1251"
4840 ]
4841 },
4842 {
@@ -4857,7 +4857,7 @@
4857 "zh-cht": "代理在線",
4858 "xloc": [
4859 "default-mobile.handlebars->11->545",
4860 - "default.handlebars->33->1247"
4860 + "default.handlebars->33->1250"
4861 ]
4862 },
4863 {
@@ -4878,7 +4878,7 @@
4878 "zh-cht": "代理在特權降低的遠程設備上運行。",
4879 "xloc": [
4880 "default.handlebars->33->179",
4881 - "default.handlebars->33->778"
4881 + "default.handlebars->33->781"
4882 ]
4883 },
4884 {
@@ -4898,7 +4898,7 @@
4898 "zh-chs": "代理",
4899 "zh-cht": "代理",
4900 "xloc": [
4901 - "default.handlebars->33->2463"
4901 + "default.handlebars->33->2466"
4902 ]
4903 },
4904 {
@@ -4918,7 +4918,7 @@
4918 "zh-chs": "阿尔巴尼亚文",
4919 "zh-cht": "阿爾巴尼亞文",
4920 "xloc": [
4921 - "default.handlebars->33->1299"
4921 + "default.handlebars->33->1302"
4922 ]
4923 },
4924 {
@@ -4961,7 +4961,7 @@
4961 "zh-chs": "全部可用",
4962 "zh-cht": "全部可用",
4963 "xloc": [
4964 - "default.handlebars->33->2003"
4964 + "default.handlebars->33->2006"
4965 ]
4966 },
4967 {
@@ -4981,7 +4981,7 @@
4981 "zh-chs": "所有显示",
4982 "zh-cht": "所有顯示",
4983 "xloc": [
4984 - "default.handlebars->33->1076"
4984 + "default.handlebars->33->1079"
4985 ]
4986 },
4987 {
@@ -5001,7 +5001,7 @@
5001 "zh-chs": "所有事件",
5002 "zh-cht": "所有事件",
5003 "xloc": [
5004 - "default.handlebars->33->2001"
5004 + "default.handlebars->33->2004"
5005 ]
5006 },
5007 {
@@ -5021,9 +5021,9 @@
5021 "zh-chs": "全部聚焦",
5022 "zh-cht": "全部聚焦",
5023 "xloc": [
5024 - "default.handlebars->33->1021",
5025 - "default.handlebars->33->1023",
5026 - "default.handlebars->33->1024"
5024 + "default.handlebars->33->1024",
5025 + "default.handlebars->33->1026",
5026 + "default.handlebars->33->1027"
5027 ]
5028 },
5029 {
@@ -5043,8 +5043,8 @@
5043 "zh-chs": "允许用户管理此设备组和该组中的设备。",
5044 "zh-cht": "允許用戶管理此裝置群和該群中的裝置。",
5045 "xloc": [
5046 - "default.handlebars->33->1715",
5047 - "default.handlebars->33->2204"
5046 + "default.handlebars->33->1718",
5047 + "default.handlebars->33->2207"
5048 ]
5049 },
5050 {
@@ -5064,7 +5064,7 @@
5064 "zh-chs": "允许用户管理此设备。",
5065 "zh-cht": "允許用戶管理此裝置。",
5066 "xloc": [
5067 - "default.handlebars->33->1716"
5067 + "default.handlebars->33->1719"
5068 ]
5069 },
5070 {
@@ -5106,8 +5106,8 @@
5106 "xloc": [
5107 "default-mobile.handlebars->11->386",
5108 "default-mobile.handlebars->11->390",
5109 - "default.handlebars->33->1044",
5110 - "default.handlebars->33->1048"
5109 + "default.handlebars->33->1047",
5110 + "default.handlebars->33->1051"
5111 ]
5112 },
5113 {
@@ -5169,7 +5169,7 @@
5169 "zh-chs": "备用(F10 = ESC + 0)",
5170 "zh-cht": "備用(F10 = ESC + 0)",
5171 "xloc": [
5172 - "default.handlebars->33->1096",
5172 + "default.handlebars->33->1099",
5173 "sharing.handlebars->11->37"
5174 ]
5175 },
@@ -5212,10 +5212,10 @@
5212 "zh-chs": "一直通知",
5213 "zh-cht": "一直通知",
5214 "xloc": [
5215 - "default.handlebars->33->1625",
5216 - "default.handlebars->33->2165",
5217 - "default.handlebars->33->2252",
5218 - "default.handlebars->33->717"
5215 + "default.handlebars->33->1628",
5216 + "default.handlebars->33->2168",
5217 + "default.handlebars->33->2255",
5218 + "default.handlebars->33->720"
5219 ]
5220 },
5221 {
@@ -5235,10 +5235,16 @@
5235 "zh-chs": "一直提示",
5236 "zh-cht": "一直提示",
5237 "xloc": [
5238 - "default.handlebars->33->1626",
5239 - "default.handlebars->33->2166",
5240 - "default.handlebars->33->2253",
5241 - "default.handlebars->33->718"
5238 + "default.handlebars->33->1629",
5239 + "default.handlebars->33->2169",
5240 + "default.handlebars->33->2256",
5241 + "default.handlebars->33->721"
5242 + ]
5243 + },
5244 + {
5245 + "en": "Always connected",
5246 + "xloc": [
5247 + "default.handlebars->33->441"
5248 ]
5249 },
5250 {
@@ -5388,8 +5394,8 @@
5394 "de": "Anti-virus ist nicht aktiv",
5395 "ru": "Антивирус не активен",
5396 "xloc": [
5391 - "default.handlebars->33->1819",
5392 - "default.handlebars->33->1833"
5397 + "default.handlebars->33->1822",
5398 + "default.handlebars->33->1836"
5399 ]
5400 },
5401 {
@@ -5410,7 +5416,7 @@
5416 "zh-cht": "防毒軟體",
5417 "xloc": [
5418 "default-mobile.handlebars->11->475",
5413 - "default.handlebars->33->708"
5419 + "default.handlebars->33->711"
5420 ]
5421 },
5422 {
@@ -5531,7 +5537,7 @@
5537 "zh-chs": "阿拉伯文(阿尔及利亚)",
5538 "zh-cht": "阿拉伯文(阿爾及利亞)",
5539 "xloc": [
5534 - "default.handlebars->33->1301"
5540 + "default.handlebars->33->1304"
5541 ]
5542 },
5543 {
@@ -5551,7 +5557,7 @@
5557 "zh-chs": "阿拉伯文(巴林)",
5558 "zh-cht": "阿拉伯文(巴林)",
5559 "xloc": [
5554 - "default.handlebars->33->1302"
5560 + "default.handlebars->33->1305"
5561 ]
5562 },
5563 {
@@ -5571,7 +5577,7 @@
5577 "zh-chs": "阿拉伯文(埃及)",
5578 "zh-cht": "阿拉伯文(埃及)",
5579 "xloc": [
5574 - "default.handlebars->33->1303"
5580 + "default.handlebars->33->1306"
5581 ]
5582 },
5583 {
@@ -5591,7 +5597,7 @@
5597 "zh-chs": "阿拉伯文(伊拉克)",
5598 "zh-cht": "阿拉伯文(伊拉克)",
5599 "xloc": [
5594 - "default.handlebars->33->1304"
5600 + "default.handlebars->33->1307"
5601 ]
5602 },
5603 {
@@ -5611,7 +5617,7 @@
5617 "zh-chs": "阿拉伯文(约旦)",
5618 "zh-cht": "阿拉伯文(約旦)",
5619 "xloc": [
5614 - "default.handlebars->33->1305"
5620 + "default.handlebars->33->1308"
5621 ]
5622 },
5623 {
@@ -5631,7 +5637,7 @@
5637 "zh-chs": "阿拉伯文(科威特)",
5638 "zh-cht": "阿拉伯文(科威特)",
5639 "xloc": [
5634 - "default.handlebars->33->1306"
5640 + "default.handlebars->33->1309"
5641 ]
5642 },
5643 {
@@ -5651,7 +5657,7 @@
5657 "zh-chs": "阿拉伯文(黎巴嫩)",
5658 "zh-cht": "阿拉伯文(黎巴嫩)",
5659 "xloc": [
5654 - "default.handlebars->33->1307"
5660 + "default.handlebars->33->1310"
5661 ]
5662 },
5663 {
@@ -5671,7 +5677,7 @@
5677 "zh-chs": "阿拉伯文(利比亚)",
5678 "zh-cht": "阿拉伯文(利比亞)",
5679 "xloc": [
5674 - "default.handlebars->33->1308"
5680 + "default.handlebars->33->1311"
5681 ]
5682 },
5683 {
@@ -5691,7 +5697,7 @@
5697 "zh-chs": "阿拉伯文(摩洛哥)",
5698 "zh-cht": "阿拉伯文(摩洛哥)",
5699 "xloc": [
5694 - "default.handlebars->33->1309"
5700 + "default.handlebars->33->1312"
5701 ]
5702 },
5703 {
@@ -5711,7 +5717,7 @@
5717 "zh-chs": "阿拉伯文(阿曼)",
5718 "zh-cht": "阿拉伯文(阿曼)",
5719 "xloc": [
5714 - "default.handlebars->33->1310"
5720 + "default.handlebars->33->1313"
5721 ]
5722 },
5723 {
@@ -5731,7 +5737,7 @@
5737 "zh-chs": "阿拉伯文(卡塔尔)",
5738 "zh-cht": "阿拉伯文(卡塔爾)",
5739 "xloc": [
5734 - "default.handlebars->33->1311"
5740 + "default.handlebars->33->1314"
5741 ]
5742 },
5743 {
@@ -5751,7 +5757,7 @@
5757 "zh-chs": "阿拉伯文(沙特阿拉伯)",
5758 "zh-cht": "阿拉伯文(沙特阿拉伯)",
5759 "xloc": [
5754 - "default.handlebars->33->1312"
5760 + "default.handlebars->33->1315"
5761 ]
5762 },
5763 {
@@ -5771,7 +5777,7 @@
5777 "zh-chs": "阿拉伯文(标准)",
5778 "zh-cht": "阿拉伯文(標準)",
5779 "xloc": [
5774 - "default.handlebars->33->1300"
5780 + "default.handlebars->33->1303"
5781 ]
5782 },
5783 {
@@ -5791,7 +5797,7 @@
5797 "zh-chs": "阿拉伯文(叙利亚)",
5798 "zh-cht": "阿拉伯文(敘利亞)",
5799 "xloc": [
5794 - "default.handlebars->33->1313"
5800 + "default.handlebars->33->1316"
5801 ]
5802 },
5803 {
@@ -5811,7 +5817,7 @@
5817 "zh-chs": "阿拉伯文(突尼斯)",
5818 "zh-cht": "阿拉伯文(突尼斯)",
5819 "xloc": [
5814 - "default.handlebars->33->1314"
5820 + "default.handlebars->33->1317"
5821 ]
5822 },
5823 {
@@ -5831,7 +5837,7 @@
5837 "zh-chs": "阿拉伯文(阿联酋)",
5838 "zh-cht": "阿拉伯文(阿聯酋)",
5839 "xloc": [
5834 - "default.handlebars->33->1315"
5840 + "default.handlebars->33->1318"
5841 ]
5842 },
5843 {
@@ -5851,7 +5857,7 @@
5857 "zh-chs": "阿拉伯文(也门)",
5858 "zh-cht": "阿拉伯文(也門)",
5859 "xloc": [
5854 - "default.handlebars->33->1316"
5860 + "default.handlebars->33->1319"
5861 ]
5862 },
5863 {
@@ -5871,7 +5877,7 @@
5877 "zh-chs": "阿拉贡文",
5878 "zh-cht": "阿拉貢文",
5879 "xloc": [
5874 - "default.handlebars->33->1317"
5880 + "default.handlebars->33->1320"
5881 ]
5882 },
5883 {
@@ -5892,7 +5898,7 @@
5898 "zh-cht": "結構",
5899 "xloc": [
5900 "default-mobile.handlebars->11->458",
5895 - "default.handlebars->33->1166"
5901 + "default.handlebars->33->1169"
5902 ]
5903 },
5904 {
@@ -5933,7 +5939,7 @@
5939 "zh-cht": "你確定要刪除群{0}嗎?刪除裝置群還將刪除該群中有關裝置的所有訊息。",
5940 "xloc": [
5941 "default-mobile.handlebars->11->577",
5936 - "default.handlebars->33->1691"
5942 + "default.handlebars->33->1694"
5943 ]
5944 },
5945 {
@@ -5953,7 +5959,7 @@
5959 "zh-chs": "您确定要删除节点{0}吗?",
5960 "zh-cht": "你確定要刪除節點{0}嗎?",
5961 "xloc": [
5956 - "default.handlebars->33->961"
5962 + "default.handlebars->33->964"
5963 ]
5964 },
5965 {
@@ -5973,7 +5979,7 @@
5979 "zh-chs": "您确定要卸载所选代理吗?",
5980 "zh-cht": "你確定要卸載所選代理嗎?",
5981 "xloc": [
5976 - "default.handlebars->33->950"
5982 + "default.handlebars->33->953"
5983 ]
5984 },
5985 {
@@ -5993,7 +5999,7 @@
5999 "zh-chs": "您确定要卸载所选的{0}代理吗?",
6000 "zh-cht": "你確定要卸載所選的{0}代理嗎?",
6001 "xloc": [
5996 - "default.handlebars->33->949"
6002 + "default.handlebars->33->952"
6003 ]
6004 },
6005 {
@@ -6013,7 +6019,7 @@
6019 "zh-chs": "您确定要{0}插件吗:{1}",
6020 "zh-cht": "你確定要{0}外掛嗎:{1}",
6021 "xloc": [
6016 - "default.handlebars->33->2512"
6022 + "default.handlebars->33->2515"
6023 ]
6024 },
6025 {
@@ -6033,7 +6039,7 @@
6039 "zh-chs": "亚美尼亚文",
6040 "zh-cht": "亞美尼亞文",
6041 "xloc": [
6036 - "default.handlebars->33->1318"
6042 + "default.handlebars->33->1321"
6043 ]
6044 },
6045 {
@@ -6093,7 +6099,7 @@
6099 "zh-chs": "阿萨姆文",
6100 "zh-cht": "阿薩姆文",
6101 "xloc": [
6096 - "default.handlebars->33->1319"
6102 + "default.handlebars->33->1322"
6103 ]
6104 },
6105 {
@@ -6122,7 +6128,7 @@
6128 "fr": "Assistant pour Windows (.exe)",
6129 "ru": "Ассистент для Windows (.exe)",
6130 "xloc": [
6125 - "default.handlebars->33->461"
6131 + "default.handlebars->33->464"
6132 ]
6133 },
6134 {
@@ -6151,7 +6157,7 @@
6157 "zh-chs": "阿斯图里亚斯文",
6158 "zh-cht": "阿斯圖里亞斯文",
6159 "xloc": [
6154 - "default.handlebars->33->1320"
6160 + "default.handlebars->33->1323"
6161 ]
6162 },
6163 {
@@ -6171,7 +6177,7 @@
6177 "zh-chs": "尝试激活英特尔(R)AMT ACM模式",
6178 "zh-cht": "嘗試激活英特爾(R)AMT ACM模式",
6179 "xloc": [
6174 - "default.handlebars->33->1905"
6180 + "default.handlebars->33->1908"
6181 ]
6182 },
6183 {
@@ -6182,8 +6188,8 @@
6188 "xloc": [
6189 "default-mobile.handlebars->11->405",
6190 "default-mobile.handlebars->11->416",
6185 - "default.handlebars->33->1087",
6186 - "default.handlebars->33->1108",
6191 + "default.handlebars->33->1090",
6192 + "default.handlebars->33->1111",
6193 "ssh.handlebars->3->7",
6194 "ssh.handlebars->3->8"
6195 ]
@@ -6205,7 +6211,7 @@
6211 "zh-chs": "认证软件",
6212 "zh-cht": "認證軟體",
6213 "xloc": [
6208 - "default.handlebars->33->2256"
6214 + "default.handlebars->33->2259"
6215 ]
6216 },
6217 {
@@ -6214,9 +6220,9 @@
6220 "fr": "Dispositif d'authentification",
6221 "ru": "Устройство аутентификации",
6222 "xloc": [
6217 - "default.handlebars->33->1281",
6218 - "default.handlebars->33->1283",
6219 - "default.handlebars->33->1287"
6223 + "default.handlebars->33->1284",
6224 + "default.handlebars->33->1286",
6225 + "default.handlebars->33->1290"
6226 ]
6227 },
6228 {
@@ -6225,8 +6231,8 @@
6231 "xloc": [
6232 "default-mobile.handlebars->11->406",
6233 "default-mobile.handlebars->11->417",
6228 - "default.handlebars->33->1089",
6229 - "default.handlebars->33->1109"
6234 + "default.handlebars->33->1092",
6235 + "default.handlebars->33->1112"
6236 ]
6237 },
6238 {
@@ -6250,8 +6256,8 @@
6256 "default-mobile.handlebars->11->64",
6257 "default-mobile.handlebars->11->95",
6258 "default-mobile.handlebars->11->97",
6253 - "default.handlebars->33->1277",
6254 - "default.handlebars->33->1279",
6259 + "default.handlebars->33->1280",
6260 + "default.handlebars->33->1282",
6261 "default.handlebars->33->143",
6262 "default.handlebars->33->148"
6263 ]
@@ -6333,7 +6339,7 @@
6339 "zh-chs": "自动删除",
6340 "zh-cht": "自動刪除",
6341 "xloc": [
6336 - "default.handlebars->33->1612"
6342 + "default.handlebars->33->1615"
6343 ]
6344 },
6345 {
@@ -6377,7 +6383,7 @@
6383 "zh-chs": "自动下载代理程序核心转储文件:“{0}”",
6384 "zh-cht": "自動下載代理程序核心轉儲文件:“{0}”",
6385 "xloc": [
6380 - "default.handlebars->33->1986"
6386 + "default.handlebars->33->1989"
6387 ]
6388 },
6389 {
@@ -6417,7 +6423,7 @@
6423 "zh-chs": "可用內存",
6424 "zh-cht": "可用內存",
6425 "xloc": [
6420 - "default.handlebars->33->2444"
6426 + "default.handlebars->33->2447"
6427 ]
6428 },
6429 {
@@ -6437,7 +6443,7 @@
6443 "zh-chs": "阿塞拜疆文",
6444 "zh-cht": "阿塞拜疆文",
6445 "xloc": [
6440 - "default.handlebars->33->1321"
6446 + "default.handlebars->33->1324"
6447 ]
6448 },
6449 {
@@ -6450,9 +6456,9 @@
6456 "default-mobile.handlebars->11->462",
6457 "default-mobile.handlebars->11->466",
6458 "default-mobile.handlebars->11->470",
6453 - "default.handlebars->33->695",
6454 - "default.handlebars->33->699",
6455 - "default.handlebars->33->703"
6459 + "default.handlebars->33->698",
6460 + "default.handlebars->33->702",
6461 + "default.handlebars->33->706"
6462 ]
6463 },
6464 {
@@ -6473,7 +6479,7 @@
6479 "zh-cht": "的BIOS",
6480 "xloc": [
6481 "default-mobile.handlebars->11->524",
6476 - "default.handlebars->33->1225"
6482 + "default.handlebars->33->1228"
6483 ]
6484 },
6485 {
@@ -6560,7 +6566,7 @@
6566 "ru": "Backspace",
6567 "xloc": [
6568 "default-mobile.handlebars->11->369",
6563 - "default.handlebars->33->1027"
6569 + "default.handlebars->33->1030"
6570 ]
6571 },
6572 {
@@ -6600,8 +6606,8 @@
6606 "zh-chs": "背景与互动",
6607 "zh-cht": "背景與互動",
6608 "xloc": [
6603 - "default.handlebars->33->1798",
6604 - "default.handlebars->33->1805",
6609 + "default.handlebars->33->1801",
6610 + "default.handlebars->33->1808",
6611 "default.handlebars->33->406",
6612 "default.handlebars->33->420"
6613 ]
@@ -6623,8 +6629,8 @@
6629 "zh-chs": "仅背景",
6630 "zh-cht": "僅背景",
6631 "xloc": [
6626 - "default.handlebars->33->1799",
6627 - "default.handlebars->33->1806",
6632 + "default.handlebars->33->1802",
6633 + "default.handlebars->33->1809",
6634 "default.handlebars->33->407",
6635 "default.handlebars->33->421",
6636 "default.handlebars->33->437"
@@ -6668,7 +6674,7 @@
6674 "zh-chs": "备用码",
6675 "zh-cht": "備用碼",
6676 "xloc": [
6671 - "default.handlebars->33->2258"
6677 + "default.handlebars->33->2261"
6678 ]
6679 },
6680 {
@@ -6688,7 +6694,7 @@
6694 "zh-chs": "错误的签名",
6695 "zh-cht": "錯誤的簽名",
6696 "xloc": [
6691 - "default.handlebars->33->2426"
6697 + "default.handlebars->33->2429"
6698 ]
6699 },
6700 {
@@ -6708,7 +6714,7 @@
6714 "zh-chs": "错误的网络证书",
6715 "zh-cht": "錯誤的網絡憑證",
6716 "xloc": [
6711 - "default.handlebars->33->2425"
6717 + "default.handlebars->33->2428"
6718 ]
6719 },
6720 {
@@ -6728,7 +6734,7 @@
6734 "zh-chs": "巴斯克",
6735 "zh-cht": "巴斯克",
6736 "xloc": [
6731 - "default.handlebars->33->1322"
6737 + "default.handlebars->33->1325"
6738 ]
6739 },
6740 {
@@ -6748,7 +6754,7 @@
6754 "zh-chs": "批处理文件上传",
6755 "zh-cht": "批處理文件上傳",
6756 "xloc": [
6751 - "default.handlebars->33->563"
6757 + "default.handlebars->33->566"
6758 ]
6759 },
6760 {
@@ -6788,7 +6794,7 @@
6794 "zh-chs": "将{0}个文件批量上传到文件夹{1}",
6795 "zh-cht": "將{0}個文件批量上傳到文件夾{1}",
6796 "xloc": [
6791 - "default.handlebars->33->1985"
6797 + "default.handlebars->33->1988"
6798 ]
6799 },
6800 {
@@ -6808,7 +6814,7 @@
6814 "zh-chs": "白俄罗斯文",
6815 "zh-cht": "白俄羅斯文",
6816 "xloc": [
6811 - "default.handlebars->33->1324"
6817 + "default.handlebars->33->1327"
6818 ]
6819 },
6820 {
@@ -6828,7 +6834,7 @@
6834 "zh-chs": "孟加拉",
6835 "zh-cht": "孟加拉",
6836 "xloc": [
6831 - "default.handlebars->33->1325"
6837 + "default.handlebars->33->1328"
6838 ]
6839 },
6840 {
@@ -6861,7 +6867,7 @@
6867 "ru": "Загрузчик",
6868 "xloc": [
6869 "default-mobile.handlebars->11->488",
6864 - "default.handlebars->33->1179"
6870 + "default.handlebars->33->1182"
6871 ]
6872 },
6873 {
@@ -6881,7 +6887,7 @@
6887 "zh-chs": "波斯尼亚文",
6888 "zh-cht": "波斯尼亞文",
6889 "xloc": [
6884 - "default.handlebars->33->1326"
6890 + "default.handlebars->33->1329"
6891 ]
6892 },
6893 {
@@ -6901,7 +6907,7 @@
6907 "zh-chs": "布列塔尼",
6908 "zh-cht": "布列塔尼",
6909 "xloc": [
6904 - "default.handlebars->33->1327"
6910 + "default.handlebars->33->1330"
6911 ]
6912 },
6913 {
@@ -6921,7 +6927,7 @@
6927 "zh-chs": "广播",
6928 "zh-cht": "廣播",
6929 "xloc": [
6924 - "default.handlebars->33->2172",
6930 + "default.handlebars->33->2175",
6931 "default.handlebars->container->column_l->p4->3->1->0->3->1"
6932 ]
6933 },
@@ -6942,7 +6948,7 @@
6948 "zh-chs": "广播消息",
6949 "zh-cht": "廣播消息",
6950 "xloc": [
6945 - "default.handlebars->33->2093"
6951 + "default.handlebars->33->2096"
6952 ]
6953 },
6954 {
@@ -6962,7 +6968,7 @@
6968 "zh-chs": "向所有连接的用户广播消息。",
6969 "zh-cht": "向所有連接的用戶廣播消息。",
6970 "xloc": [
6965 - "default.handlebars->33->2088"
6971 + "default.handlebars->33->2091"
6972 ]
6973 },
6974 {
@@ -6993,7 +6999,7 @@
6999 "zh-chs": "保加利亚文",
7000 "zh-cht": "保加利亞文",
7001 "xloc": [
6996 - "default.handlebars->33->1323"
7002 + "default.handlebars->33->1326"
7003 ]
7004 },
7005 {
@@ -7013,7 +7019,7 @@
7019 "zh-chs": "缅甸文",
7020 "zh-cht": "緬甸文",
7021 "xloc": [
7016 - "default.handlebars->33->1328"
7022 + "default.handlebars->33->1331"
7023 ]
7024 },
7025 {
@@ -7034,7 +7040,7 @@
7040 "zh-cht": "CCM",
7041 "xloc": [
7042 "default-mobile.handlebars->11->273",
7037 - "default.handlebars->33->671"
7043 + "default.handlebars->33->674"
7044 ]
7045 },
7046 {
@@ -7054,7 +7060,7 @@
7060 "zh-chs": "CCM模式",
7061 "zh-cht": "CCM模式",
7062 "xloc": [
7057 - "default.handlebars->33->1674"
7063 + "default.handlebars->33->1677"
7064 ]
7065 },
7066 {
@@ -7075,9 +7081,9 @@
7081 "zh-cht": "CIRA",
7082 "xloc": [
7083 "default-mobile.handlebars->11->236",
7078 - "default.handlebars->33->2451",
7084 + "default.handlebars->33->2454",
7085 "default.handlebars->33->294",
7080 - "default.handlebars->33->505"
7086 + "default.handlebars->33->508"
7087 ]
7088 },
7089 {
@@ -7097,7 +7103,7 @@
7103 "zh-chs": "CIRA服务器",
7104 "zh-cht": "CIRA伺服器",
7105 "xloc": [
7100 - "default.handlebars->33->2496"
7106 + "default.handlebars->33->2499"
7107 ]
7108 },
7109 {
@@ -7117,7 +7123,7 @@
7123 "zh-chs": "CIRA服务器命令",
7124 "zh-cht": "CIRA伺服器指令",
7125 "xloc": [
7120 - "default.handlebars->33->2497"
7126 + "default.handlebars->33->2500"
7127 ]
7128 },
7129 {
@@ -7137,7 +7143,7 @@
7143 "zh-chs": "CIRA设置",
7144 "zh-cht": "CIRA設置",
7145 "xloc": [
7140 - "default.handlebars->33->1682"
7146 + "default.handlebars->33->1685"
7147 ]
7148 },
7149 {
@@ -7158,7 +7164,7 @@
7164 "zh-cht": "CPU",
7165 "xloc": [
7166 "default-mobile.handlebars->11->530",
7161 - "default.handlebars->33->1231"
7167 + "default.handlebars->33->1234"
7168 ]
7169 },
7170 {
@@ -7178,7 +7184,7 @@
7184 "zh-chs": "CPU负载",
7185 "zh-cht": "CPU負載",
7186 "xloc": [
7181 - "default.handlebars->33->2440"
7187 + "default.handlebars->33->2443"
7188 ]
7189 },
7190 {
@@ -7198,7 +7204,7 @@
7204 "zh-chs": "最近15分钟的CPU负载",
7205 "zh-cht": "最近15分鐘的CPU負載",
7206 "xloc": [
7201 - "default.handlebars->33->2443"
7207 + "default.handlebars->33->2446"
7208 ]
7209 },
7210 {
@@ -7218,7 +7224,7 @@
7224 "zh-chs": "最近5分钟的CPU负载",
7225 "zh-cht": "最近5分鐘的CPU負載",
7226 "xloc": [
7221 - "default.handlebars->33->2442"
7227 + "default.handlebars->33->2445"
7228 ]
7229 },
7230 {
@@ -7238,7 +7244,7 @@
7244 "zh-chs": "最近一分钟的CPU负载",
7245 "zh-cht": "最近一分鐘的CPU負載",
7246 "xloc": [
7241 - "default.handlebars->33->2441"
7247 + "default.handlebars->33->2444"
7248 ]
7249 },
7250 {
@@ -7258,8 +7264,8 @@
7264 "zh-chs": "CR+LF",
7265 "zh-cht": "CR+LF",
7266 "xloc": [
7261 - "default.handlebars->33->1081",
7262 - "default.handlebars->33->1098",
7267 + "default.handlebars->33->1084",
7268 + "default.handlebars->33->1101",
7269 "default.handlebars->container->column_l->p12->termTable->1->1->6->1->1->terminalSettingsButtons",
7270 "sharing.handlebars->11->25",
7271 "sharing.handlebars->11->39",
@@ -7283,7 +7289,7 @@
7289 "zh-chs": "CSV",
7290 "zh-cht": "CSV",
7291 "xloc": [
7286 - "default.handlebars->33->2011"
7292 + "default.handlebars->33->2014"
7293 ]
7294 },
7295 {
@@ -7303,9 +7309,9 @@
7309 "zh-chs": "CSV格式",
7310 "zh-cht": "CSV格式",
7311 "xloc": [
7306 - "default.handlebars->33->2015",
7307 - "default.handlebars->33->2080",
7308 - "default.handlebars->33->571"
7312 + "default.handlebars->33->2018",
7313 + "default.handlebars->33->2083",
7314 + "default.handlebars->33->574"
7315 ]
7316 },
7317 {
@@ -7342,7 +7348,7 @@
7348 "zh-chs": "呼叫错误",
7349 "zh-cht": "呼叫錯誤",
7350 "xloc": [
7345 - "default.handlebars->33->2513"
7351 + "default.handlebars->33->2516"
7352 ]
7353 },
7354 {
@@ -7365,8 +7371,8 @@
7371 "agent-translations.json",
7372 "default-mobile.handlebars->11->106",
7373 "default-mobile.handlebars->dialog->idx_dlgButtonBar",
7368 - "default.handlebars->33->1589",
7369 - "default.handlebars->33->2502",
7374 + "default.handlebars->33->1592",
7375 + "default.handlebars->33->2505",
7376 "default.handlebars->container->dialog->idx_dlgButtonBar",
7377 "login-mobile.handlebars->dialog->idx_dlgButtonBar",
7378 "login.handlebars->dialog->idx_dlgButtonBar",
@@ -7397,9 +7403,9 @@
7403 "default-mobile.handlebars->11->535",
7404 "default-mobile.handlebars->11->540",
7405 "default-mobile.handlebars->11->542",
7400 - "default.handlebars->33->1236",
7401 - "default.handlebars->33->1241",
7402 - "default.handlebars->33->1243"
7406 + "default.handlebars->33->1239",
7407 + "default.handlebars->33->1244",
7408 + "default.handlebars->33->1246"
7409 ]
7410 },
7411 {
@@ -7420,7 +7426,7 @@
7426 "zh-cht": "容量/速度",
7427 "xloc": [
7428 "default-mobile.handlebars->11->533",
7423 - "default.handlebars->33->1234"
7429 + "default.handlebars->33->1237"
7430 ]
7431 },
7432 {
@@ -7440,7 +7446,7 @@
7446 "zh-chs": "加泰罗尼亚文",
7447 "zh-cht": "加泰羅尼亞文",
7448 "xloc": [
7443 - "default.handlebars->33->1329"
7449 + "default.handlebars->33->1332"
7450 ]
7451 },
7452 {
@@ -7460,7 +7466,7 @@
7466 "zh-chs": "在这里为中心显示地图",
7467 "zh-cht": "在這裡為中心顯示地圖",
7468 "xloc": [
7463 - "default.handlebars->33->626"
7469 + "default.handlebars->33->629"
7470 ]
7471 },
7472 {
@@ -7491,7 +7497,7 @@
7497 "zh-chs": "查莫罗",
7498 "zh-cht": "查莫羅",
7499 "xloc": [
7494 - "default.handlebars->33->1330"
7500 + "default.handlebars->33->1333"
7501 ]
7502 },
7503 {
@@ -7533,7 +7539,7 @@
7539 "zh-chs": "更改{0}的电邮",
7540 "zh-cht": "更改{0}的電郵",
7541 "xloc": [
7536 - "default.handlebars->33->2290"
7542 + "default.handlebars->33->2293"
7543 ]
7544 },
7545 {
@@ -7553,9 +7559,9 @@
7559 "zh-chs": "更改组",
7560 "zh-cht": "更改群",
7561 "xloc": [
7556 - "default.handlebars->33->752",
7557 - "default.handlebars->33->958",
7558 - "default.handlebars->33->959"
7562 + "default.handlebars->33->755",
7563 + "default.handlebars->33->961",
7564 + "default.handlebars->33->962"
7565 ]
7566 },
7567 {
@@ -7576,8 +7582,8 @@
7582 "zh-cht": "更改密碼",
7583 "xloc": [
7584 "default-mobile.handlebars->11->114",
7579 - "default.handlebars->33->1545",
7580 - "default.handlebars->33->2275"
7585 + "default.handlebars->33->1548",
7586 + "default.handlebars->33->2278"
7587 ]
7588 },
7589 {
@@ -7597,7 +7603,7 @@
7603 "zh-chs": "更改{0}的密码",
7604 "zh-cht": "更改{0}的密碼",
7605 "xloc": [
7600 - "default.handlebars->33->2299"
7606 + "default.handlebars->33->2302"
7607 ]
7608 },
7609 {
@@ -7617,7 +7623,7 @@
7623 "zh-chs": "更改{0}的真实名称",
7624 "zh-cht": "更改{0}的真實名稱",
7625 "xloc": [
7620 - "default.handlebars->33->2285"
7626 + "default.handlebars->33->2288"
7627 ]
7628 },
7629 {
@@ -7710,7 +7716,7 @@
7716 "zh-chs": "更改该用户的密码",
7717 "zh-cht": "更改該用戶的密碼",
7718 "xloc": [
7713 - "default.handlebars->33->2274"
7719 + "default.handlebars->33->2277"
7720 ]
7721 },
7722 {
@@ -7750,7 +7756,7 @@
7756 "zh-chs": "在此处更改您的帐户电邮地址。",
7757 "zh-cht": "在此處更改你的帳戶電郵地址。",
7758 "xloc": [
7753 - "default.handlebars->33->1532"
7759 + "default.handlebars->33->1535"
7760 ]
7761 },
7762 {
@@ -7770,7 +7776,7 @@
7776 "zh-chs": "在下面的框中两次输入旧密码和新密码,以更改帐户密码。",
7777 "zh-cht": "在下面的框中兩次輸入舊密碼和新密碼,以更改帳戶密碼。",
7778 "xloc": [
7773 - "default.handlebars->33->1538"
7779 + "default.handlebars->33->1541"
7780 ]
7781 },
7782 {
@@ -7790,7 +7796,7 @@
7796 "zh-chs": "更改帐户凭据",
7797 "zh-cht": "帳戶憑證已更改",
7798 "xloc": [
7793 - "default.handlebars->33->1957"
7799 + "default.handlebars->33->1960"
7800 ]
7801 },
7802 {
@@ -7810,7 +7816,7 @@
7816 "zh-chs": "{1}组中的设备{0}已更改:{2}",
7817 "zh-cht": "{1}組中的設備{0}已更改:{2}",
7818 "xloc": [
7813 - "default.handlebars->33->1941"
7819 + "default.handlebars->33->1944"
7820 ]
7821 },
7822 {
@@ -7830,7 +7836,7 @@
7836 "zh-chs": "语言从{1}更改为{2}",
7837 "zh-cht": "語言從{1}更改為{2}",
7838 "xloc": [
7833 - "default.handlebars->33->1885"
7839 + "default.handlebars->33->1888"
7840 ]
7841 },
7842 {
@@ -7850,8 +7856,8 @@
7856 "zh-chs": "已更改{0}的用户设备权限",
7857 "zh-cht": "已更改{0}的用戶設備權限",
7858 "xloc": [
7853 - "default.handlebars->33->1943",
7854 - "default.handlebars->33->1964"
7859 + "default.handlebars->33->1946",
7860 + "default.handlebars->33->1967"
7861 ]
7862 },
7863 {
@@ -7871,7 +7877,7 @@
7877 "zh-chs": "更改语言将需要刷新页面。",
7878 "zh-cht": "更改語言將需要刷新頁面。",
7879 "xloc": [
7874 - "default.handlebars->33->1497"
7880 + "default.handlebars->33->1500"
7881 ]
7882 },
7883 {
@@ -7891,12 +7897,12 @@
7897 "zh-chs": "聊天",
7898 "zh-cht": "聊天",
7899 "xloc": [
7894 - "default.handlebars->33->2032",
7895 - "default.handlebars->33->2270",
7896 - "default.handlebars->33->2271",
7897 - "default.handlebars->33->747",
7898 - "default.handlebars->33->826",
7899 - "default.handlebars->33->848"
7900 + "default.handlebars->33->2035",
7901 + "default.handlebars->33->2273",
7902 + "default.handlebars->33->2274",
7903 + "default.handlebars->33->750",
7904 + "default.handlebars->33->829",
7905 + "default.handlebars->33->851"
7906 ]
7907 },
7908 {
@@ -7918,8 +7924,8 @@
7924 "xloc": [
7925 "default-mobile.handlebars->11->602",
7926 "default-mobile.handlebars->11->622",
7921 - "default.handlebars->33->1744",
7922 - "default.handlebars->33->1780"
7927 + "default.handlebars->33->1747",
7928 + "default.handlebars->33->1783"
7929 ]
7930 },
7931 {
@@ -7930,7 +7936,7 @@
7936 "ru": "Запрос чата, Нажмите здесь, чтобы принять.",
7937 "xloc": [
7938 "default-mobile.handlebars->11->654",
7933 - "default.handlebars->33->2395"
7939 + "default.handlebars->33->2398"
7940 ]
7941 },
7942 {
@@ -7970,7 +7976,7 @@
7976 "zh-chs": "车臣",
7977 "zh-cht": "車臣",
7978 "xloc": [
7973 - "default.handlebars->33->1331"
7979 + "default.handlebars->33->1334"
7980 ]
7981 },
7982 {
@@ -8070,8 +8076,8 @@
8076 "zh-chs": "检查...",
8077 "zh-cht": "檢查...",
8078 "xloc": [
8073 - "default.handlebars->33->1297",
8074 - "default.handlebars->33->2507"
8079 + "default.handlebars->33->1300",
8080 + "default.handlebars->33->2510"
8081 ]
8082 },
8083 {
@@ -8091,7 +8097,7 @@
8097 "zh-chs": "中文",
8098 "zh-cht": "中文",
8099 "xloc": [
8094 - "default.handlebars->33->1332"
8100 + "default.handlebars->33->1335"
8101 ]
8102 },
8103 {
@@ -8111,7 +8117,7 @@
8117 "zh-chs": "中文(香港)",
8118 "zh-cht": "中文(香港)",
8119 "xloc": [
8114 - "default.handlebars->33->1333"
8120 + "default.handlebars->33->1336"
8121 ]
8122 },
8123 {
@@ -8131,7 +8137,7 @@
8137 "zh-chs": "中文(中国)",
8138 "zh-cht": "中文(中國)",
8139 "xloc": [
8134 - "default.handlebars->33->1334"
8140 + "default.handlebars->33->1337"
8141 ]
8142 },
8143 {
@@ -8151,7 +8157,7 @@
8157 "zh-chs": "简体中文",
8158 "zh-cht": "簡體中文",
8159 "xloc": [
8154 - "default.handlebars->33->1494"
8160 + "default.handlebars->33->1497"
8161 ]
8162 },
8163 {
@@ -8171,7 +8177,7 @@
8177 "zh-chs": "中文(新加坡)",
8178 "zh-cht": "中文(新加坡)",
8179 "xloc": [
8174 - "default.handlebars->33->1335"
8180 + "default.handlebars->33->1338"
8181 ]
8182 },
8183 {
@@ -8191,7 +8197,7 @@
8197 "zh-chs": "中文(台湾)",
8198 "zh-cht": "中文(台灣)",
8199 "xloc": [
8194 - "default.handlebars->33->1336"
8200 + "default.handlebars->33->1339"
8201 ]
8202 },
8203 {
@@ -8211,7 +8217,7 @@
8217 "zh-chs": "繁体中文",
8218 "zh-cht": "繁體中文",
8219 "xloc": [
8214 - "default.handlebars->33->1495"
8220 + "default.handlebars->33->1498"
8221 ]
8222 },
8223 {
@@ -8252,7 +8258,7 @@
8258 "zh-chs": "楚瓦什",
8259 "zh-cht": "楚瓦什",
8260 "xloc": [
8255 - "default.handlebars->33->1337"
8261 + "default.handlebars->33->1340"
8262 ]
8263 },
8264 {
@@ -8296,11 +8302,11 @@
8302 "default-mobile.handlebars->11->448",
8303 "default-mobile.handlebars->11->71",
8304 "default-mobile.handlebars->container->page_content->column_l->p10->p10console->consoleTable->1->4->1->1->1->0->5",
8299 - "default.handlebars->33->1143",
8300 - "default.handlebars->33->1145",
8301 - "default.handlebars->33->1147",
8302 - "default.handlebars->33->1149",
8303 - "default.handlebars->33->1879",
8305 + "default.handlebars->33->1146",
8306 + "default.handlebars->33->1148",
8307 + "default.handlebars->33->1150",
8308 + "default.handlebars->33->1152",
8309 + "default.handlebars->33->1882",
8310 "default.handlebars->container->column_l->p15->consoleTable->1->6->1->1->1->0->7",
8311 "default.handlebars->container->column_l->p41->3->1",
8312 "messenger.handlebars->xbottom->1->1->0->5",
@@ -8316,7 +8322,7 @@
8322 "ru": "Очистить учетные данные SSH?",
8323 "xloc": [
8324 "default-mobile.handlebars->11->354",
8319 - "default.handlebars->33->1000"
8325 + "default.handlebars->33->1003"
8326 ]
8327 },
8328 {
@@ -8346,8 +8352,8 @@
8352 "de": "Entferne Agent.",
8353 "ru": "Очистить ядро агента",
8354 "xloc": [
8349 - "default.handlebars->33->528",
8350 - "default.handlebars->33->567"
8355 + "default.handlebars->33->531",
8356 + "default.handlebars->33->570"
8357 ]
8358 },
8359 {
@@ -8357,7 +8363,7 @@
8363 "de": "Agent auf ausgewählten Geräten löschen?",
8364 "ru": "Очистить ядро агента на выбранных устройствах?",
8365 "xloc": [
8360 - "default.handlebars->33->566"
8366 + "default.handlebars->33->569"
8367 ]
8368 },
8369 {
@@ -8378,7 +8384,7 @@
8384 "zh-cht": "全部清除",
8385 "xloc": [
8386 "default-mobile.handlebars->11->637",
8381 - "default.handlebars->33->2378"
8387 + "default.handlebars->33->2381"
8388 ]
8389 },
8390 {
@@ -8420,7 +8426,7 @@
8426 "zh-cht": "清除核心",
8427 "xloc": [
8428 "default-mobile.handlebars->11->556",
8423 - "default.handlebars->33->1258"
8429 + "default.handlebars->33->1261"
8430 ]
8431 },
8432 {
@@ -8461,7 +8467,7 @@
8467 "zh-cht": "清除此通知",
8468 "xloc": [
8469 "default-mobile.handlebars->11->636",
8464 - "default.handlebars->33->2377"
8470 + "default.handlebars->33->2380"
8471 ]
8472 },
8473 {
@@ -8521,8 +8527,8 @@
8527 "zh-chs": "单击此处编辑设备组名称",
8528 "zh-cht": "單擊此處編輯裝置群名稱",
8529 "xloc": [
8524 - "default.handlebars->33->1600",
8525 - "default.handlebars->33->1824"
8530 + "default.handlebars->33->1603",
8531 + "default.handlebars->33->1827"
8532 ]
8533 },
8534 {
@@ -8542,7 +8548,7 @@
8548 "zh-chs": "单击此处编辑服务器端设备名称",
8549 "zh-cht": "單擊此處編輯伺服器端裝置名稱",
8550 "xloc": [
8545 - "default.handlebars->33->642"
8551 + "default.handlebars->33->645"
8552 ]
8553 },
8554 {
@@ -8562,7 +8568,7 @@
8568 "zh-chs": "单击此处编辑用户组名称",
8569 "zh-cht": "單擊此處編輯用戶群名稱",
8570 "xloc": [
8565 - "default.handlebars->33->2149"
8571 + "default.handlebars->33->2152"
8572 ]
8573 },
8574 {
@@ -8635,7 +8641,7 @@
8641 "zh-cht": "單擊確定將驗證電郵發送到:",
8642 "xloc": [
8643 "default-mobile.handlebars->11->99",
8638 - "default.handlebars->33->1529"
8644 + "default.handlebars->33->1532"
8645 ]
8646 },
8647 {
@@ -8697,7 +8703,7 @@
8703 "zh-cht": "客戶端控制模式(CCM)",
8704 "xloc": [
8705 "default-mobile.handlebars->11->511",
8700 - "default.handlebars->33->1212"
8706 + "default.handlebars->33->1215"
8707 ]
8708 },
8709 {
@@ -8717,7 +8723,7 @@
8723 "zh-chs": "客户编号",
8724 "zh-cht": "客戶編號",
8725 "xloc": [
8720 - "default.handlebars->33->1582"
8726 + "default.handlebars->33->1585"
8727 ]
8728 },
8729 {
@@ -8737,7 +8743,7 @@
8743 "zh-chs": "客户端启动的远程访问",
8744 "zh-cht": "客戶端啟動的遠程訪問",
8745 "xloc": [
8740 - "default.handlebars->33->1681"
8746 + "default.handlebars->33->1684"
8747 ]
8748 },
8749 {
@@ -8757,7 +8763,7 @@
8763 "zh-chs": "客户机密",
8764 "zh-cht": "客戶機密",
8765 "xloc": [
8760 - "default.handlebars->33->1583"
8766 + "default.handlebars->33->1586"
8767 ]
8768 },
8769 {
@@ -8799,11 +8805,11 @@
8805 "zh-cht": "關",
8806 "xloc": [
8807 "default-mobile.handlebars->11->69",
8802 - "default.handlebars->33->1069",
8803 - "default.handlebars->33->1119",
8808 + "default.handlebars->33->1072",
8809 + "default.handlebars->33->1122",
8810 "default.handlebars->33->155",
8811 "default.handlebars->33->163",
8806 - "default.handlebars->33->2501",
8812 + "default.handlebars->33->2504",
8813 "sharing.handlebars->11->52"
8814 ]
8815 },
@@ -8824,7 +8830,7 @@
8830 "zh-chs": "封闭式桌面多路复用会话,{0}秒",
8831 "zh-cht": "封閉式桌面多路復用會話,{0}秒",
8832 "xloc": [
8827 - "default.handlebars->33->1890"
8833 + "default.handlebars->33->1893"
8834 ]
8835 },
8836 {
@@ -8928,7 +8934,7 @@
8934 "zh-chs": "命令",
8935 "zh-cht": "命令",
8936 "xloc": [
8931 - "default.handlebars->33->476"
8937 + "default.handlebars->33->479"
8938 ]
8939 },
8940 {
@@ -8949,9 +8955,9 @@
8955 "zh-cht": "指令",
8956 "xloc": [
8957 "default-mobile.handlebars->11->624",
8952 - "default.handlebars->33->1782",
8953 - "default.handlebars->33->828",
8954 - "default.handlebars->33->850"
8958 + "default.handlebars->33->1785",
8959 + "default.handlebars->33->831",
8960 + "default.handlebars->33->853"
8961 ]
8962 },
8963 {
@@ -8971,8 +8977,8 @@
8977 "zh-chs": "通用设备组",
8978 "zh-cht": "通用裝置群",
8979 "xloc": [
8974 - "default.handlebars->33->2180",
8975 - "default.handlebars->33->2304"
8980 + "default.handlebars->33->2183",
8981 + "default.handlebars->33->2307"
8982 ]
8983 },
8984 {
@@ -8992,8 +8998,8 @@
8998 "zh-chs": "通用设备",
8999 "zh-cht": "通用裝置",
9000 "xloc": [
8995 - "default.handlebars->33->2186",
8996 - "default.handlebars->33->2316"
9001 + "default.handlebars->33->2189",
9002 + "default.handlebars->33->2319"
9003 ]
9004 },
9005 {
@@ -9005,7 +9011,7 @@
9011 "ru": "Время компиляции",
9012 "xloc": [
9013 "default-mobile.handlebars->11->484",
9008 - "default.handlebars->33->1175"
9014 + "default.handlebars->33->1178"
9015 ]
9016 },
9017 {
@@ -9025,7 +9031,7 @@
9031 "zh-chs": "压缩档案...",
9032 "zh-cht": "壓縮檔案...",
9033 "xloc": [
9028 - "default.handlebars->33->1114",
9034 + "default.handlebars->33->1117",
9035 "sharing.handlebars->11->47"
9036 ]
9037 },
@@ -9048,14 +9054,14 @@
9054 "xloc": [
9055 "default-mobile.handlebars->11->351",
9056 "default-mobile.handlebars->11->578",
9051 - "default.handlebars->33->1692",
9052 - "default.handlebars->33->2060",
9053 - "default.handlebars->33->2139",
9054 - "default.handlebars->33->2200",
9055 - "default.handlebars->33->2302",
9056 - "default.handlebars->33->535",
9057 - "default.handlebars->33->953",
9058 - "default.handlebars->33->962"
9057 + "default.handlebars->33->1695",
9058 + "default.handlebars->33->2063",
9059 + "default.handlebars->33->2142",
9060 + "default.handlebars->33->2203",
9061 + "default.handlebars->33->2305",
9062 + "default.handlebars->33->538",
9063 + "default.handlebars->33->956",
9064 + "default.handlebars->33->965"
9065 ]
9066 },
9067 {
@@ -9076,7 +9082,7 @@
9082 "zh-cht": "確認將1個副本複製到此位置?",
9083 "xloc": [
9084 "default-mobile.handlebars->11->437",
9079 - "default.handlebars->33->1138",
9085 + "default.handlebars->33->1141",
9086 "sharing.handlebars->11->70"
9087 ]
9088 },
@@ -9097,7 +9103,7 @@
9103 "zh-chs": "确认{0}个条目的复制到此位置?",
9104 "zh-cht": "確認{0}個條目的複製到此位置?",
9105 "xloc": [
9100 - "default.handlebars->33->1137",
9106 + "default.handlebars->33->1140",
9107 "sharing.handlebars->11->69"
9108 ]
9109 },
@@ -9138,7 +9144,7 @@
9144 "zh-chs": "确认删除选定的帐户?",
9145 "zh-cht": "確認刪除所選帳戶?",
9146 "xloc": [
9141 - "default.handlebars->33->2059"
9147 + "default.handlebars->33->2062"
9148 ]
9149 },
9150 {
@@ -9158,7 +9164,7 @@
9164 "zh-chs": "确认删除选定的设备?",
9165 "zh-cht": "確認刪除所選裝置?",
9166 "xloc": [
9161 - "default.handlebars->33->534"
9167 + "default.handlebars->33->537"
9168 ]
9169 },
9170 {
@@ -9178,7 +9184,7 @@
9184 "zh-chs": "确认删除选定的用户组?",
9185 "zh-cht": "確認刪除所選用戶群?",
9186 "xloc": [
9181 - "default.handlebars->33->2138"
9187 + "default.handlebars->33->2141"
9188 ]
9189 },
9190 {
@@ -9198,7 +9204,7 @@
9204 "zh-chs": "确认删除用户{0}?",
9205 "zh-cht": "確認刪除用戶{0}?",
9206 "xloc": [
9201 - "default.handlebars->33->2301"
9207 + "default.handlebars->33->2304"
9208 ]
9209 },
9210 {
@@ -9218,7 +9224,7 @@
9224 "zh-chs": "确认删除用户“ {0} ”的成员身份?",
9225 "zh-cht": "確認刪除用戶“ {0} ”的成員身份?",
9226 "xloc": [
9221 - "default.handlebars->33->2203"
9227 + "default.handlebars->33->2206"
9228 ]
9229 },
9230 {
@@ -9238,7 +9244,7 @@
9244 "zh-chs": "确认删除用户组“ {0} ”的成员身份?",
9245 "zh-cht": "確認刪除用戶群“ {0} ”的成員身份?",
9246 "xloc": [
9241 - "default.handlebars->33->2333"
9247 + "default.handlebars->33->2336"
9248 ]
9249 },
9250 {
@@ -9259,7 +9265,7 @@
9265 "zh-cht": "確認將1個條目移動到此位置?",
9266 "xloc": [
9267 "default-mobile.handlebars->11->439",
9262 - "default.handlebars->33->1140",
9268 + "default.handlebars->33->1143",
9269 "sharing.handlebars->11->72"
9270 ]
9271 },
@@ -9280,7 +9286,7 @@
9286 "zh-chs": "确认将{0}个条目移到此位置?",
9287 "zh-cht": "確認將{0}個條目移到該位置?",
9288 "xloc": [
9283 - "default.handlebars->33->1139",
9289 + "default.handlebars->33->1142",
9290 "sharing.handlebars->11->71"
9291 ]
9292 },
@@ -9321,7 +9327,7 @@
9327 "zh-chs": "确认覆盖?",
9328 "zh-cht": "確認覆蓋?",
9329 "xloc": [
9324 - "default.handlebars->33->1873"
9330 + "default.handlebars->33->1876"
9331 ]
9332 },
9333 {
@@ -9341,8 +9347,8 @@
9347 "zh-chs": "确认删除设备“ {0} ”的访问权限?",
9348 "zh-cht": "確認刪除裝置“ {0} ”的訪問權限?",
9349 "xloc": [
9344 - "default.handlebars->33->2193",
9345 - "default.handlebars->33->2324"
9350 + "default.handlebars->33->2196",
9351 + "default.handlebars->33->2327"
9352 ]
9353 },
9354 {
@@ -9362,8 +9368,8 @@
9368 "zh-chs": "确认删除设备组“ {0} ”的访问权限?",
9369 "zh-cht": "確認刪除裝置群“ {0} ”的訪問權限?",
9370 "xloc": [
9365 - "default.handlebars->33->2195",
9366 - "default.handlebars->33->2337"
9371 + "default.handlebars->33->2198",
9372 + "default.handlebars->33->2340"
9373 ]
9374 },
9375 {
@@ -9383,7 +9389,7 @@
9389 "zh-chs": "确认删除用户“ {0} ”的访问权限?",
9390 "zh-cht": "確認刪除用戶“ {0} ”的訪問權限?",
9391 "xloc": [
9386 - "default.handlebars->33->2326"
9392 + "default.handlebars->33->2329"
9393 ]
9394 },
9395 {
@@ -9403,7 +9409,7 @@
9409 "zh-chs": "确认删除用户组“ {0} ”的访问权限?",
9410 "zh-cht": "確認刪除用戶群“ {0} ”的訪問權限?",
9411 "xloc": [
9406 - "default.handlebars->33->2329"
9412 + "default.handlebars->33->2332"
9413 ]
9414 },
9415 {
@@ -9423,8 +9429,8 @@
9429 "zh-chs": "确认删除访问权限?",
9430 "zh-cht": "確認刪除訪問權限?",
9431 "xloc": [
9426 - "default.handlebars->33->2327",
9427 - "default.handlebars->33->2330"
9432 + "default.handlebars->33->2330",
9433 + "default.handlebars->33->2333"
9434 ]
9435 },
9436 {
@@ -9445,7 +9451,7 @@
9451 "zh-cht": "確認刪除身份驗證軟體兩步登入?",
9452 "xloc": [
9453 "default-mobile.handlebars->11->98",
9448 - "default.handlebars->33->1280"
9454 + "default.handlebars->33->1283"
9455 ]
9456 },
9457 {
@@ -9482,7 +9488,7 @@
9488 "zh-chs": "确认删除设备共享“{0}”?",
9489 "zh-cht": "確認刪除設備共享“{0}”?",
9490 "xloc": [
9485 - "default.handlebars->33->2322"
9491 + "default.handlebars->33->2325"
9492 ]
9493 },
9494 {
@@ -9524,7 +9530,7 @@
9530 "nl": "Verwijderen van push-authenticatieapparaat bevestigen?",
9531 "fr": "Supprimer le dispositif d'authentification (push) ?",
9532 "xloc": [
9527 - "default.handlebars->33->1282"
9533 + "default.handlebars->33->1285"
9534 ]
9535 },
9536 {
@@ -9544,7 +9550,7 @@
9550 "zh-chs": "确认删除用户“ {0} ”的权限?",
9551 "zh-cht": "確認刪除用戶“ {0} ”的權限?",
9552 "xloc": [
9547 - "default.handlebars->33->1791"
9553 + "default.handlebars->33->1794"
9554 ]
9555 },
9556 {
@@ -9564,7 +9570,7 @@
9570 "zh-chs": "确认删除用户组“ {0} ”的权限?",
9571 "zh-cht": "確認刪除用戶群“ {0} ”的權限?",
9572 "xloc": [
9567 - "default.handlebars->33->1793"
9573 + "default.handlebars->33->1796"
9574 ]
9575 },
9576 {
@@ -9573,7 +9579,7 @@
9579 "fr": "Supprimer ce jeton de connexion ?",
9580 "ru": "Подтвердить удаление этого токена входа?",
9581 "xloc": [
9576 - "default.handlebars->33->1575"
9582 + "default.handlebars->33->1578"
9583 ]
9584 },
9585 {
@@ -9631,7 +9637,7 @@
9637 "zh-cht": "將{1}入口{2}中的{0}限製到此位置?",
9638 "xloc": [
9639 "default-mobile.handlebars->11->151",
9634 - "default.handlebars->33->1874"
9640 + "default.handlebars->33->1877"
9641 ]
9642 },
9643 {
@@ -9656,8 +9662,8 @@
9662 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea1->1->3",
9663 "default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->0->1->3",
9664 "default-mobile.handlebars->container->page_content->column_l->p10->p10terminal->termTable->termarea1->1->3->connectbutton2span",
9659 - "default.handlebars->33->1101",
9660 - "default.handlebars->33->1629",
9665 + "default.handlebars->33->1104",
9666 + "default.handlebars->33->1632",
9667 "default.handlebars->container->column_l->p11->deskarea0->deskarea1->3->connectbutton1span",
9668 "default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->connectbutton2span",
9669 "default.handlebars->container->column_l->p13->p13toolbar->1->0->1->3",
@@ -9691,6 +9697,12 @@
9697 "default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->kvmListToolbar"
9698 ]
9699 },
9700 + {
9701 + "en": "Connect on user request",
9702 + "xloc": [
9703 + "default.handlebars->33->440"
9704 + ]
9705 + },
9706 {
9707 "cs": "Připojit se na server",
9708 "de": "Mit Server verbinden",
@@ -9708,7 +9720,7 @@
9720 "zh-chs": "连接到服务器",
9721 "zh-cht": "連接到伺服器",
9722 "xloc": [
9711 - "default.handlebars->33->1685"
9723 + "default.handlebars->33->1688"
9724 ]
9725 },
9726 {
@@ -9830,7 +9842,7 @@
9842 "zh-chs": "已连接的英特尔&reg;AMT",
9843 "zh-cht": "已連接的Intel&reg; AMT",
9844 "xloc": [
9833 - "default.handlebars->33->2431"
9845 + "default.handlebars->33->2434"
9846 ]
9847 },
9848 {
@@ -9850,7 +9862,7 @@
9862 "zh-chs": "已连接的用户",
9863 "zh-cht": "已连接的用户",
9864 "xloc": [
9853 - "default.handlebars->33->2436"
9865 + "default.handlebars->33->2439"
9866 ]
9867 },
9868 {
@@ -9871,7 +9883,7 @@
9883 "zh-cht": "現在已連接",
9884 "xloc": [
9885 "default-mobile.handlebars->11->479",
9874 - "default.handlebars->33->1170"
9886 + "default.handlebars->33->1173"
9887 ]
9888 },
9889 {
@@ -9914,7 +9926,7 @@
9926 "default-mobile.handlebars->11->2",
9927 "default-mobile.handlebars->11->455",
9928 "default-mobile.handlebars->11->48",
9917 - "default.handlebars->33->1161",
9929 + "default.handlebars->33->1164",
9930 "default.handlebars->33->282",
9931 "default.handlebars->33->285",
9932 "default.handlebars->33->332",
@@ -9942,7 +9954,7 @@
9954 "zh-chs": "连接数量",
9955 "zh-cht": "連接數量",
9956 "xloc": [
9945 - "default.handlebars->33->2462"
9957 + "default.handlebars->33->2465"
9958 ]
9959 },
9960 {
@@ -9952,8 +9964,8 @@
9964 "ru": "Ошибка соединения",
9965 "xloc": [
9966 "default-mobile.handlebars->11->418",
9955 - "default.handlebars->33->1088",
9956 - "default.handlebars->33->1110",
9967 + "default.handlebars->33->1091",
9968 + "default.handlebars->33->1113",
9969 "login2.handlebars->7->32"
9970 ]
9971 },
@@ -9974,7 +9986,7 @@
9986 "zh-chs": "连接转发器",
9987 "zh-cht": "連接轉發器",
9988 "xloc": [
9977 - "default.handlebars->33->2495"
9989 + "default.handlebars->33->2498"
9990 ]
9991 },
9992 {
@@ -10035,9 +10047,9 @@
10047 "zh-cht": "連接性",
10048 "xloc": [
10049 "default-mobile.handlebars->11->293",
10038 - "default.handlebars->33->1831",
10050 + "default.handlebars->33->1834",
10051 "default.handlebars->33->273",
10040 - "default.handlebars->33->731",
10052 + "default.handlebars->33->734",
10053 "default.handlebars->container->column_l->p21->p21main->1->1->meshConnChartDiv->1"
10054 ]
10055 },
@@ -10059,8 +10071,8 @@
10071 "zh-cht": "控制台",
10072 "xloc": [
10073 "default-mobile.handlebars->11->313",
10062 - "default.handlebars->33->821",
10063 - "default.handlebars->33->843",
10074 + "default.handlebars->33->824",
10075 + "default.handlebars->33->846",
10076 "default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevConsole",
10077 "default.handlebars->container->topbar->1->1->ServerSubMenuSpan->ServerSubMenu->1->0->ServerConsole",
10078 "default.handlebars->contextMenu->cxconsole"
@@ -10083,7 +10095,7 @@
10095 "zh-chs": "控制台 -",
10096 "zh-cht": "控制台 -",
10097 "xloc": [
10086 - "default.handlebars->33->643"
10098 + "default.handlebars->33->646"
10099 ]
10100 },
10101 {
@@ -10103,8 +10115,8 @@
10115 "zh-chs": "控制",
10116 "zh-cht": "控制",
10117 "xloc": [
10106 - "default.handlebars->33->820",
10107 - "default.handlebars->33->842",
10118 + "default.handlebars->33->823",
10119 + "default.handlebars->33->845",
10120 "messenger.handlebars->remoteImage->3->2"
10121 ]
10122 },
@@ -10125,7 +10137,7 @@
10137 "zh-chs": "Cookie编码器",
10138 "zh-cht": "Cookie編碼器",
10139 "xloc": [
10128 - "default.handlebars->33->2479"
10140 + "default.handlebars->33->2482"
10141 ]
10142 },
10143 {
@@ -10180,7 +10192,7 @@
10192 "fr": "Copier l'URL dans le presse-papier ",
10193 "ru": "Скопировать URL в буфер обмена",
10194 "xloc": [
10183 - "default.handlebars->33->462"
10195 + "default.handlebars->33->465"
10196 ]
10197 },
10198 {
@@ -10200,7 +10212,7 @@
10212 "zh-chs": "将Windows 32位代理URL复制到剪贴板",
10213 "zh-cht": "將Windows 32位代理URL複製到剪貼板",
10214 "xloc": [
10203 - "default.handlebars->33->443"
10215 + "default.handlebars->33->446"
10216 ]
10217 },
10218 {
@@ -10220,7 +10232,7 @@
10232 "zh-chs": "将Windows 64位代理URL复制到剪贴板",
10233 "zh-cht": "將Windows 64位代理URL複製到剪貼板",
10234 "xloc": [
10223 - "default.handlebars->33->447"
10235 + "default.handlebars->33->450"
10236 ]
10237 },
10238 {
@@ -10271,8 +10283,8 @@
10283 "zh-chs": "将代理URL复制到剪贴板",
10284 "zh-cht": "將代理URL複製到剪貼板",
10285 "xloc": [
10274 - "default.handlebars->33->475",
10275 - "default.handlebars->33->477"
10286 + "default.handlebars->33->478",
10287 + "default.handlebars->33->480"
10288 ]
10289 },
10290 {
@@ -10292,8 +10304,8 @@
10304 "zh-chs": "复制连结到剪贴板",
10305 "zh-cht": "複製連結到剪貼板",
10306 "xloc": [
10295 - "default.handlebars->33->1842",
10296 - "default.handlebars->33->1861",
10307 + "default.handlebars->33->1845",
10308 + "default.handlebars->33->1864",
10309 "default.handlebars->33->223",
10310 "default.handlebars->33->245",
10311 "default.handlebars->33->247",
@@ -10317,7 +10329,7 @@
10329 "zh-chs": "将macOS代理URL复制到剪贴板",
10330 "zh-cht": "將macOS代理URL複製到剪貼板",
10331 "xloc": [
10320 - "default.handlebars->33->456"
10332 + "default.handlebars->33->459"
10333 ]
10334 },
10335 {
@@ -10359,8 +10371,8 @@
10371 "xloc": [
10372 "agentinvite.handlebars->container->column_l->5->linuxtab",
10373 "agentinvite.handlebars->container->column_l->5->linuxtab",
10362 - "default.handlebars->33->452",
10363 - "default.handlebars->33->471"
10374 + "default.handlebars->33->455",
10375 + "default.handlebars->33->474"
10376 ]
10377 },
10378 {
@@ -10400,7 +10412,7 @@
10412 "zh-chs": "复制:“{0}”到“{1}”",
10413 "zh-cht": "複製:“{0}”到“{1}”",
10414 "xloc": [
10403 - "default.handlebars->33->1933"
10415 + "default.handlebars->33->1936"
10416 ]
10417 },
10418 {
@@ -10546,7 +10558,7 @@
10558 "zh-chs": "核心服务器",
10559 "zh-cht": "核心伺服器",
10560 "xloc": [
10549 - "default.handlebars->33->2478"
10561 + "default.handlebars->33->2481"
10562 ]
10563 },
10564 {
@@ -10566,7 +10578,7 @@
10578 "zh-chs": "科西嘉文",
10579 "zh-cht": "科西嘉文",
10580 "xloc": [
10569 - "default.handlebars->33->1338"
10581 + "default.handlebars->33->1341"
10582 ]
10583 },
10584 {
@@ -10586,7 +10598,7 @@
10598 "zh-chs": "创建帐号",
10599 "zh-cht": "創建帳號",
10600 "xloc": [
10589 - "default.handlebars->33->2107",
10601 + "default.handlebars->33->2110",
10602 "login-mobile.handlebars->container->page_content->column_l->1->1->0->1->createpanel->1->1->9->1->12->1->1",
10603 "login.handlebars->container->column_l->centralTable->1->0->logincell->createpanel->1->9->1->12->1->1",
10604 "login2.handlebars->centralTable->1->0->logincell->createpanel->1->9->1->12->1->1"
@@ -10619,7 +10631,7 @@
10631 "es": "Crear Token de inicio de sesión",
10632 "ru": "Создать токен входа",
10633 "xloc": [
10622 - "default.handlebars->33->1522",
10634 + "default.handlebars->33->1525",
10635 "default.handlebars->33->248"
10636 ]
10637 },
@@ -10640,7 +10652,7 @@
10652 "zh-chs": "创建用户组",
10653 "zh-cht": "創建用戶群",
10654 "xloc": [
10643 - "default.handlebars->33->2146"
10655 + "default.handlebars->33->2149"
10656 ]
10657 },
10658 {
@@ -10660,7 +10672,7 @@
10672 "zh-chs": "创建连结以与访客共享此设备",
10673 "zh-cht": "創建鏈結以與訪客共享此裝置",
10674 "xloc": [
10663 - "default.handlebars->33->750"
10675 + "default.handlebars->33->753"
10676 ]
10677 },
10678 {
@@ -10680,7 +10692,7 @@
10692 "zh-chs": "使用以下选项创建一个新的设备组。",
10693 "zh-cht": "使用以下選項創建一個新的裝置群。",
10694 "xloc": [
10683 - "default.handlebars->33->1552"
10695 + "default.handlebars->33->1555"
10696 ]
10697 },
10698 {
@@ -10709,7 +10721,7 @@
10721 "fr": "Créer des identifiants temporaires pour se connecter à votre compte. Utile pour permettre à des outils ou services de se connecter à votre compte.",
10722 "ru": "Создайте временные имя пользователя и пароль, которые можно использовать в качестве альтернативы для входа в вашу учетную запись. Это полезно для того, чтобы инструменты или другие службы могли получить доступ к вашей учетной записи.",
10723 "xloc": [
10712 - "default.handlebars->33->1503"
10724 + "default.handlebars->33->1506"
10725 ]
10726 },
10727 {
@@ -10729,7 +10741,7 @@
10741 "zh-chs": "创建文件夹(如果不存在)?",
10742 "zh-cht": "創建文件夾(如果不存在)?",
10743 "xloc": [
10732 - "default.handlebars->33->561"
10744 + "default.handlebars->33->564"
10745 ]
10746 },
10747 {
@@ -10749,7 +10761,7 @@
10761 "zh-chs": "创建文件夹:“{0}”",
10762 "zh-cht": "創建文件夾:“{0}”",
10763 "xloc": [
10752 - "default.handlebars->33->1926"
10764 + "default.handlebars->33->1929"
10765 ]
10766 },
10767 {
@@ -10778,7 +10790,7 @@
10790 "zh-chs": "通过导入以下格式的JSON档案一次创建多个帐户:",
10791 "zh-cht": "通過導入以下格式的JSON檔案一次創建多個帳戶:",
10792 "xloc": [
10781 - "default.handlebars->33->2071"
10793 + "default.handlebars->33->2074"
10794 ]
10795 },
10796 {
@@ -10820,7 +10832,7 @@
10832 "zh-chs": "创建的设备组:{0}",
10833 "zh-cht": "創建的設備組:{0}",
10834 "xloc": [
10823 - "default.handlebars->33->1937"
10835 + "default.handlebars->33->1940"
10836 ]
10837 },
10838 {
@@ -10840,7 +10852,7 @@
10852 "zh-chs": "创建一个链接,该链接允许没有帐户的访客在有限的时间内远程控制此设备。",
10853 "zh-cht": "創建一個鏈接,該鏈接允許沒有帳戶的訪客在有限的時間內遠程控制此設備。",
10854 "xloc": [
10843 - "default.handlebars->33->866"
10855 + "default.handlebars->33->869"
10856 ]
10857 },
10858 {
@@ -10894,7 +10906,7 @@
10906 "zh-chs": "创建",
10907 "zh-cht": "創建",
10908 "xloc": [
10897 - "default.handlebars->33->2232"
10909 + "default.handlebars->33->2235"
10910 ]
10911 },
10912 {
@@ -10914,7 +10926,7 @@
10926 "zh-chs": "创建时间",
10927 "zh-cht": "創作時間",
10928 "xloc": [
10917 - "default.handlebars->33->1611"
10929 + "default.handlebars->33->1614"
10930 ]
10931 },
10932 {
@@ -10956,8 +10968,8 @@
10968 "zh-chs": "创建者",
10969 "zh-cht": "創作者",
10970 "xloc": [
10959 - "default.handlebars->33->1609",
10960 - "default.handlebars->33->1610"
10971 + "default.handlebars->33->1612",
10972 + "default.handlebars->33->1613"
10973 ]
10974 },
10975 {
@@ -10979,9 +10991,9 @@
10991 "xloc": [
10992 "default-mobile.handlebars->11->297",
10993 "default-mobile.handlebars->11->299",
10982 - "default.handlebars->33->1580",
10983 - "default.handlebars->33->735",
10984 - "default.handlebars->33->737"
10994 + "default.handlebars->33->1583",
10995 + "default.handlebars->33->738",
10996 + "default.handlebars->33->740"
10997 ]
10998 },
10999 {
@@ -11001,7 +11013,7 @@
11013 "zh-chs": "克里语",
11014 "zh-cht": "克里語",
11015 "xloc": [
11004 - "default.handlebars->33->1339"
11016 + "default.handlebars->33->1342"
11017 ]
11018 },
11019 {
@@ -11021,7 +11033,7 @@
11033 "zh-chs": "克罗地亚文",
11034 "zh-cht": "克羅地亞文",
11035 "xloc": [
11024 - "default.handlebars->33->1340"
11036 + "default.handlebars->33->1343"
11037 ]
11038 },
11039 {
@@ -11085,8 +11097,8 @@
11097 "xloc": [
11098 "default-mobile.handlebars->11->387",
11099 "default-mobile.handlebars->11->391",
11088 - "default.handlebars->33->1045",
11089 - "default.handlebars->33->1049",
11100 + "default.handlebars->33->1048",
11101 + "default.handlebars->33->1052",
11102 "default.handlebars->33->57",
11103 "sharing.handlebars->11->24"
11104 ]
@@ -11207,7 +11219,7 @@
11219 "ru": "Текущий пароль неверен.",
11220 "xloc": [
11221 "default-mobile.handlebars->11->664",
11210 - "default.handlebars->33->2405"
11222 + "default.handlebars->33->2408"
11223 ]
11224 },
11225 {
@@ -11271,7 +11283,7 @@
11283 "zh-chs": "捷克文",
11284 "zh-cht": "捷克文",
11285 "xloc": [
11274 - "default.handlebars->33->1341"
11286 + "default.handlebars->33->1344"
11287 ]
11288 },
11289 {
@@ -11311,7 +11323,7 @@
11323 "zh-chs": "丹麦文",
11324 "zh-cht": "丹麥文",
11325 "xloc": [
11314 - "default.handlebars->33->1342"
11326 + "default.handlebars->33->1345"
11327 ]
11328 },
11329 {
@@ -11342,7 +11354,7 @@
11354 "zh-chs": "数据通道",
11355 "zh-cht": "數據通道",
11356 "xloc": [
11345 - "default.handlebars->33->1012",
11357 + "default.handlebars->33->1015",
11358 "sharing.handlebars->11->11"
11359 ]
11360 },
@@ -11363,7 +11375,7 @@
11375 "zh-chs": "日期和时间",
11376 "zh-cht": "日期和時間",
11377 "xloc": [
11366 - "default.handlebars->33->1500"
11378 + "default.handlebars->33->1503"
11379 ]
11380 },
11381 {
@@ -11384,7 +11396,7 @@
11396 "zh-cht": "天",
11397 "xloc": [
11398 "default-mobile.handlebars->11->341",
11387 - "default.handlebars->33->937"
11399 + "default.handlebars->33->940"
11400 ]
11401 },
11402 {
@@ -11404,7 +11416,7 @@
11416 "zh-chs": "停用",
11417 "zh-cht": "停用",
11418 "xloc": [
11407 - "default.handlebars->33->1664"
11419 + "default.handlebars->33->1667"
11420 ]
11421 },
11422 {
@@ -11424,7 +11436,7 @@
11436 "zh-chs": "如果设置停用CCM",
11437 "zh-cht": "如果設置停用CCM",
11438 "xloc": [
11427 - "default.handlebars->33->1676"
11439 + "default.handlebars->33->1679"
11440 ]
11441 },
11442 {
@@ -11462,7 +11474,7 @@
11474 "zh-cht": "沉睡",
11475 "xloc": [
11476 "default-mobile.handlebars->11->224",
11465 - "default.handlebars->33->488"
11477 + "default.handlebars->33->491"
11478 ]
11479 },
11480 {
@@ -11482,10 +11494,10 @@
11494 "zh-chs": "默认",
11495 "zh-cht": "默認",
11496 "xloc": [
11485 - "default.handlebars->33->2094",
11486 - "default.handlebars->33->2142",
11487 - "default.handlebars->33->2153",
11488 - "default.handlebars->33->2221"
11497 + "default.handlebars->33->2097",
11498 + "default.handlebars->33->2145",
11499 + "default.handlebars->33->2156",
11500 + "default.handlebars->33->2224"
11501 ]
11502 },
11503 {
@@ -11496,7 +11508,7 @@
11508 "ru": "Del",
11509 "xloc": [
11510 "default-mobile.handlebars->11->375",
11499 - "default.handlebars->33->1033"
11511 + "default.handlebars->33->1036"
11512 ]
11513 },
11514 {
@@ -11521,9 +11533,9 @@
11533 "default-mobile.handlebars->container->page_content->column_l->p10->p10files->p13toolbar->1->2->1->1",
11534 "default-mobile.handlebars->container->page_content->column_l->p5->p5myfiles->p5toolbar->1->0->1->1",
11535 "default-mobile.handlebars->dialog->idx_dlgButtonBar->5",
11524 - "default.handlebars->33->1129",
11525 - "default.handlebars->33->1868",
11526 - "default.handlebars->33->613",
11536 + "default.handlebars->33->1132",
11537 + "default.handlebars->33->1871",
11538 + "default.handlebars->33->616",
11539 "default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
11540 "default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3",
11541 "default.handlebars->container->dialog->idx_dlgButtonBar->5",
@@ -11554,7 +11566,7 @@
11566 "zh-cht": "刪除帳戶",
11567 "xloc": [
11568 "default-mobile.handlebars->11->108",
11557 - "default.handlebars->33->1537"
11569 + "default.handlebars->33->1540"
11570 ]
11571 },
11572 {
@@ -11574,7 +11586,7 @@
11586 "zh-chs": "删除帐户",
11587 "zh-cht": "刪除帳戶",
11588 "xloc": [
11577 - "default.handlebars->33->2061"
11589 + "default.handlebars->33->2064"
11590 ]
11591 },
11592 {
@@ -11595,7 +11607,7 @@
11607 "zh-cht": "刪除裝置",
11608 "xloc": [
11609 "default-mobile.handlebars->11->302",
11598 - "default.handlebars->33->754"
11610 + "default.handlebars->33->757"
11611 ]
11612 },
11613 {
@@ -11617,9 +11629,9 @@
11629 "xloc": [
11630 "default-mobile.handlebars->11->576",
11631 "default-mobile.handlebars->11->579",
11620 - "default.handlebars->33->1659",
11621 - "default.handlebars->33->1660",
11622 - "default.handlebars->33->1693"
11632 + "default.handlebars->33->1662",
11633 + "default.handlebars->33->1663",
11634 + "default.handlebars->33->1696"
11635 ]
11636 },
11637 {
@@ -11640,7 +11652,7 @@
11652 "zh-cht": "刪除節點",
11653 "xloc": [
11654 "default-mobile.handlebars->11->349",
11643 - "default.handlebars->33->963"
11655 + "default.handlebars->33->966"
11656 ]
11657 },
11658 {
@@ -11660,7 +11672,7 @@
11672 "zh-chs": "删除节点",
11673 "zh-cht": "刪除節點",
11674 "xloc": [
11663 - "default.handlebars->33->536"
11675 + "default.handlebars->33->539"
11676 ]
11677 },
11678 {
@@ -11680,7 +11692,7 @@
11692 "zh-chs": "删除用户",
11693 "zh-cht": "刪除用戶",
11694 "xloc": [
11683 - "default.handlebars->33->2273"
11695 + "default.handlebars->33->2276"
11696 ]
11697 },
11698 {
@@ -11700,8 +11712,8 @@
11712 "zh-chs": "删除用户群组",
11713 "zh-cht": "刪除用戶群組",
11714 "xloc": [
11703 - "default.handlebars->33->2191",
11704 - "default.handlebars->33->2201"
11715 + "default.handlebars->33->2194",
11716 + "default.handlebars->33->2204"
11717 ]
11718 },
11719 {
@@ -11721,7 +11733,7 @@
11733 "zh-chs": "删除用户群组",
11734 "zh-cht": "刪除用戶群組",
11735 "xloc": [
11724 - "default.handlebars->33->2140"
11736 + "default.handlebars->33->2143"
11737 ]
11738 },
11739 {
@@ -11741,7 +11753,7 @@
11753 "zh-chs": "删除用户{0}",
11754 "zh-cht": "刪除用戶{0}",
11755 "xloc": [
11744 - "default.handlebars->33->2300"
11756 + "default.handlebars->33->2303"
11757 ]
11758 },
11759 {
@@ -11762,7 +11774,7 @@
11774 "zh-cht": "刪除帳戶",
11775 "xloc": [
11776 "default-mobile.handlebars->container->page_content->column_l->p3->p3info->3->p3AccountActions->p2AccountActions->3->9->0",
11765 - "default.handlebars->33->2057",
11777 + "default.handlebars->33->2060",
11778 "default.handlebars->container->column_l->p2->p2info->p2AccountActions->3->p2AccountPassActions->7"
11779 ]
11780 },
@@ -11783,7 +11795,7 @@
11795 "zh-chs": "删除设备",
11796 "zh-cht": "刪除裝置",
11797 "xloc": [
11786 - "default.handlebars->33->526"
11798 + "default.handlebars->33->529"
11799 ]
11800 },
11801 {
@@ -11803,7 +11815,7 @@
11815 "zh-chs": "删除群组",
11816 "zh-cht": "刪除群組",
11817 "xloc": [
11806 - "default.handlebars->33->2136"
11818 + "default.handlebars->33->2139"
11819 ]
11820 },
11821 {
@@ -11823,7 +11835,7 @@
11835 "zh-chs": "删除项目?",
11836 "zh-cht": "刪除項目?",
11837 "xloc": [
11826 - "default.handlebars->33->614"
11838 + "default.handlebars->33->617"
11839 ]
11840 },
11841 {
@@ -11843,7 +11855,7 @@
11855 "zh-chs": "递归删除:“{0}”,{1}个元素已删除",
11856 "zh-cht": "遞歸刪除:“{0}”,{1}個元素已刪除",
11857 "xloc": [
11846 - "default.handlebars->33->1928"
11858 + "default.handlebars->33->1931"
11859 ]
11860 },
11861 {
@@ -11865,8 +11877,8 @@
11877 "xloc": [
11878 "default-mobile.handlebars->11->148",
11879 "default-mobile.handlebars->11->431",
11868 - "default.handlebars->33->1131",
11869 - "default.handlebars->33->1870",
11880 + "default.handlebars->33->1134",
11881 + "default.handlebars->33->1873",
11882 "sharing.handlebars->11->63"
11883 ]
11884 },
@@ -11887,7 +11899,7 @@
11899 "zh-chs": "删除用户群组{0}?",
11900 "zh-cht": "刪除用戶群組{0}?",
11901 "xloc": [
11890 - "default.handlebars->33->2199"
11902 + "default.handlebars->33->2202"
11903 ]
11904 },
11905 {
@@ -11909,8 +11921,8 @@
11921 "xloc": [
11922 "default-mobile.handlebars->11->147",
11923 "default-mobile.handlebars->11->430",
11912 - "default.handlebars->33->1130",
11913 - "default.handlebars->33->1869",
11924 + "default.handlebars->33->1133",
11925 + "default.handlebars->33->1872",
11926 "sharing.handlebars->11->62"
11927 ]
11928 },
@@ -11951,7 +11963,7 @@
11963 "zh-chs": "删除:“{0}”",
11964 "zh-cht": "刪除:“{0}”",
11965 "xloc": [
11954 - "default.handlebars->33->1927"
11966 + "default.handlebars->33->1930"
11967 ]
11968 },
11969 {
@@ -11971,7 +11983,7 @@
11983 "zh-chs": "删除:“{0}”,{1}个元素已删除",
11984 "zh-cht": "刪除:“{0}”,已刪除{1}個元素",
11985 "xloc": [
11974 - "default.handlebars->33->1929"
11986 + "default.handlebars->33->1932"
11987 ]
11988 },
11989 {
@@ -11992,7 +12004,7 @@
12004 "zh-cht": "被拒絕",
12005 "xloc": [
12006 "default-mobile.handlebars->11->362",
11995 - "default.handlebars->33->1008",
12007 + "default.handlebars->33->1011",
12008 "sharing.handlebars->11->29",
12009 "sharing.handlebars->11->7"
12010 ]
@@ -12093,18 +12105,18 @@
12105 "default-mobile.handlebars->11->492",
12106 "default-mobile.handlebars->11->567",
12107 "default-mobile.handlebars->11->581",
12096 - "default.handlebars->33->1003",
12097 - "default.handlebars->33->1183",
12098 - "default.handlebars->33->1193",
12099 - "default.handlebars->33->1558",
12100 - "default.handlebars->33->1606",
12101 - "default.handlebars->33->1695",
12102 - "default.handlebars->33->2145",
12103 - "default.handlebars->33->2155",
12104 - "default.handlebars->33->2156",
12105 - "default.handlebars->33->2197",
12106 - "default.handlebars->33->654",
12107 - "default.handlebars->33->655",
12108 + "default.handlebars->33->1006",
12109 + "default.handlebars->33->1186",
12110 + "default.handlebars->33->1196",
12111 + "default.handlebars->33->1561",
12112 + "default.handlebars->33->1609",
12113 + "default.handlebars->33->1698",
12114 + "default.handlebars->33->2148",
12115 + "default.handlebars->33->2158",
12116 + "default.handlebars->33->2159",
12117 + "default.handlebars->33->2200",
12118 + "default.handlebars->33->657",
12119 + "default.handlebars->33->658",
12120 "default.handlebars->33->95",
12121 "default.handlebars->container->column_l->p42->p42tbl->1->0->3"
12122 ]
@@ -12144,13 +12156,13 @@
12156 "zh-cht": "桌面",
12157 "xloc": [
12158 "default-mobile.handlebars->11->309",
12147 - "default.handlebars->33->1075",
12148 - "default.handlebars->33->1701",
12149 - "default.handlebars->33->2355",
12150 - "default.handlebars->33->2456",
12151 - "default.handlebars->33->619",
12152 - "default.handlebars->33->801",
12153 - "default.handlebars->33->868",
12159 + "default.handlebars->33->1078",
12160 + "default.handlebars->33->1704",
12161 + "default.handlebars->33->2358",
12162 + "default.handlebars->33->2459",
12163 + "default.handlebars->33->622",
12164 + "default.handlebars->33->804",
12165 + "default.handlebars->33->871",
12166 "default.handlebars->container->topbar->1->1->MainSubMenuSpan->MainSubMenu->1->0->MainDevDesktop",
12167 "default.handlebars->contextMenu->cxdesktop",
12168 "sharing.handlebars->11->23",
@@ -12163,8 +12175,8 @@
12175 "fr": "Bureau + Fichiers",
12176 "ru": "Рабочий стол + Файлы",
12177 "xloc": [
12166 - "default.handlebars->33->805",
12167 - "default.handlebars->33->871"
12178 + "default.handlebars->33->808",
12179 + "default.handlebars->33->874"
12180 ]
12181 },
12182 {
@@ -12173,7 +12185,7 @@
12185 "fr": "Bureau + Terminal",
12186 "ru": "Рабочий стол + Терминал",
12187 "xloc": [
12176 - "default.handlebars->33->802"
12188 + "default.handlebars->33->805"
12189 ]
12190 },
12191 {
@@ -12182,8 +12194,8 @@
12194 "fr": "Bureau + Terminal + Fichiers",
12195 "ru": "Рабочий стол + Терминал + Файлы",
12196 "xloc": [
12185 - "default.handlebars->33->806",
12186 - "default.handlebars->33->873"
12197 + "default.handlebars->33->809",
12198 + "default.handlebars->33->876"
12199 ]
12200 },
12201 {
@@ -12211,7 +12223,7 @@
12223 "nl": "Desktop Multiplex",
12224 "fr": "Bureau multiplexé",
12225 "xloc": [
12214 - "default.handlebars->33->2461"
12226 + "default.handlebars->33->2464"
12227 ]
12228 },
12229 {
@@ -12231,10 +12243,10 @@
12243 "zh-chs": "桌面通知",
12244 "zh-cht": "桌面通知",
12245 "xloc": [
12234 - "default.handlebars->33->1620",
12235 - "default.handlebars->33->2160",
12236 - "default.handlebars->33->2247",
12237 - "default.handlebars->33->712"
12246 + "default.handlebars->33->1623",
12247 + "default.handlebars->33->2163",
12248 + "default.handlebars->33->2250",
12249 + "default.handlebars->33->715"
12250 ]
12251 },
12252 {
@@ -12254,10 +12266,10 @@
12266 "zh-chs": "桌面提示",
12267 "zh-cht": "桌面提示",
12268 "xloc": [
12257 - "default.handlebars->33->1619",
12258 - "default.handlebars->33->2159",
12259 - "default.handlebars->33->2246",
12260 - "default.handlebars->33->711"
12269 + "default.handlebars->33->1622",
12270 + "default.handlebars->33->2162",
12271 + "default.handlebars->33->2249",
12272 + "default.handlebars->33->714"
12273 ]
12274 },
12275 {
@@ -12277,10 +12289,10 @@
12289 "zh-chs": "桌面提示+工具栏",
12290 "zh-cht": "桌面提示+工具欄",
12291 "xloc": [
12280 - "default.handlebars->33->1617",
12281 - "default.handlebars->33->2157",
12282 - "default.handlebars->33->2244",
12283 - "default.handlebars->33->709"
12292 + "default.handlebars->33->1620",
12293 + "default.handlebars->33->2160",
12294 + "default.handlebars->33->2247",
12295 + "default.handlebars->33->712"
12296 ]
12297 },
12298 {
@@ -12289,7 +12301,7 @@
12301 "fr": "Session de bureau",
12302 "ru": "Сеанс рабочего стола",
12303 "xloc": [
12292 - "default.handlebars->33->2348"
12304 + "default.handlebars->33->2351"
12305 ]
12306 },
12307 {
@@ -12351,10 +12363,10 @@
12363 "zh-chs": "桌面工具栏",
12364 "zh-cht": "桌面工具欄",
12365 "xloc": [
12354 - "default.handlebars->33->1618",
12355 - "default.handlebars->33->2158",
12356 - "default.handlebars->33->2245",
12357 - "default.handlebars->33->710"
12366 + "default.handlebars->33->1621",
12367 + "default.handlebars->33->2161",
12368 + "default.handlebars->33->2248",
12369 + "default.handlebars->33->713"
12370 ]
12371 },
12372 {
@@ -12364,7 +12376,7 @@
12376 "de": "Desktop, nur Ansehen",
12377 "ru": "Рабочий стол, только просмотр",
12378 "xloc": [
12367 - "default.handlebars->33->874"
12379 + "default.handlebars->33->877"
12380 ]
12381 },
12382 {
@@ -12384,7 +12396,7 @@
12396 "zh-chs": "桌面时段",
12397 "zh-cht": "桌面時段",
12398 "xloc": [
12387 - "default.handlebars->33->1074"
12399 + "default.handlebars->33->1077"
12400 ]
12401 },
12402 {
@@ -12479,11 +12491,11 @@
12491 "zh-cht": "裝置",
12492 "xloc": [
12493 "default-mobile.handlebars->11->487",
12482 - "default.handlebars->33->1178",
12483 - "default.handlebars->33->1286",
12484 - "default.handlebars->33->1724",
12494 + "default.handlebars->33->1181",
12495 + "default.handlebars->33->1289",
12496 + "default.handlebars->33->1727",
12497 "default.handlebars->33->204",
12486 - "default.handlebars->33->2319",
12498 + "default.handlebars->33->2322",
12499 "default.handlebars->container->column_l->p1->devListToolbarSpan->1->0->9->devListToolbarSort->sortselect->5"
12500 ]
12501 },
@@ -12506,7 +12518,7 @@
12518 "xloc": [
12519 "default-mobile.handlebars->11->330",
12520 "default-mobile.handlebars->11->339",
12509 - "default.handlebars->33->920"
12521 + "default.handlebars->33->923"
12522 ]
12523 },
12524 {
@@ -12557,15 +12569,15 @@
12569 "xloc": [
12570 "agent-translations.json",
12571 "default-mobile.handlebars->11->642",
12560 - "default.handlebars->33->1719",
12572 "default.handlebars->33->1722",
12562 - "default.handlebars->33->1723",
12563 - "default.handlebars->33->2008",
12564 - "default.handlebars->33->2183",
12565 - "default.handlebars->33->2189",
12566 - "default.handlebars->33->2307",
12567 - "default.handlebars->33->2364",
12568 - "default.handlebars->33->2383"
12573 + "default.handlebars->33->1725",
12574 + "default.handlebars->33->1726",
12575 + "default.handlebars->33->2011",
12576 + "default.handlebars->33->2186",
12577 + "default.handlebars->33->2192",
12578 + "default.handlebars->33->2310",
12579 + "default.handlebars->33->2367",
12580 + "default.handlebars->33->2386"
12581 ]
12582 },
12583 {
@@ -12586,7 +12598,7 @@
12598 "zh-cht": "裝置群用戶",
12599 "xloc": [
12600 "default-mobile.handlebars->11->631",
12589 - "default.handlebars->33->1789"
12601 + "default.handlebars->33->1792"
12602 ]
12603 },
12604 {
@@ -12607,11 +12619,11 @@
12619 "zh-cht": "裝置群",
12620 "xloc": [
12621 "default-mobile.handlebars->container->page_content->column_l->p3->p3info->3->3",
12610 - "default.handlebars->33->2024",
12611 - "default.handlebars->33->2130",
12612 - "default.handlebars->33->2170",
12613 - "default.handlebars->33->2241",
12614 - "default.handlebars->33->2434",
12622 + "default.handlebars->33->2027",
12623 + "default.handlebars->33->2133",
12624 + "default.handlebars->33->2173",
12625 + "default.handlebars->33->2244",
12626 + "default.handlebars->33->2437",
12627 "default.handlebars->container->column_l->p2->p2info->9"
12628 ]
12629 },
@@ -12632,7 +12644,7 @@
12644 "zh-chs": "设备信息导出",
12645 "zh-cht": "裝置訊息輸出",
12646 "xloc": [
12635 - "default.handlebars->33->576"
12647 + "default.handlebars->33->579"
12648 ]
12649 },
12650 {
@@ -12652,7 +12664,7 @@
12664 "zh-chs": "设备位置",
12665 "zh-cht": "裝置位置",
12666 "xloc": [
12655 - "default.handlebars->33->964"
12667 + "default.handlebars->33->967"
12668 ]
12669 },
12670 {
@@ -12672,7 +12684,7 @@
12684 "zh-chs": "设备消息",
12685 "zh-cht": "裝置訊息",
12686 "xloc": [
12675 - "default.handlebars->33->858"
12687 + "default.handlebars->33->861"
12688 ]
12689 },
12690 {
@@ -12693,8 +12705,8 @@
12705 "zh-cht": "裝置名稱",
12706 "xloc": [
12707 "default-mobile.handlebars->11->355",
12696 - "default.handlebars->33->1001",
12697 - "default.handlebars->33->2363",
12708 + "default.handlebars->33->1004",
12709 + "default.handlebars->33->2366",
12710 "default.handlebars->33->348",
12711 "default.handlebars->33->357",
12712 "player.handlebars->3->9"
@@ -12717,8 +12729,8 @@
12729 "zh-chs": "设备通知",
12730 "zh-cht": "裝置通知",
12731 "xloc": [
12720 - "default.handlebars->33->557",
12721 - "default.handlebars->33->863"
12732 + "default.handlebars->33->560",
12733 + "default.handlebars->33->866"
12734 ]
12735 },
12736 {
@@ -12765,7 +12777,7 @@
12777 "zh-chs": "设备共享链接",
12778 "zh-cht": "設備共享鏈接",
12779 "xloc": [
12768 - "default.handlebars->33->798"
12780 + "default.handlebars->33->801"
12781 ]
12782 },
12783 {
@@ -12797,9 +12809,9 @@
12809 "default-mobile.handlebars->11->259",
12810 "default-mobile.handlebars->11->261",
12811 "default-mobile.handlebars->11->263",
12800 - "default.handlebars->33->656",
12801 - "default.handlebars->33->658",
12802 - "default.handlebars->33->660"
12812 + "default.handlebars->33->659",
12813 + "default.handlebars->33->661",
12814 + "default.handlebars->33->663"
12815 ]
12816 },
12817 {
@@ -12827,8 +12839,8 @@
12839 "zh-chs": "设备连接。",
12840 "zh-cht": "裝置連接。",
12841 "xloc": [
12830 - "default.handlebars->33->1525",
12831 - "default.handlebars->33->1810"
12842 + "default.handlebars->33->1528",
12843 + "default.handlebars->33->1813"
12844 ]
12845 },
12846 {
@@ -12848,8 +12860,8 @@
12860 "zh-chs": "设备断开连接。",
12861 "zh-cht": "裝置斷開連接。",
12862 "xloc": [
12851 - "default.handlebars->33->1526",
12852 - "default.handlebars->33->1811"
12863 + "default.handlebars->33->1529",
12864 + "default.handlebars->33->1814"
12865 ]
12866 },
12867 {
@@ -12869,7 +12881,7 @@
12881 "zh-chs": "创建的设备组:{0}",
12882 "zh-cht": "設備組已創建:{0}",
12883 "xloc": [
12872 - "default.handlebars->33->1958"
12884 + "default.handlebars->33->1961"
12885 ]
12886 },
12887 {
@@ -12889,7 +12901,7 @@
12901 "zh-chs": "设备组已删除:{0}",
12902 "zh-cht": "設備組已刪除:{0}",
12903 "xloc": [
12892 - "default.handlebars->33->1959"
12904 + "default.handlebars->33->1962"
12905 ]
12906 },
12907 {
@@ -12909,7 +12921,7 @@
12921 "zh-chs": "设备组成员身份已更改:{0}",
12922 "zh-cht": "設備組成員身份已更改:{0}",
12923 "xloc": [
12912 - "default.handlebars->33->1960"
12924 + "default.handlebars->33->1963"
12925 ]
12926 },
12927 {
@@ -12930,7 +12942,7 @@
12942 "zh-cht": "其他裝置群管理員可以查看和更改裝置群註釋。",
12943 "xloc": [
12944 "default-mobile.handlebars->11->337",
12933 - "default.handlebars->33->855"
12945 + "default.handlebars->33->858"
12946 ]
12947 },
12948 {
@@ -12950,7 +12962,7 @@
12962 "zh-chs": "设备组通知已更改",
12963 "zh-cht": "設備組通知已更改",
12964 "xloc": [
12953 - "default.handlebars->33->1955"
12965 + "default.handlebars->33->1958"
12966 ]
12967 },
12968 {
@@ -12970,7 +12982,7 @@
12982 "zh-chs": "未删除的设备组:{0}",
12983 "zh-cht": "未刪除的設備組:{0}",
12984 "xloc": [
12973 - "default.handlebars->33->1938"
12985 + "default.handlebars->33->1941"
12986 ]
12987 },
12988 {
@@ -12993,7 +13005,7 @@
13005 "default-mobile.handlebars->11->192",
13006 "default-mobile.handlebars->11->248",
13007 "default.handlebars->33->290",
12996 - "default.handlebars->33->640"
13008 + "default.handlebars->33->643"
13009 ]
13010 },
13011 {
@@ -13013,7 +13025,7 @@
13025 "zh-chs": "检测到设备,但无法获得电源状态。",
13026 "zh-cht": "檢測到裝置,但無法獲得電源狀態。",
13027 "xloc": [
13016 - "default.handlebars->33->493"
13028 + "default.handlebars->33->496"
13029 ]
13030 },
13031 {
@@ -13034,7 +13046,7 @@
13046 "zh-cht": "裝置正在休眠(S4)",
13047 "xloc": [
13048 "default-mobile.handlebars->11->232",
13037 - "default.handlebars->33->499"
13049 + "default.handlebars->33->502"
13050 ]
13051 },
13052 {
@@ -13055,7 +13067,7 @@
13067 "zh-cht": "裝置處於深度睡眠狀態(S3)",
13068 "xloc": [
13069 "default-mobile.handlebars->11->231",
13058 - "default.handlebars->33->498"
13070 + "default.handlebars->33->501"
13071 ]
13072 },
13073 {
@@ -13075,7 +13087,7 @@
13087 "zh-chs": "设备处于深度睡眠状态(S3)。",
13088 "zh-cht": "裝置處於深度睡眠狀態(S3)。",
13089 "xloc": [
13078 - "default.handlebars->33->487"
13090 + "default.handlebars->33->490"
13091 ]
13092 },
13093 {
@@ -13095,7 +13107,7 @@
13107 "zh-chs": "设备处于休眠状态(S4)。",
13108 "zh-cht": "裝置處於休眠狀態(S4)。",
13109 "xloc": [
13098 - "default.handlebars->33->489"
13110 + "default.handlebars->33->492"
13111 ]
13112 },
13113 {
@@ -13115,7 +13127,7 @@
13127 "zh-chs": "设备处于关机状态(S5)。",
13128 "zh-cht": "裝置處於關機狀態(S5)。",
13129 "xloc": [
13118 - "default.handlebars->33->491"
13130 + "default.handlebars->33->494"
13131 ]
13132 },
13133 {
@@ -13136,7 +13148,7 @@
13148 "zh-cht": "裝置處於睡眠狀態(S1)",
13149 "xloc": [
13150 "default-mobile.handlebars->11->229",
13139 - "default.handlebars->33->496"
13151 + "default.handlebars->33->499"
13152 ]
13153 },
13154 {
@@ -13156,7 +13168,7 @@
13168 "zh-chs": "设备处于睡眠状态(S1)。",
13169 "zh-cht": "裝置處於睡眠狀態(S1)。",
13170 "xloc": [
13159 - "default.handlebars->33->483"
13171 + "default.handlebars->33->486"
13172 ]
13173 },
13174 {
@@ -13177,7 +13189,7 @@
13189 "zh-cht": "裝置處於睡眠狀態(S2)",
13190 "xloc": [
13191 "default-mobile.handlebars->11->230",
13180 - "default.handlebars->33->497"
13192 + "default.handlebars->33->500"
13193 ]
13194 },
13195 {
@@ -13197,7 +13209,7 @@
13209 "zh-chs": "设备处于睡眠状态(S2)。",
13210 "zh-cht": "裝置處於睡眠狀態(S2)。",
13211 "xloc": [
13200 - "default.handlebars->33->485"
13212 + "default.handlebars->33->488"
13213 ]
13214 },
13215 {
@@ -13218,7 +13230,7 @@
13230 "zh-cht": "裝置處於軟關機狀態(S5)",
13231 "xloc": [
13232 "default-mobile.handlebars->11->233",
13221 - "default.handlebars->33->500"
13233 + "default.handlebars->33->503"
13234 ]
13235 },
13236 {
@@ -13241,7 +13253,7 @@
13253 "default-mobile.handlebars->11->191",
13254 "default-mobile.handlebars->11->247",
13255 "default.handlebars->33->289",
13244 - "default.handlebars->33->639"
13256 + "default.handlebars->33->642"
13257 ]
13258 },
13259 {
@@ -13262,7 +13274,7 @@
13274 "zh-cht": "裝置已連接電源",
13275 "xloc": [
13276 "default-mobile.handlebars->11->228",
13265 - "default.handlebars->33->495"
13277 + "default.handlebars->33->498"
13278 ]
13279 },
13280 {
@@ -13282,7 +13294,7 @@
13294 "zh-chs": "设备已连接电源。",
13295 "zh-cht": "裝置已連接電源。",
13296 "xloc": [
13285 - "default.handlebars->33->481"
13297 + "default.handlebars->33->484"
13298 ]
13299 },
13300 {
@@ -13303,7 +13315,7 @@
13315 "zh-cht": "裝置存在,但無法確定電源狀態",
13316 "xloc": [
13317 "default-mobile.handlebars->11->234",
13306 - "default.handlebars->33->501"
13318 + "default.handlebars->33->504"
13319 ]
13320 },
13321 {
@@ -13323,7 +13335,7 @@
13335 "zh-chs": "设备名称",
13336 "zh-cht": "裝置名稱",
13337 "xloc": [
13326 - "default.handlebars->33->631"
13338 + "default.handlebars->33->634"
13339 ]
13340 },
13341 {
@@ -13343,7 +13355,7 @@
13355 "zh-chs": "设备通知",
13356 "zh-cht": "設備通知",
13357 "xloc": [
13346 - "default.handlebars->33->523"
13358 + "default.handlebars->33->526"
13359 ]
13360 },
13361 {
@@ -13353,7 +13365,7 @@
13365 "de": "Gerät angefordert Intel(R) AMT ACM TLS activation, FQDN: {0}",
13366 "ru": "Устройство Intel(R) AMT ACM запросило активацию TLS, полное доменное имя: {0}",
13367 "xloc": [
13356 - "default.handlebars->33->1993"
13368 + "default.handlebars->33->1996"
13369 ]
13370 },
13371 {
@@ -13373,7 +13385,7 @@
13385 "zh-chs": "设备请求激活Intel(R)AMT ACM,FQDN:{0}",
13386 "zh-cht": "設備請求激活Intel(R)AMT ACM,FQDN:{0}",
13387 "xloc": [
13376 - "default.handlebars->33->1940"
13388 + "default.handlebars->33->1943"
13389 ]
13390 },
13391 {
@@ -13410,9 +13422,9 @@
13422 "zh-chs": "设备",
13423 "zh-cht": "裝置",
13424 "xloc": [
13413 - "default.handlebars->33->1658",
13414 - "default.handlebars->33->2131",
13415 - "default.handlebars->33->2171"
13425 + "default.handlebars->33->1661",
13426 + "default.handlebars->33->2134",
13427 + "default.handlebars->33->2174"
13428 ]
13429 },
13430 {
@@ -13433,7 +13445,7 @@
13445 "zh-cht": "已禁用",
13446 "xloc": [
13447 "default-mobile.handlebars->11->472",
13436 - "default.handlebars->33->705"
13448 + "default.handlebars->33->708"
13449 ]
13450 },
13451 {
@@ -13453,7 +13465,7 @@
13465 "zh-chs": "禁用的电子邮件两因素身份验证",
13466 "zh-cht": "禁用的電子郵件兩因素身份驗證",
13467 "xloc": [
13456 - "default.handlebars->33->1971"
13468 + "default.handlebars->33->1974"
13469 ]
13470 },
13471 {
@@ -13477,8 +13489,8 @@
13489 "default-mobile.handlebars->11->411",
13490 "default-mobile.handlebars->container->page_content->column_l->p10->p10desktop->deskarea1->1->3",
13491 "default-mobile.handlebars->container->page_content->column_l->p10->p10terminal->termTable->termarea1->1->3->disconnectbutton2span",
13480 - "default.handlebars->33->1102",
13481 - "default.handlebars->33->1630",
13492 + "default.handlebars->33->1105",
13493 + "default.handlebars->33->1633",
13494 "default.handlebars->container->column_l->p11->deskarea0->deskarea1->3->disconnectbutton1span",
13495 "default.handlebars->container->column_l->p12->termTable->1->1->0->1->3->disconnectbutton2span",
13496 "sharing.handlebars->11->43",
@@ -13582,7 +13594,7 @@
13594 "zh-chs": "在远程设备上显示一个消息框。",
13595 "zh-cht": "在遠程裝置上顯示一個訊息框。",
13596 "xloc": [
13585 - "default.handlebars->33->859"
13597 + "default.handlebars->33->862"
13598 ]
13599 },
13600 {
@@ -13622,7 +13634,7 @@
13634 "zh-chs": "在远程设备上显示短信",
13635 "zh-cht": "在遠程裝置上顯示短信",
13636 "xloc": [
13625 - "default.handlebars->33->746"
13637 + "default.handlebars->33->749"
13638 ]
13639 },
13640 {
@@ -13642,7 +13654,7 @@
13654 "zh-chs": "显示设备组名称",
13655 "zh-cht": "顯示裝置群名稱",
13656 "xloc": [
13645 - "default.handlebars->33->1524"
13657 + "default.handlebars->33->1527"
13658 ]
13659 },
13660 {
@@ -13662,7 +13674,7 @@
13674 "zh-chs": "显示名称",
13675 "zh-cht": "顯示名稱",
13676 "xloc": [
13665 - "default.handlebars->33->1060"
13677 + "default.handlebars->33->1063"
13678 ]
13679 },
13680 {
@@ -13682,7 +13694,7 @@
13694 "zh-chs": "显示公共连结",
13695 "zh-cht": "顯示公共鏈結",
13696 "xloc": [
13685 - "default.handlebars->33->1841"
13697 + "default.handlebars->33->1844"
13698 ]
13699 },
13700 {
@@ -13691,7 +13703,7 @@
13703 "fr": "Affichage {0}",
13704 "ru": "Экран {0}",
13705 "xloc": [
13694 - "default.handlebars->33->1077"
13706 + "default.handlebars->33->1080"
13707 ]
13708 },
13709 {
@@ -13711,7 +13723,7 @@
13723 "zh-chs": "显示消息框,标题= “{0}”,消息= “{1}”",
13724 "zh-cht": "顯示消息框,標題= “{0}”,消息= “{1}”",
13725 "xloc": [
13714 - "default.handlebars->33->1900"
13726 + "default.handlebars->33->1903"
13727 ]
13728 },
13729 {
@@ -13731,7 +13743,7 @@
13743 "zh-chs": "显示吐司消息,标题= “{0}”,消息= “{1}”",
13744 "zh-cht": "顯示吐司消息,標題= “{0}”,消息= “{1}”",
13745 "xloc": [
13734 - "default.handlebars->33->1908"
13746 + "default.handlebars->33->1911"
13747 ]
13748 },
13749 {
@@ -13751,8 +13763,8 @@
13763 "zh-chs": "什么都不做",
13764 "zh-cht": "什麼都不做",
13765 "xloc": [
13754 - "default.handlebars->33->1679",
13755 - "default.handlebars->33->1683"
13766 + "default.handlebars->33->1682",
13767 + "default.handlebars->33->1686"
13768 ]
13769 },
13770 {
@@ -13772,10 +13784,10 @@
13784 "zh-chs": "域",
13785 "zh-cht": "域",
13786 "xloc": [
13775 - "default.handlebars->33->2095",
13776 - "default.handlebars->33->2143",
13777 - "default.handlebars->33->2152",
13778 - "default.handlebars->33->2220",
13787 + "default.handlebars->33->2098",
13788 + "default.handlebars->33->2146",
13789 + "default.handlebars->33->2155",
13790 + "default.handlebars->33->2223",
13791 "mstsc.handlebars->main->1->3->1->2->1->0",
13792 "mstsc.handlebars->main->1->3->1->2->3"
13793 ]
@@ -13797,7 +13809,7 @@
13809 "zh-chs": "请勿更改,如果设置请保留CCM",
13810 "zh-cht": "請勿更改,如果設置請保留CCM",
13811 "xloc": [
13800 - "default.handlebars->33->1675"
13812 + "default.handlebars->33->1678"
13813 ]
13814 },
13815 {
@@ -13834,7 +13846,7 @@
13846 "zh-chs": "不要连接到服务器",
13847 "zh-cht": "不要連接到伺服器",
13848 "xloc": [
13837 - "default.handlebars->33->1684"
13849 + "default.handlebars->33->1687"
13850 ]
13851 },
13852 {
@@ -13901,7 +13913,7 @@
13913 "ru": "Down",
13914 "xloc": [
13915 "default-mobile.handlebars->11->383",
13904 - "default.handlebars->33->1041"
13916 + "default.handlebars->33->1044"
13917 ]
13918 },
13919 {
@@ -13974,7 +13986,7 @@
13986 "zh-cht": "下載檔案",
13987 "xloc": [
13988 "default-mobile.handlebars->11->450",
13977 - "default.handlebars->33->1150",
13989 + "default.handlebars->33->1153",
13990 "sharing.handlebars->11->82"
13991 ]
13992 },
@@ -14015,7 +14027,7 @@
14027 "zh-chs": "下载MeshCmd",
14028 "zh-cht": "下載MeshCmd",
14029 "xloc": [
14018 - "default.handlebars->33->989"
14030 + "default.handlebars->33->992"
14031 ]
14032 },
14033 {
@@ -14075,7 +14087,7 @@
14087 "zh-chs": "下载报告",
14088 "zh-cht": "下載報告",
14089 "xloc": [
14078 - "default.handlebars->33->2013",
14090 + "default.handlebars->33->2016",
14091 "default.handlebars->container->column_l->p3->3->1->0->3"
14092 ]
14093 },
@@ -14096,7 +14108,7 @@
14108 "zh-chs": "下载带有指令档案的“ meshcmd”,以通过此服务器将网络讯息发送到该设备。紧记编辑meshaction.txt并添加您的帐户密码或进行任何必要的更改。",
14109 "zh-cht": "下載帶有指令檔案的“ meshcmd”,以通過此服務器將網絡讯息發送到該裝置。緊記編輯meshaction.txt並新增你的帳戶密碼或進行任何必要的更改。",
14110 "xloc": [
14099 - "default.handlebars->33->982"
14111 + "default.handlebars->33->985"
14112 ]
14113 },
14114 {
@@ -14176,7 +14188,7 @@
14188 "zh-chs": "下载电源事件",
14189 "zh-cht": "下載電源事件",
14190 "xloc": [
14179 - "default.handlebars->33->938"
14191 + "default.handlebars->33->941"
14192 ]
14193 },
14194 {
@@ -14266,7 +14278,7 @@
14278 "zh-chs": "使用以下一种档案格式下载设备列表。",
14279 "zh-cht": "使用以下一種檔案格式下載裝置列表。",
14280 "xloc": [
14269 - "default.handlebars->33->570"
14281 + "default.handlebars->33->573"
14282 ]
14283 },
14284 {
@@ -14286,7 +14298,7 @@
14298 "zh-chs": "使用以下一种档案格式下载事件列表。",
14299 "zh-cht": "使用以下一種檔案格式下載事件列表。",
14300 "xloc": [
14289 - "default.handlebars->33->2014"
14301 + "default.handlebars->33->2017"
14302 ]
14303 },
14304 {
@@ -14306,7 +14318,7 @@
14318 "zh-chs": "使用以下一种档案格式下载用户列表。",
14319 "zh-cht": "使用以下一種檔案格式下載用戶列表。",
14320 "xloc": [
14309 - "default.handlebars->33->2079"
14321 + "default.handlebars->33->2082"
14322 ]
14323 },
14324 {
@@ -14387,7 +14399,7 @@
14399 "zh-chs": "下载:“{0}”",
14400 "zh-cht": "下載:“{0}”",
14401 "xloc": [
14390 - "default.handlebars->33->1931"
14402 + "default.handlebars->33->1934"
14403 ]
14404 },
14405 {
@@ -14397,7 +14409,7 @@
14409 "de": "Download: \\\"{0}\\\", Größe: {1}",
14410 "ru": "Скачивание: \\\"{0}\\\", Размер: {1}",
14411 "xloc": [
14400 - "default.handlebars->33->1988"
14412 + "default.handlebars->33->1991"
14413 ]
14414 },
14415 {
@@ -14437,7 +14449,7 @@
14449 "zh-chs": "代理重复",
14450 "zh-cht": "代理重複",
14451 "xloc": [
14440 - "default.handlebars->33->2430"
14452 + "default.handlebars->33->2433"
14453 ]
14454 },
14455 {
@@ -14477,7 +14489,7 @@
14489 "zh-chs": "复制用户组",
14490 "zh-cht": "複製用戶群",
14491 "xloc": [
14480 - "default.handlebars->33->2147"
14492 + "default.handlebars->33->2150"
14493 ]
14494 },
14495 {
@@ -14514,8 +14526,8 @@
14526 "zh-chs": "持续时间",
14527 "zh-cht": "持續時間",
14528 "xloc": [
14517 - "default.handlebars->33->2343",
14518 - "default.handlebars->33->2369",
14529 + "default.handlebars->33->2346",
14530 + "default.handlebars->33->2372",
14531 "player.handlebars->3->2"
14532 ]
14533 },
@@ -14553,7 +14565,7 @@
14565 "zh-chs": "荷兰文(比利时)",
14566 "zh-cht": "荷蘭文(比利時)",
14567 "xloc": [
14556 - "default.handlebars->33->1344"
14568 + "default.handlebars->33->1347"
14569 ]
14570 },
14571 {
@@ -14573,7 +14585,7 @@
14585 "zh-chs": "荷兰文(标准)",
14586 "zh-cht": "荷蘭文(標準)",
14587 "xloc": [
14576 - "default.handlebars->33->1343"
14588 + "default.handlebars->33->1346"
14589 ]
14590 },
14591 {
@@ -14864,8 +14876,8 @@
14876 "xloc": [
14877 "default-mobile.handlebars->11->353",
14878 "default-mobile.handlebars->11->360",
14867 - "default.handlebars->33->1006",
14868 - "default.handlebars->33->999"
14879 + "default.handlebars->33->1002",
14880 + "default.handlebars->33->1009"
14881 ]
14882 },
14883 {
@@ -14888,10 +14900,10 @@
14900 "default-mobile.handlebars->11->582",
14901 "default-mobile.handlebars->11->588",
14902 "default-mobile.handlebars->11->608",
14891 - "default.handlebars->33->1696",
14892 - "default.handlebars->33->1728",
14893 - "default.handlebars->33->1753",
14894 - "default.handlebars->33->1765"
14903 + "default.handlebars->33->1699",
14904 + "default.handlebars->33->1731",
14905 + "default.handlebars->33->1756",
14906 + "default.handlebars->33->1768"
14907 ]
14908 },
14909 {
@@ -14911,7 +14923,7 @@
14923 "zh-chs": "编辑设备组功能",
14924 "zh-cht": "編輯裝置群功能",
14925 "xloc": [
14914 - "default.handlebars->33->1714"
14926 + "default.handlebars->33->1717"
14927 ]
14928 },
14929 {
@@ -14931,8 +14943,8 @@
14943 "zh-chs": "编辑设备组权限",
14944 "zh-cht": "編輯裝置群權限",
14945 "xloc": [
14934 - "default.handlebars->33->1750",
14935 - "default.handlebars->33->1762"
14946 + "default.handlebars->33->1753",
14947 + "default.handlebars->33->1765"
14948 ]
14949 },
14950 {
@@ -14952,7 +14964,7 @@
14964 "zh-chs": "编辑设备组用户同意",
14965 "zh-cht": "編輯裝置群用戶同意",
14966 "xloc": [
14955 - "default.handlebars->33->1697"
14967 + "default.handlebars->33->1700"
14968 ]
14969 },
14970 {
@@ -14973,7 +14985,7 @@
14985 "zh-cht": "編輯裝置筆記",
14986 "xloc": [
14987 "default-mobile.handlebars->11->600",
14976 - "default.handlebars->33->1742"
14988 + "default.handlebars->33->1745"
14989 ]
14990 },
14991 {
@@ -14993,8 +15005,8 @@
15005 "zh-chs": "编辑设备权限",
15006 "zh-cht": "編輯裝置權限",
15007 "xloc": [
14996 - "default.handlebars->33->1755",
14997 - "default.handlebars->33->1757"
15008 + "default.handlebars->33->1758",
15009 + "default.handlebars->33->1760"
15010 ]
15011 },
15012 {
@@ -15014,7 +15026,7 @@
15026 "zh-chs": "编辑设备标签",
15027 "zh-cht": "編輯裝置標籤",
15028 "xloc": [
15017 - "default.handlebars->33->552"
15029 + "default.handlebars->33->555"
15030 ]
15031 },
15032 {
@@ -15034,7 +15046,7 @@
15046 "zh-chs": "编辑设备用户同意",
15047 "zh-cht": "編輯裝置用戶同意",
15048 "xloc": [
15037 - "default.handlebars->33->1699"
15049 + "default.handlebars->33->1702"
15050 ]
15051 },
15052 {
@@ -15054,7 +15066,7 @@
15066 "zh-chs": "编辑群组",
15067 "zh-cht": "編輯群組",
15068 "xloc": [
15057 - "default.handlebars->33->832"
15069 + "default.handlebars->33->835"
15070 ]
15071 },
15072 {
@@ -15078,10 +15090,10 @@
15090 "default-mobile.handlebars->11->282",
15091 "default-mobile.handlebars->11->283",
15092 "default-mobile.handlebars->11->348",
15081 - "default.handlebars->33->676",
15082 - "default.handlebars->33->681",
15083 - "default.handlebars->33->682",
15084 - "default.handlebars->33->945"
15093 + "default.handlebars->33->679",
15094 + "default.handlebars->33->684",
15095 + "default.handlebars->33->685",
15096 + "default.handlebars->33->948"
15097 ]
15098 },
15099 {
@@ -15102,7 +15114,7 @@
15114 "zh-cht": "編輯筆記",
15115 "xloc": [
15116 "default-mobile.handlebars->11->615",
15105 - "default.handlebars->33->1772"
15117 + "default.handlebars->33->1775"
15118 ]
15119 },
15120 {
@@ -15122,7 +15134,7 @@
15134 "zh-chs": "编辑用户同意",
15135 "zh-cht": "編輯用戶同意",
15136 "xloc": [
15125 - "default.handlebars->33->1698"
15137 + "default.handlebars->33->1701"
15138 ]
15139 },
15140 {
@@ -15142,7 +15154,7 @@
15154 "zh-chs": "编辑用户设备组权限",
15155 "zh-cht": "編輯用戶裝置群權限",
15156 "xloc": [
15145 - "default.handlebars->33->1763"
15157 + "default.handlebars->33->1766"
15158 ]
15159 },
15160 {
@@ -15162,7 +15174,7 @@
15174 "zh-chs": "编辑用户设备权限",
15175 "zh-cht": "編輯用戶裝置權限",
15176 "xloc": [
15165 - "default.handlebars->33->1758"
15177 + "default.handlebars->33->1761"
15178 ]
15179 },
15180 {
@@ -15182,7 +15194,7 @@
15194 "zh-chs": "编辑用户组",
15195 "zh-cht": "編輯用戶群",
15196 "xloc": [
15185 - "default.handlebars->33->2198"
15197 + "default.handlebars->33->2201"
15198 ]
15199 },
15200 {
@@ -15202,7 +15214,7 @@
15214 "zh-chs": "编辑用户组设备权限",
15215 "zh-cht": "編輯用戶群裝置權限",
15216 "xloc": [
15205 - "default.handlebars->33->1760"
15217 + "default.handlebars->33->1763"
15218 ]
15219 },
15220 {
@@ -15222,7 +15234,7 @@
15234 "zh-chs": "编辑用户组用户同意",
15235 "zh-cht": "編輯用戶組用戶同意",
15236 "xloc": [
15225 - "default.handlebars->33->1700"
15237 + "default.handlebars->33->1703"
15238 ]
15239 },
15240 {
@@ -15263,7 +15275,7 @@
15275 "zh-chs": "编辑标签",
15276 "zh-cht": "編輯標籤",
15277 "xloc": [
15266 - "default.handlebars->33->524"
15278 + "default.handlebars->33->527"
15279 ]
15280 },
15281 {
@@ -15304,11 +15316,11 @@
15316 "zh-cht": "電郵",
15317 "xloc": [
15318 "default-mobile.handlebars->11->102",
15307 - "default.handlebars->33->2097",
15308 - "default.handlebars->33->2224",
15309 - "default.handlebars->33->2226",
15310 - "default.handlebars->33->2266",
15311 - "default.handlebars->33->2286",
15319 + "default.handlebars->33->2100",
15320 + "default.handlebars->33->2227",
15321 + "default.handlebars->33->2229",
15322 + "default.handlebars->33->2269",
15323 + "default.handlebars->33->2289",
15324 "default.handlebars->33->390",
15325 "login-mobile.handlebars->5->42",
15326 "login-mobile.handlebars->container->page_content->column_l->1->1->0->1->tokenpanel->1->7->1->4->1->3",
@@ -15341,7 +15353,7 @@
15353 "zh-cht": "電郵地址變更",
15354 "xloc": [
15355 "default-mobile.handlebars->11->103",
15344 - "default.handlebars->33->1533"
15356 + "default.handlebars->33->1536"
15357 ]
15358 },
15359 {
@@ -15362,7 +15374,7 @@
15374 "zh-cht": "電郵認證",
15375 "xloc": [
15376 "default-mobile.handlebars->11->92",
15365 - "default.handlebars->33->1274"
15377 + "default.handlebars->33->1277"
15378 ]
15379 },
15380 {
@@ -15422,7 +15434,7 @@
15434 "zh-cht": "電郵驗證",
15435 "xloc": [
15436 "default-mobile.handlebars->11->101",
15425 - "default.handlebars->33->1531"
15437 + "default.handlebars->33->1534"
15438 ]
15439 },
15440 {
@@ -15462,7 +15474,7 @@
15474 "zh-chs": "电邮未验证",
15475 "zh-cht": "電郵未驗證",
15476 "xloc": [
15465 - "default.handlebars->33->2043"
15477 + "default.handlebars->33->2046"
15478 ]
15479 },
15480 {
@@ -15482,8 +15494,8 @@
15494 "zh-chs": "电子邮件已验证",
15495 "zh-cht": "電子郵件已驗證",
15496 "xloc": [
15485 - "default.handlebars->33->2044",
15486 - "default.handlebars->33->2218"
15497 + "default.handlebars->33->2047",
15498 + "default.handlebars->33->2221"
15499 ]
15500 },
15501 {
@@ -15503,7 +15515,7 @@
15515 "zh-chs": "电邮已验证。",
15516 "zh-cht": "電郵已驗證。",
15517 "xloc": [
15506 - "default.handlebars->33->2103"
15518 + "default.handlebars->33->2106"
15519 ]
15520 },
15521 {
@@ -15523,7 +15535,7 @@
15535 "zh-chs": "电邮未验证",
15536 "zh-cht": "電郵未驗證",
15537 "xloc": [
15526 - "default.handlebars->33->2219"
15538 + "default.handlebars->33->2222"
15539 ]
15540 },
15541 {
@@ -15544,7 +15556,7 @@
15556 "zh-cht": "電郵已發送。",
15557 "xloc": [
15558 "default-mobile.handlebars->11->657",
15547 - "default.handlebars->33->2398",
15559 + "default.handlebars->33->2401",
15560 "login-mobile.handlebars->5->2",
15561 "login.handlebars->5->2",
15562 "login2.handlebars->7->3"
@@ -15589,7 +15601,7 @@
15601 "zh-chs": "已通过电邮验证,并且需要重置密码。",
15602 "zh-cht": "已通過電郵驗證,並且需要重置密碼。",
15603 "xloc": [
15592 - "default.handlebars->33->2104"
15604 + "default.handlebars->33->2107"
15605 ]
15606 },
15607 {
@@ -15616,7 +15628,7 @@
15628 "fr": "Traffic Email/SMS/Push",
15629 "ru": "Email/SMS/Push трафик",
15630 "xloc": [
15619 - "default.handlebars->33->2487"
15631 + "default.handlebars->33->2490"
15632 ]
15633 },
15634 {
@@ -15662,7 +15674,7 @@
15674 "zh-chs": "启用邀请代码",
15675 "zh-cht": "啟用邀請代碼",
15676 "xloc": [
15665 - "default.handlebars->33->1795"
15677 + "default.handlebars->33->1798"
15678 ]
15679 },
15680 {
@@ -15703,7 +15715,7 @@
15715 "zh-cht": "啟用電郵二因子鑑別。",
15716 "xloc": [
15717 "default-mobile.handlebars->11->94",
15706 - "default.handlebars->33->1276"
15718 + "default.handlebars->33->1279"
15719 ]
15720 },
15721 {
@@ -15743,7 +15755,7 @@
15755 "zh-chs": "已启用",
15756 "zh-cht": "已啟用",
15757 "xloc": [
15746 - "default.handlebars->33->2371"
15758 + "default.handlebars->33->2374"
15759 ]
15760 },
15761 {
@@ -15763,7 +15775,7 @@
15775 "zh-chs": "启用电子邮件两因素身份验证",
15776 "zh-cht": "啟用電子郵件兩因素身份驗證",
15777 "xloc": [
15766 - "default.handlebars->33->1970"
15778 + "default.handlebars->33->1973"
15779 ]
15780 },
15781 {
@@ -15794,7 +15806,7 @@
15806 "ru": "Конец",
15807 "xloc": [
15808 "default-mobile.handlebars->11->377",
15797 - "default.handlebars->33->1035"
15809 + "default.handlebars->33->1038"
15810 ]
15811 },
15812 {
@@ -15814,7 +15826,7 @@
15826 "zh-chs": "时间结束",
15827 "zh-cht": "時間結束",
15828 "xloc": [
15817 - "default.handlebars->33->2368"
15829 + "default.handlebars->33->2371"
15830 ]
15831 },
15832 {
@@ -15834,7 +15846,7 @@
15846 "zh-chs": "从{1}到{2},{3}秒结束了桌面会话“{0}”",
15847 "zh-cht": "從{1}到{2},{3}秒結束了桌面會話“{0}”",
15848 "xloc": [
15837 - "default.handlebars->33->1893"
15849 + "default.handlebars->33->1896"
15850 ]
15851 },
15852 {
@@ -15854,7 +15866,7 @@
15866 "zh-chs": "从{1}到{2},{3}秒结束了文件管理会话“{0}”",
15867 "zh-cht": "從{1}到{2},{3}秒結束了文件管理會話“{0}”",
15868 "xloc": [
15857 - "default.handlebars->33->1894"
15869 + "default.handlebars->33->1897"
15870 ]
15871 },
15872 {
@@ -15863,7 +15875,7 @@
15875 "fr": "Fin de la session de messagerie \\\"{0}\\\" de {1} à {2}, {3} seconde(s)",
15876 "ru": "Завершился сеанс обмена сообщениями \\\"{0}\\\" с {1} до {2}, {3} сек.",
15877 "xloc": [
15866 - "default.handlebars->33->1994"
15878 + "default.handlebars->33->1997"
15879 ]
15880 },
15881 {
@@ -15883,7 +15895,7 @@
15895 "zh-chs": "从{1}到{2},{3}秒结束了中继会话“{0}”",
15896 "zh-cht": "從{1}到{2},{3}秒結束了中繼會話“{0}”",
15897 "xloc": [
15886 - "default.handlebars->33->1891"
15898 + "default.handlebars->33->1894"
15899 ]
15900 },
15901 {
@@ -15903,7 +15915,7 @@
15915 "zh-chs": "从{1}到{2},{3}秒结束了终端会话“{0}”",
15916 "zh-cht": "從{1}到{2},{3}秒結束了終端會話“{0}”",
15917 "xloc": [
15906 - "default.handlebars->33->1892"
15918 + "default.handlebars->33->1895"
15919 ]
15920 },
15921 {
@@ -15923,7 +15935,7 @@
15935 "zh-chs": "英文",
15936 "zh-cht": "英文",
15937 "xloc": [
15926 - "default.handlebars->33->1345"
15938 + "default.handlebars->33->1348"
15939 ]
15940 },
15941 {
@@ -15943,7 +15955,7 @@
15955 "zh-chs": "英文(澳洲)",
15956 "zh-cht": "英文(澳洲)",
15957 "xloc": [
15946 - "default.handlebars->33->1346"
15958 + "default.handlebars->33->1349"
15959 ]
15960 },
15961 {
@@ -15963,7 +15975,7 @@
15975 "zh-chs": "英文(伯利茲)",
15976 "zh-cht": "英文(伯利茲)",
15977 "xloc": [
15966 - "default.handlebars->33->1347"
15978 + "default.handlebars->33->1350"
15979 ]
15980 },
15981 {
@@ -15983,7 +15995,7 @@
15995 "zh-chs": "英文(加拿大)",
15996 "zh-cht": "英文(加拿大)",
15997 "xloc": [
15986 - "default.handlebars->33->1348"
15998 + "default.handlebars->33->1351"
15999 ]
16000 },
16001 {
@@ -16003,7 +16015,7 @@
16015 "zh-chs": "英文(爱尔兰)",
16016 "zh-cht": "英文(愛爾蘭)",
16017 "xloc": [
16006 - "default.handlebars->33->1349"
16018 + "default.handlebars->33->1352"
16019 ]
16020 },
16021 {
@@ -16023,7 +16035,7 @@
16035 "zh-chs": "英文(牙买加)",
16036 "zh-cht": "英文(牙買加)",
16037 "xloc": [
16026 - "default.handlebars->33->1350"
16038 + "default.handlebars->33->1353"
16039 ]
16040 },
16041 {
@@ -16043,7 +16055,7 @@
16055 "zh-chs": "英文(纽西兰)",
16056 "zh-cht": "英文(紐西蘭)",
16057 "xloc": [
16046 - "default.handlebars->33->1351"
16058 + "default.handlebars->33->1354"
16059 ]
16060 },
16061 {
@@ -16063,7 +16075,7 @@
16075 "zh-chs": "英文(菲律宾)",
16076 "zh-cht": "英文(菲律賓)",
16077 "xloc": [
16066 - "default.handlebars->33->1352"
16078 + "default.handlebars->33->1355"
16079 ]
16080 },
16081 {
@@ -16083,7 +16095,7 @@
16095 "zh-chs": "英语(南非)",
16096 "zh-cht": "英語(南非)",
16097 "xloc": [
16086 - "default.handlebars->33->1353"
16098 + "default.handlebars->33->1356"
16099 ]
16100 },
16101 {
@@ -16103,7 +16115,7 @@
16115 "zh-chs": "英文(特立尼达和多巴哥)",
16116 "zh-cht": "英文(特立尼達和多巴哥)",
16117 "xloc": [
16106 - "default.handlebars->33->1354"
16118 + "default.handlebars->33->1357"
16119 ]
16120 },
16121 {
@@ -16123,7 +16135,7 @@
16135 "zh-chs": "英文(英国)",
16136 "zh-cht": "英文(英國)",
16137 "xloc": [
16126 - "default.handlebars->33->1355"
16138 + "default.handlebars->33->1358"
16139 ]
16140 },
16141 {
@@ -16143,7 +16155,7 @@
16155 "zh-chs": "美国英文",
16156 "zh-cht": "美國英語",
16157 "xloc": [
16146 - "default.handlebars->33->1356"
16158 + "default.handlebars->33->1359"
16159 ]
16160 },
16161 {
@@ -16163,7 +16175,7 @@
16175 "zh-chs": "英文(津巴布韦)",
16176 "zh-cht": "英文(津巴布韋)",
16177 "xloc": [
16166 - "default.handlebars->33->1357"
16178 + "default.handlebars->33->1360"
16179 ]
16180 },
16181 {
@@ -16184,10 +16196,10 @@
16196 "zh-cht": "輸入",
16197 "xloc": [
16198 "default-mobile.handlebars->11->371",
16187 - "default.handlebars->33->1029",
16188 - "default.handlebars->33->1122",
16189 - "default.handlebars->33->1560",
16190 - "default.handlebars->33->1561",
16199 + "default.handlebars->33->1032",
16200 + "default.handlebars->33->1125",
16201 + "default.handlebars->33->1563",
16202 + "default.handlebars->33->1564",
16203 "sharing.handlebars->11->55"
16204 ]
16205 },
@@ -16208,7 +16220,7 @@
16220 "zh-chs": "输入管理领域名称的逗号分隔列表。",
16221 "zh-cht": "輸入管理領域名稱的逗號分隔列表。",
16222 "xloc": [
16211 - "default.handlebars->33->2108"
16223 + "default.handlebars->33->2111"
16224 ]
16225 },
16226 {
@@ -16268,7 +16280,7 @@
16280 "zh-chs": "输入文本,然后单击确定以远程键入它。在继续操作之前,请确保将远程光标放置在正确的位置。",
16281 "zh-cht": "輸入文本,然後單擊確定以遠程鍵入它。在繼續操作之前,請確保將遠程光標放置在正確的位置。",
16282 "xloc": [
16271 - "default.handlebars->33->1054"
16283 + "default.handlebars->33->1057"
16284 ]
16285 },
16286 {
@@ -16330,7 +16342,7 @@
16342 "zh-chs": "输入支持SMS的电话号码。验证后,该号码可用于登录验证和其他通知。",
16343 "zh-cht": "輸入支持SMS的電話號碼。驗證後,該號碼可用於登入驗證和其他通知。",
16344 "xloc": [
16333 - "default.handlebars->33->1271"
16345 + "default.handlebars->33->1274"
16346 ]
16347 },
16348 {
@@ -16361,7 +16373,7 @@
16373 "ru": "Ошибка, пригласительный код \\\"{0}\\\" уже используется.",
16374 "xloc": [
16375 "default-mobile.handlebars->11->665",
16364 - "default.handlebars->33->2406"
16376 + "default.handlebars->33->2409"
16377 ]
16378 },
16379 {
@@ -16372,7 +16384,7 @@
16384 "ru": "Ошибка, пароль не изменен.",
16385 "xloc": [
16386 "default-mobile.handlebars->11->662",
16375 - "default.handlebars->33->2403"
16387 + "default.handlebars->33->2406"
16388 ]
16389 },
16390 {
@@ -16382,7 +16394,7 @@
16394 "de": "Fehler, kann nicht zu häufig verwendeten Passwörtern geändert werden.",
16395 "xloc": [
16396 "default-mobile.handlebars->11->661",
16385 - "default.handlebars->33->2402"
16397 + "default.handlebars->33->2405"
16398 ]
16399 },
16400 {
@@ -16392,7 +16404,7 @@
16404 "de": "Fehler, Änderung des zuvor verwendeten Kennworts nicht möglich.",
16405 "xloc": [
16406 "default-mobile.handlebars->11->660",
16395 - "default.handlebars->33->2401"
16407 + "default.handlebars->33->2404"
16408 ]
16409 },
16410 {
@@ -16422,7 +16434,7 @@
16434 "ru": "Escape",

This file is too large to show in full.