Smart drilling technologies